DocsReference
Technical reference
Link formats, keys, programs and numbers, for anyone checking QSEND's work.
On this page
Link formats
Everything after # stays in the browser. Keys are 32 bytes in base64url; coin is sol or the mint address; amount is in the coin's smallest unit; symbol and note are base64url text; the check catches a cut or edited link.
/claim#p1.<claim key>.<coin>.<amount>.<decimals>.<symbol>.<note>.<check>
/pay#r1.<receiving address>.<coin>.<amount>.<decimals>.<symbol>.<note>.<check>
/to/<handle>#x1.<handle>.<link half>.<sealed half>.<check>
/reclaim#p1.<claim key>.<coin>.<amount>.<decimals>.<symbol>.<note>.<check>Notes are up to 80 characters and symbols up to 12, cleaned of control and direction characters. The names SOL, WSOL, USDC and USDT (and look-alikes) are reserved for their own coins: a link that gives another coin one of those names shows that coin's short address instead.
Keys
secret = 32 random bytes, made in the browser
claim key = SHA-256(claim tag || secret)
funding key = SHA-256(funding tag || secret)
link half = SHA-256("qsend/x-link/v1" || secret)
server half = claim key XOR link halfThe claim and funding tags are fixed strings set by the link format; they never change, so every link made so far keeps working.
Programs
The private pool is Solana Privacy Rings by Helius, a public program on Solana mainnet. QSEND is an independent app on top of it and is not affiliated with Helius.
- Pool program
ring1GaLCuJnkUMVkX2JeZLTTX17wKsV4fZmPVzXANW - Registry
regy3WAeRXMYuMYxr5iK3Bf9Arr3PcxGxyzAddbiqDQ
ring1GaLCuJnkUMVkX2JeZLTTX17wKsV4fZmPVzXANWNumbers
| What | Value |
|---|---|
| Fee reserve, sending | 0.0015 SOL (1,500,000 lamports), returned |
| Fee reserve, taking out | 0.0015 SOL, lent by the receiver's wallet, returned |
| Network fees per send or take-out | Three; usually under 0.0001 SOL; at most 0.0004 SOL |
| Pool account rent for a new coin | About 0.0024 SOL, once per coin |
| Token account rent | About 0.002 SOL, kept by the wallet |
| Smallest SOL payment | 0.001 SOL |
| Payments per batch | 20 |
| Outputs per deposit | 21 (payments plus one fee output) |
| Reserve loans per wallet approval, bulk take-back | 12 |
| Note length | 80 characters |
| Platform fee | 30 basis points (0.3%), rounded down |
| X sign-in and grant lifetime | 10 minutes, used once |
Public routes
| Route | What |
|---|---|
/api/config | The site's settings: network, coins, fee, caps, whether X is on |
/docs/search.json | The docs search index |
/to/<handle> | An X payment's page, with its share card |
/card/<handle>.png | The share card, 1200 by 675 |