> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ambichain.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Relayers

> Anyone can deliver an outcome to Ethereum, and it always credits the right party.

![Anyone relays; the credit always goes to the order’s filler or maker](https://mintcdn.com/ambi/zxJ8qP3zW6Y_3Fqs/images/art/relayer-light.webp?fit=max\&auto=format\&n=zxJ8qP3zW6Y_3Fqs\&q=85\&s=1fb92519aead56e156ea2a61ae776e62)

A relayer keeps every order moving:

1. **Claim.** When a router records an outcome, call `claimPaid(id)` or `claimExpired(id)` on the route's inbox with the claim bond. The bond comes back with `resolve` once the window closes.
2. **Watch.** For every claim, check the destination router. Dispute a claim the router contradicts, or one still unbacked near the end of its window, with `dispute(statement)` and the dispute bond. A correct dispute takes both bonds.
3. **Settle.** Once the window closes undisputed, call `fulfill(id, "")` for Paid or `refundExpired(id, "")` for ExpiredUnpaid.
4. **Deliver disputed outcomes.** Execute the rollup withdrawal on Ethereum so the bridge calls `inbox.record`, then settle and `resolve`.

None of this can redirect funds: the market credits the matched filler or the maker no matter who calls.

## HyperEVM to Elysium

Tickets from the HyperEVM router normally execute on Elysium by themselves. If one doesn't, redeem it through `ArbRetryableTx.redeem(ticketId)` on Elysium, keeping it alive with `keepalive` if it nears its 7-day timeout. Then settle on the Elysium market.

## Arbitrum One

```bash theme={null}
npm run relay:arbitrum -- routes/arbitrum-one.json MARKET ORDER_ID L2_TX --logs
```

The relayer checks the configured router and inbox, matches the statement and outcome, finds a confirmed send root in Ethereum's outbox events (or rebuilds the branch from ArbSys logs with `--logs`), and simulates the outbox call. It prints unsigned calldata for you to send. Set `AMBI_L1_RPC` and `AMBI_L2_RPC` to choose RPCs.

## Base and other OP Stack chains

```bash theme={null}
npm run relay:op
```

Prove the withdrawal on the portal once a dispute game covers it, wait the proof maturity delay (7 days on Base), then finalize. The L1 messenger delivers the outcome to the inbox.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.