QSEND

DocsReference

Technical reference

Link formats, keys, programs and numbers, for anyone checking QSEND's work.

On this page
  1. Link formats
  2. Keys
  3. Programs
  4. Numbers
  5. Public routes

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.

Link formats
/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

Key derivation
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 half

The 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 address
ring1GaLCuJnkUMVkX2JeZLTTX17wKsV4fZmPVzXANW

Numbers

WhatValue
Fee reserve, sending0.0015 SOL (1,500,000 lamports), returned
Fee reserve, taking out0.0015 SOL, lent by the receiver's wallet, returned
Network fees per send or take-outThree; usually under 0.0001 SOL; at most 0.0004 SOL
Pool account rent for a new coinAbout 0.0024 SOL, once per coin
Token account rentAbout 0.002 SOL, kept by the wallet
Smallest SOL payment0.001 SOL
Payments per batch20
Outputs per deposit21 (payments plus one fee output)
Reserve loans per wallet approval, bulk take-back12
Note length80 characters
Platform fee30 basis points (0.3%), rounded down
X sign-in and grant lifetime10 minutes, used once

Public routes

RouteWhat
/api/configThe site's settings: network, coins, fee, caps, whether X is on
/docs/search.jsonThe docs search index
/to/<handle>An X payment's page, with its share card
/card/<handle>.pngThe share card, 1200 by 675