Pool actions
Relayer
Who submits your private transactions, what it costs, what the relayer sees and what happens if it is offline.
Every transaction on Elysium has a sender. If your wallet sent your private transactions, your address would sit next to every action. The relayer sends them for you, so your wallet doesn't appear.
What it does
- Your browser builds the proofs for your action.
- It adds one more proof that pays the relayer a small private note.
- It sends the batch to the relayer.
- The relayer checks that its fee is there, then submits the batch on-chain and pays the gas in HYPE.
The fee
The relayer fee follows the network's gas price. It is about 1.5 times the gas cost of the action being relayed, with a floor of 0.005 WHYPE. The app shows the exact fee before you confirm.
You pay it from your private balance, as a private transfer to the relayer's shielded address. On-chain, the fee payment looks like any other private transfer.
The relayer takes WHYPE or USDC. The USDC fee is the WHYPE fee converted at the live pool price, plus 3%.
- A swap or unshield that spends WHYPE or USDC pays the fee from the same proof: the transaction's spare output goes to the relayer. You don't need any other note.
- Anything else (a private send, a swap that spends another token, a merge) pays it with a second, small proof, from a WHYPE or USDC note the action doesn't spend.
What the relayer can see
| Sees | Doesn't see |
|---|---|
| Your proofs and the transaction data, before broadcast | Your wallet address |
| Your IP address | Which notes you spent |
| When you asked | The token and amount of a private send |
| The fee note it receives | Your balance or your other notes |
What the relayer can't do
- Change your transaction. The recipient, amounts, minimum output and encrypted notes are all bound into the proof. If the relayer changes any of them, the proof fails.
- Spend your notes. It never has your spending key.
- Take more than its fee. The only note it can open is the one paying it.
What the relayer can do
- Refuse or delay your transaction.
- Log your IP address and timing.
- Trade ahead of your swap. It sees a swap before it is broadcast, so it could move the price against you, but only up to your slippage: your minimum output is sealed in the proof, and the swap fails rather than fill below it. Tight slippage limits this.
The relayer is trusted to stay online and to broadcast. It is not trusted with your funds.
If the relayer is offline
There is one relayer at launch, run by Ghillie. The status strip shows its health. If it doesn't respond, wait and try again, or submit the transaction from your own wallet. Nothing is sent and your balance doesn't change while you wait.
What's public
If you submit without a relayer, your wallet address appears as the sender of that send, swap or unshield. It links you to that action. Wait for the relayer if you can.
Time and gas
A swap or unshield that pays its own fee takes one proof: about 4 to 5 seconds of proving on a desktop computer, plus the time to broadcast. Anything else takes two proofs, about 9 to 11 seconds, so about 10 to 15 seconds end to end. The relayer pays the gas.
Splitting notes
A separate fee proof needs a WHYPE or USDC note that the action doesn't spend. If your only such note is the one you are sending from, the fee can't be paid from it. The app tells you, and asks you to shield a little more HYPE or USDC, or to send without the relayer. It doesn't split notes for you.