Flow Overview
Bridging Tokens
Bridging tokens between chains is a two-step process using the Routing endpoints.1
Compute a route
Call Compute Route (
POST /v2/fungible/route) with the source and destination assets and the amount to transfer. The API evaluates available pathways (IBC, LayerZero, Optimistic bridges, etc.) and returns the optimal route, including the expected output amount and an operations array for each hop.2
Generate transaction messages
Pass the route details to Generate Transaction (
POST /v2/fungible/msgs) along with the relevant addresses and slippage tolerance. The API returns signable transaction messages for the source chain.If the route response included required_op_hook: true, first call Get OP Hook (POST /op-hook) with the source and destination addresses and assets to obtain the hook payload. Then sign the hook and include it in the signed_op_hook field of the Generate Transaction request.3
Sign and broadcast
Sign the returned transaction messages with a wallet or SDK, then broadcast to the source chain’s RPC endpoint. This step happens outside the Router API.
Tracking Transfers
Because the transaction is signed and broadcast outside the Router API’s scope, the API has no knowledge of the transaction until the application explicitly provides the transaction hash. The transaction must be registered before its cross-chain progress can be monitored.1
Register the transaction
After broadcasting, call Track Transaction (
POST /v2/tx/track) once with the transaction hash and the chain ID where it was submitted. This registers the transaction so the tracking service can watch for relay events and bridge confirmations.2
Poll for status
Call Get Transaction Status (Keep polling until the status reaches a terminal state such as
GET /v2/tx/status) repeatedly to check the transfer progress. The response includes the overall status and the state of each hop in the transfer sequence.STATE_COMPLETED or STATE_FAILED.