You never send your own spend transactions. If you did, your public address would pay the gas and appear as the sender of every private action. Instead, your wallet hands the finished proof to the relayer, which checks it, submits it to Elysium and pays the gas. It is paid back from your notes, inside the same transaction.
What the relayer can and cannot do
The relayer receives a proof and its ExtData. Everything in ExtData — recipient, amounts, fees, encrypted outputs, adapter orders — is bound to the proof through extDataHash (see Shielded pool and proofs). So the relayer:
- cannot change where money goes, how much it takes, or what an adapter does;
- cannot spend your notes in any other way, or learn your keys;
- can decline to submit, or submit later. Your notes stay unspent and safe in either case.
The wallet also pins which relayer it uses: it refuses a relayer address it does not trust (RELAYER_NOT_TRUSTED).
Fees
The relayer quotes one public fee table, the same for every client (GET /v1/vault/fees, valid for 60 seconds). For each kind of transaction:
fee = gas units × current gas price × 1.3, rounded up to the ladder 1, 1.5, 2, 3, 5, 7 × 10^k
| Kind | Gas units | Typical fee at 0.5 gwei |
|---|---|---|
| Private send | 3,600,000 | 0.003 WHYPE |
| Withdrawal | 3,700,000 | 0.003 WHYPE |
| Withdrawal + gas drop | withdrawal + drop | about 0.005 WHYPE |
| Swap | 5,500,000 | 0.005 WHYPE |
| Trade ticket | 5,600,000 | 0.005 WHYPE |
Rounding to a short ladder means many users pay the same fee, so the fee itself does not single anyone out. The fee is normally paid from your gas note in WHYPE, which keeps the main token hidden. It can also be paid in the main token (USDC, for example), but then that token becomes public for that transaction.
The wallet's own fee check
Before signing, your wallet computes its own ceiling from the gas price it reads on its own RPC connection (the highest reading of the last 10 minutes): gas units × gas price × 2, rounded up the same ladder, and never above an absolute cap of 0.05 WHYPE (or 5 USDC). A fee above that is refused (RELAYER_FEE_TOO_HIGH). The relayer cannot overcharge you even if its fee table were wrong.
What it checks before paying gas
The relayer pays the gas up front, so it protects itself against transactions designed to fail:
- Shape: the
ExtDatanames this relayer; it is not a deposit (deposits are never relayed); every encrypted output is exactly 1,224 bytes; the proof and calldata are within size limits. - Deadlines: swaps and tickets must have at least 30 seconds left before their order and router deadlines (60 seconds for ticket expiry).
- Signature: for a trade ticket, the order must be signed by the ticket's one-time order key.
- In-flight notes: if the same nullifiers are already being relayed, the request is refused ("these notes are already being relayed").
- Simulation: the transaction is executed with
eth_callat exactly the gas limit it will be sent with, including the full proof verification. If it would revert, it is not sent. - Fee: the fee must cover the measured gas used × gas price × 1.3, plus the gas drop when one is requested.
Anti-abuse rules
- Notes whose relayed transaction reverted on chain are refused for 15 minutes, then 24 hours on a second revert within 7 days, then until the note is spent (at most 30 days). A revert caused by someone else spending the same notes first does not count.
- A client with 3 reverts in an hour is refused for the rest of the hour.
- At most 120 requests per minute per client. Clients are told apart by a salted hash of their IP address; the salt rotates every hour.
Speed: streamed submits
The wallet sends the proof as one request with ?stream=1. The relayer answers on the same connection with two lines — sent (with the transaction hash) as soon as the transaction is broadcast, then included (with the block) as soon as it is in a block. The relayer polls its own receipt every 25 ms, so the wallet learns about inclusion about one Elysium block after the send, without a second request.
Other speed measures: an in-memory nonce and local signing (one RPC call per send), simulation outside the send queue, swaps and tickets first in the queue, and requests sent as "simple" CORS requests so browsers skip a preflight round trip. Measured results are on Speed.
What the relayer sees and stores
Sees, at the moment of the request: the proof and its public inputs, the ExtData (for a withdrawal: the recipient and amount; for a swap: the route), and the IP address of the connection.
Does not see: your keys, your notes, your balance, which notes are yours, or the token of a private send paid from the gas note.
Stores: only salted hashes of nullifiers currently in flight or under a revert ban, and revert counts per transaction kind. It does not log IP addresses, request bodies or per-client identifiers, and it adds no delay of its own — any privacy delay is scheduled by your wallet.
We say does not store, not cannot see: the relayer necessarily sees your IP next to the action while it handles the request.
Gas drops
When you withdraw to a fresh address, your wallet can ask the relayer for a gas drop: after the withdrawal succeeds, the relayer sends the address a small, fixed amount of native HYPE (about 0.002 HYPE at today's gas price — enough for one later transaction such as a deposit). Everyone gets the same amount. It is paid inside the withdrawal's relayer fee, so you never have to fund the fresh address from another wallet. The drop is only sent to addresses without contract code, and it is optional.
What if the relayer is down
- Your funds are safe. Notes stay in the pool; nothing expires. Pending actions simply wait.
- Withdrawals cannot be blocked by the relayer. The vault does not restrict who submits a transaction: any address may call
transactwith a valid proof. A user (or another relayer) can submit a proof directly — at the cost of that address paying the gas and appearing as the sender. - Perps and HyperEVM transfers that are already on their way complete or refund on their own rules (see Perps).
Endpoints
| Endpoint | Purpose |
|---|---|
GET /v1/info, /health |
relayer address, chain, contracts, status |
GET /v1/vault/fees |
the fee table and the gas-drop size |
POST /v1/vault/transact |
submit a vault proof (send, withdrawal, swap, adapter call) |
POST /v1/vault/ticket |
submit a signed trade-ticket order |
GET /v1/status/:hash |
inclusion status (long poll) |
GET /v1/metrics |
public timing percentiles per kind (numbers only) |