Appearance
The relayer
If address B signed the withdrawal, B would be the fee payer. B would need SOL, and the source of that SOL can recreate the link the pool was meant to loosen. A relayer signs instead. The relayer pays the Solana fee and the rent the withdrawal needs, and is repaid from the fee. Address B is a recipient on the instruction, not a signer.
What the relayer can see, and what it cannot change
The relayer sees the public withdrawal: the proof, nullifiers, commitments, amount, fee, recipient, and encrypted outputs. That is the same class of data the chain will store.
The recipient and the fee are bound into the proof. The program rebuilds the relevant hash from the instruction. A relayer cannot change the recipient or the fee and still pass verification. It cannot learn the spending key, and it cannot see which deposit created the note. It cannot spend the change note. It cannot charge more than the cap on the previous page.
It can refuse the job, delay it, or go offline. Until a withdrawal confirms, the note stays unspent. A different relayer can submit a fresh proof. Two relayers cannot both succeed. The first nullifier recorded wins.
How Alice’s client picks one
The devnet indexer at https://api3.veilixprotocol.com lists the relayers that are registered and staked on chain. The client keeps the ones that answer with a reward account and a fee. Then it draws one at random, weighted by stake: a relayer with twice the stake is about twice as likely to be drawn. The pick stays the same while Alice reviews the withdrawal, so the fee on screen belongs to the relayer that will send it. A new one is drawn after each withdrawal.
A client can also name a specific relayer URL or, for a withdrawal, an index in the list. In a Private Send batch, it can pin every item to one relayer, or let each item draw its own. If the drawn relayer fails, a swap, a bridge, a payment, or a collect tries another one.
The selected relayer’s reward account and fee are bound into the proof. The live devnet relayer publishes 0.1%, today’s limit, plus the network fee that repays its costs. The protocol fee of 0.15% goes to the Team Treasury, not to the relayer. The exact split is on the previous page.
What the client sends
| Job | Quote | Submit | Follow |
|---|---|---|---|
| Withdrawal | GET {relayer}/v1/withdrawQuote, or a POST with the recipient for a token withdrawal | POST {relayer}/relay | GET {relayer}/v1/jobs/<id> |
| Private Send batch | Per item, as above | POST {indexer}/submit, up to eight proofs | GET {indexer}/submit/<id> |
| Private swap | GET {relayer}/v1/swapQuote | POST {relayer}/v1/veilixSwap | GET {relayer}/v1/jobs/<id> |
| Private bridge | GET {relayer}/v1/bridgeQuote | POST {relayer}/v1/veilixBridge | GET {relayer}/v1/jobs/<id> |
| Private payment | GET {relayer}/v1/payQuote | POST {relayer}/v1/veilixPay | GET {relayer}/v1/jobs/<id> |
| Mining collect | GET {relayer}/v1/collectQuote | POST {relayer}/v1/veilixCollect | GET {relayer}/v1/jobs/<id> |
For a token withdrawal, the client sends the recipient in the body of the quote request when the relayer asks for it. The relayer can then see whether the recipient needs a new token account and price its rent. The body keeps the address out of access logs. Every submission carries the public payload, not the note string. A relayer also reports its rate, its network, its owner, and what it supports at GET {relayer}/v1/status.
The relayer checks the fee once more when it sends. If its costs have risen past the fee in the proof, it refuses the job before anything reaches the chain. The note stays unspent, and Alice’s client asks for a new quote.
The registry
Relayers register in a program-owned registry and lock VEILIX as a stake. On devnet the stake token is the VEILIX mint Gmo636w21RBZX9ySVtPYcuYP6f1E5bdW5eBYhvK1bc8J. The indexer also records operational fields for each relayer, including the staked amount, recent volume, and fee earnings. Those fields describe the operator listing. They are not a second token inside the shielded tree. The stake and the lock are on the relayer stake page.
The next page is address screening: the deny lists the program checks where funds enter and leave the pool.