Run a relayer
What a relayer does
It watches IntentRequested events assigned to it, places each order on HyperCore through the agent the account approved, with the intent's cloid, reads the outcome from the info API (orderStatus by cloid, userFills by oid), and posts fulfil(). Resting GTC orders get an ack, then a final receipt when they fill or when the relayer cancels them at the deadline.
One command
The relayer ships as one npm package. Bond first (below), then:
npx -y https://elysio.fun/relayer/elysio-relayer-0.1.0.tgz env > relayer.env # fill it in npx -y https://elysio.fun/relayer/elysio-relayer-0.1.0.tgz check # preflight: bond and gas npx -y https://elysio.fun/relayer/elysio-relayer-0.1.0.tgz run # preflight, then the relayer
check exits 78 and run refuses to start while the seat is unbonded, unbonding or closed, or the gas key holds less than 0.05 HYPE. The same guard runs as ExecStartPre in the systemd unit (services/relayer/elysio-relayer.service in the repository).
The pre-post guard
Before every fulfil(), the relayer runs the exact checks of ElysioRouter.contradiction() on the receipt it is about to post. A receipt a challenger could prove wrong is never posted: letting an intent expire costs 1% of the bond, a proven contradiction costs all of it.
Builder codes
A relayer can attach a Hyperliquid builder code to every order it places: set BUILDER (address) and BUILDER_FEE (tenths of a basis point, 0 to 10; the package refuses more). It is off by default. HyperCore only accepts a builder that holds at least 100 USDC of perps account value, and each traded account must sign approveBuilderFee for it first; the preflight checks both when BUILDER is set. The relayer logs the builder and the builderFee HyperCore reports in each fill next to the receipt it posts. The on-chain receipt format does not change.
The open set
Seats are open to anyone who bonds; there is no allowlist. A HyperCore account picks up to three relayers when it binds. Live bonds, capacity and the relayer count are read from BondRegistry on Relayers.
Opening a seat
Bond $ELYSIO in BondRegistry.bond(amount). The bond sets your capacity: the open order value you may carry at once. Intents above it revert at request time. requestUnbond() stops new intents; withdraw() works three days later once nothing is open. Exact numbers are on Token.
Gas
Receipts and acks cost about 80,000 to 160,000 gas each on Elysium. Callback gas is refunded from the builder's subscription into relayerGas; claim it with claimGas(to).