Appearance
Relayers
A relayer sends withdrawals, swaps, bridges, private payments, and mining collects for users. It signs the transaction and pays its Solana costs, so neither your wallet nor the recipient does. It earns a fee from each job. To be listed, it locks VEILIX in the program’s relayer registry.
This page has two parts: how the app picks a relayer for you, and how to run your own.
How the app picks a relayer for you
You do not choose a relayer by hand. For each job, the app draws one at random from the relayers that are registered, staked, and answering, weighted by stake. A relayer with twice the stake is drawn about twice as often.
The same relayer stays while you review a withdrawal, so the fee on screen is its fee. The review shows Relayer fee with its rate and its name. A new relayer is drawn after each withdrawal. If the drawn relayer fails on a swap, a bridge, a private payment, or a collect, the app tries another one.
Home shows how many relayers are online. The Statistics tab lists them, with the fee each one publishes, the withdrawals it sent, its volume over seven days, and its earnings.
A relayer sees the proof and the public data the chain will store, and the network address your request comes from. It cannot change the recipient or the fee, and it cannot spend your note. It can refuse or delay a job. Your note then stays unspent, and another relayer can send it. See The relayer.
Run your own
What you need
- A server running the Veilix relayer service, which runs with Docker Compose. It must answer over https, run on devnet, and name your wallet as its owner. Point it at your own Solana RPC.
- SOL on the relayer’s signing keys. It pays for each job up front, and the network fee pays it back.
- A
.solname that you own, or a subdomain of one. SNS names live on Solana mainnet, also for a devnet relayer. - Worker keys. These are the addresses the service signs with. You need at least one and can register up to 32. The program accepts a job only from your owner wallet or one of these keys.
- The stake, in VEILIX, in your owner wallet. On devnet the stake is 2,500,000 VEILIX for 3 months, 5,000,000 for 6 months, or 10,000,000 for 1 year.
Register
- Connect your owner wallet, then open the Relayers tab. Run a relayer walks you through four steps: Server, .sol name, Worker keys, and Stake.
- Point us at your server. Enter the Server address, such as
https://relayer.example.com, with no path. Press Check and continue. The page calls your server’s/v1/statusand checks the network and the owner before anything is staked. - Link a .sol name. Enter the name, such as
relayer.yourname.sol, and press Continue. On sns.id, set the name’s URL record to your server address, includinghttps://. - Add worker keys. Paste each worker’s public key. Use Add another key for more. Press Continue.
- Choose a lock and stake. Pick 3 months, 6 months, or 1 year. The page starts on 1 year. Check the summary, tick the box that says you understand the lock and the risks, and press Stake … VEILIX and register. The stake, the lock, the name, and the keys go in one transaction.
- The indexer then reads your name’s URL record and checks your server, about every 2 minutes. Your relayer is listed within a few minutes, once both work.
If registration stops
- Use the https:// address, or Enter only the server address, without a path. Browsers can reach a relayer only over https, at its bare address.
- Couldn’t reach …/v1/status, or … doesn’t look like a Veilix relayer. Check that the service runs and answers over https.
- This relayer is set up for …, but this app runs on devnet. Change the relayer’s network setting.
- This relayer is set up for the owner wallet …, not the connected wallet. Set the connected wallet as its owner and restart it.
- The name must end with .sol, or Add at least one worker key.
- Not listed yet after you register. The page shows it when the indexer cannot reach your server. Check that the server runs and that the name’s URL record holds its https address.
What is public
Your registration is on chain: the owner wallet, the stake and its lock, the .sol name, and the worker keys. The server address is public in the name’s URL record. The Statistics tab shows your fee, the withdrawals you sent, and your earnings.
What you earn and spend
- Your rate, at most the relayer cap: 0.1% of the amount today. You can publish a lower rate.
- The network fee repays the SOL each job costs you. It is not income.
- A flat fee in VEILIX for each mining collect, paid from the mining reserve.
Your relayer also closes each finished mining day for the SOL and USDC pools, which costs about one signature per pool per day. A USDC bridge locks some rent in Circle’s program for five days. The service takes it back afterwards. Nothing is taken from the stake while you relay.
Manage or leave
The Relayers tab shows Your relayer: whether it is Online and listed, the date your stake is locked until, your figures, your worker keys, and recent jobs.
- Worker keys. Add or remove keys. Each change is its own transaction.
- Stop the service. Apps stop picking a relayer that does not answer. The stake stays locked.
- After the lock ends: Unregister and withdraw stake. You keep the fees you earned.
- Before the lock ends: Cancel relayer. The stake comes back after the fees you earned during the lock are repaid to the protocol fee wallet.
The details are on The relayer and Running a relayer, and the stake.