Tools
A transfer usually takes a quote, then an execute. The third tool checks on it afterwards.Request shape
A quote request looks like this:
Do not pass the user’s wallet address as the sender. The server fills it in.
Common chain ids
Chain ids are numbers. These are the ones you will use most:
Solana uses a Relay-specific id here, not the word
solana that the onchain tools take.
Rules
- Every bridge and swap needs the user’s confirmation, and nothing here is financial advice.
- Quote first, then confirm. Show the origin chain, token and amount, the destination chain, token and expected amount, and the route. Call
relay_executeonly after a yes. - Requote on any change. Quotes expire.
- Named tokens need checking. If the user named a token by symbol, resolve it with
onchain_search_tokensscoped to the destination chain, show a chart link with market cap, liquidity and volume, and warn if the token is thin or volatile. - Solana to Solana is not a Relay route. Use the Jupiter tools on the Onchain tools page.
- Same chain, same token is a send. Use
onchain_send_token.
Statuses
relay_get_status returns one of:
Tips
- On a route that touches Solana, the gas top-up on the destination chain is switched off. Make sure the user holds native coin there.
- A
412on a route that starts on Solana means the user’s Solana wallet is not yet enabled for agent trading. - To fund Hyperliquid from another chain, bridge USDC to Arbitrum (
42161), then send it to the address from thehyperliquidactionget_deposit_address. - If a quote fails, the pair may have no route. Try USDC or the native coin as the destination.
Next
Bridge and swap
The plain-language guide.
Wallet and onramp tools
Resolve addresses and fund from fiat.

