1 — Register Agent
Create an agent identity and dedicated wallet.
POST /api/v1/keys/create
{
"name": "agent-alpha"
}Store apiKey securely. It is returned once.
2 — Fund Origin Wallet
Send origin-chain funds to the wallet returned at registration. Keep gas buffer above transfer amount.
3 — Request Quote
POST /api/v1/bridge/quote
{
"originChainId": 8453,
"destinationChainId": 42161,
"originCurrency": "0x0000000000000000000000000000000000000000",
"destinationCurrency": "0x0000000000000000000000000000000000000000",
"amount": "100000000000000",
"tradeType": "EXACT_INPUT"
}Save requestId from the response for execution and tracking.
4 — Execute Bridge
POST /api/v1/bridge/execute
{
"requestId": "0xYOUR_REQUEST_ID"
}The response includes executed transaction hashes and chain context for each submitted step.
5 — Monitor Status
GET /api/v1/bridge/status?requestId=0xYOUR_REQUEST_ID
Poll until final state: success, refunded, or failure.