{"openapi":"3.1.0","info":{"title":"oxley Agent API","version":"1.0.0","summary":"Swap on every chain Swap serves and bridge any asset to any asset from software agents.","description":"The oxley Agent API lets software swap tokens on Elysium and on every chain Swap serves, and bridge any asset on any chain to any asset on any chain, through the same engines as the oxley site: the race of every provider, zaps (several assets sold, one bridge, one asset or a basket received), Solana and Bitcoin.\n\n**Unsigned transactions.** Every transaction comes back unsigned. Your agent signs it with its own wallet and sends it to the chain itself. oxley never holds keys or funds.\n\n**Authentication.** Every call except `POST /v1/keys` sends `Authorization: Bearer <key>`. A key starts with `oxk_`. Issue one by signing a message with your wallet (EIP-191 `personal_sign`); see `POST /v1/keys`.\n\n**Limits.** Each key has a tier that sets its per-minute and daily limits. Swap quotes, builds, bridge quotes, bridge builds, estimates, searches and reads are counted separately. A call over a limit is answered with `429` and a `retry-after` header. `GET /v1/me` returns the tier and limits that apply now.\n\n**Errors.** A failed call returns `{ \"error\": string, \"reason\": string }` with status 400, 401, 403, 422, 429 or 503.\n\n**Amounts.** Token amounts are base units sent as decimal strings. USDC has 6 decimals.\n\n**Bodies.** Requests with a body are JSON (`content-type: application/json`). A body may be at most 8,192 characters on the bridge endpoints, 40 KB (40,960 characters) on route-prepare, route-sign, route-status, bitcoin-status and zap-prepare, 72 KB (73,728 characters) on zap-status, and 16,384 characters on swap build, report and key requests. One that is longer, or is not a JSON object, is answered `400 INVALID_REQUEST` and is not read further.\n\n**Responses.** Response objects can carry fields beyond those listed here. Ignore the ones you do not use. A route or a zap is answered as `actions` to run in order (see `RouteAction`), a swap or an Enso build as `steps`.\n\n**MCP.** The same service runs an MCP server (streamable HTTP) at `https://oxley-agents.web3bandit.workers.dev/mcp`. It uses the same bearer key.","contact":{"name":"oxley","email":"hello@oxley.fun"}},"externalDocs":{"description":"oxley documentation: Agents & API","url":"https://app.oxley.fun/docs/agents"},"servers":[{"url":"https://oxley-agents.web3bandit.workers.dev","description":"oxley Agent API"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Keys","description":"Issue and revoke API keys."},{"name":"Account","description":"Your key's tier, limits and volume."},{"name":"Swap","description":"Swap tokens on Elysium and on every chain Swap serves. Transactions come back unsigned."},{"name":"Bridge","description":"Bridge any asset on any chain to any asset on any chain: quotes, routes, zaps, Solana and Bitcoin. Transactions come back unsigned."},{"name":"Volume","description":"Report what your agent sent so its volume counts."}],"paths":{"/v1/keys":{"post":{"operationId":"createKey","tags":["Keys"],"summary":"Issue an API key","description":"Issues a key for an address that signed a message. This is the one call that needs no key.\n\nSign this message with EIP-191 `personal_sign` (three lines, separated by newlines), replacing `<address>` and `<ISO time>`:\n\n```\nOxley API key\nAddress: <address>\nIssued at: <ISO time>\n```\n\nUse the checksummed (EIP-55) form of the address. `issuedAt` is the same time, in the format JavaScript's `toISOString` writes, and must be within 10 minutes of the server's clock. An address can have at most 3 live keys. Issuing is rate-limited per IP. Only signatures from externally owned accounts (EOAs) work for now.\n\nThe key is shown once, in this answer. oxley stores only its SHA-256 hash. Body: JSON, at most 16,384 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyRequest"},"example":{"address":"0x1111111111111111111111111111111111111111","issuedAt":"2026-11-13T09:30:00.000Z","signature":"0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"}}}},"responses":{"201":{"description":"The new key. It is shown once.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeyIssued"},"example":{"key":"oxk_example_key_shown_once","owner":"0x1111111111111111111111111111111111111111","tier":"starter"}}}},"400":{"description":"The request is malformed, the time is outside the 10-minute window, or the signature is not a 65-byte hex string.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"INVALID_REQUEST","reason":"Send { address, issuedAt, signature }: the key message signed by the address, issued within ten minutes."}}}},"401":{"description":"The signature is not the address's signature of the key message.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"BAD_SIGNATURE","reason":"The signature is not the address's signature of the key message."}}}},"409":{"$ref":"#/components/responses/Conflict"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/keys/self":{"delete":{"operationId":"revokeKey","tags":["Keys"],"summary":"Revoke the key in use","description":"Revokes the key sent in the `Authorization` header. It stops working.","responses":{"200":{"description":"The key is revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Revoked"},"example":{"revoked":true}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/me":{"get":{"operationId":"getMe","tags":["Account"],"summary":"Your tier, limits and volume","description":"Returns the key's tier, its limits, its volume over the last 30 days, the next tier and how far away it is. Counts as a read.","responses":{"200":{"description":"The key's tier, limits and volume.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/swap/tokens":{"get":{"operationId":"listSwapTokens","tags":["Swap"],"summary":"Swap's listed tokens, on Elysium or any chain Swap serves","description":"Returns the tokens Swap lists on Elysium, or on the chain named by `chainId`: that chain's own list (its coin, its wrapped coin and its dollar tokens), each with address, symbol, name and decimals, and `chains`, the chains Swap serves now. Use addresses from this list, or search for others with `GET /v1/swap/search`. The chain's coin appears with the placeholder address `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee`. Counts as a read.","responses":{"200":{"description":"The listed tokens.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapTokenList"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}},"parameters":[{"name":"chainId","in":"query","required":false,"description":"The chain of the swap: one of the chains `GET /v1/swap/tokens` lists in `chains`. Elysium (99901) when left out. A chain Swap does not serve here is 400 `UNSUPPORTED_CHAIN`, naming the ones it does.","schema":{"$ref":"#/components/schemas/ChainId"}}]}},"/v1/swap/price":{"get":{"operationId":"getSwapPrice","tags":["Swap"],"summary":"Indicative swap price, on any chain Swap serves","description":"Returns an indicative price for a swap on Elysium or on the chain named by `chainId`: the best of the venues asked (0x; Nest's pools on Elysium; Enso's router on a chain 0x does not serve), `buyAmount` (what you would receive), `minBuyAmount` (the minimum after slippage), `liquidityAvailable` (false when no route exists) and each fee. Quoted amounts are after every fee. On a chain other than Elysium an integrator fee is a transfer of its share of the sell amount, sent first: the price is for what is left and `partnerFee` (method `transfer`) names it. It is a guide, not a transaction: build the swap to get one. Counts as a quote.","parameters":[{"name":"chainId","in":"query","required":false,"description":"The chain of the swap: one of the chains `GET /v1/swap/tokens` lists in `chains`. Elysium (99901) when left out. A chain Swap does not serve here is 400 `UNSUPPORTED_CHAIN`, naming the ones it does.","schema":{"$ref":"#/components/schemas/ChainId"}},{"name":"sellToken","in":"query","required":true,"description":"Address of the token to sell.","schema":{"$ref":"#/components/schemas/Address"},"example":"0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65"},{"name":"buyToken","in":"query","required":true,"description":"Address of the token to buy.","schema":{"$ref":"#/components/schemas/Address"},"example":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"},{"name":"sellAmount","in":"query","required":true,"description":"The amount to sell, in base units, as a decimal string.","schema":{"$ref":"#/components/schemas/BaseUnits"},"example":"10000000"},{"name":"taker","in":"query","required":false,"description":"The address that would send the swap.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"slippageBps","in":"query","required":false,"description":"Slippage in basis points, from 10 to 500 (0.1% to 5%).","schema":{"$ref":"#/components/schemas/SlippageBps"}},{"name":"integratorFeeRecipient","in":"query","required":false,"description":"With `integratorFeeBps`, the integrator fee to price in. It goes straight to this address.","schema":{"$ref":"#/components/schemas/Address"}},{"name":"integratorFeeBps","in":"query","required":false,"description":"The integrator fee in basis points: a whole number from 1 up to the key's tier cap. An invalid fee is 400 `INVALID_INTEGRATOR_FEE`.","schema":{"type":"integer","minimum":1}}],"responses":{"200":{"description":"The indicative price.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapPrice"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/swap/build":{"post":{"operationId":"buildSwap","tags":["Swap"],"summary":"Build a swap, on any chain Swap serves","description":"Builds a swap and returns it unsigned: `buildId`, `quote` and `steps`, every step on the swap's chain (`tx.chainId`). The steps are the ones to send, in order: an integrator fee transfer first when you sent one and the route takes it as a transfer, then the approvals still needed, then the swap as the last step. Counts as a build. Body: JSON, at most 16,384 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapBuildRequest"},"example":{"sellToken":"0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65","buyToken":"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee","sellAmount":"10000000","taker":"0x1111111111111111111111111111111111111111","slippageBps":50}}}},"responses":{"200":{"description":"The unsigned swap.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapBuild"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"502":{"$ref":"#/components/responses/BadGateway"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/swap/status":{"get":{"operationId":"getSwapStatus","tags":["Swap"],"summary":"Whether a sent swap succeeded, on its chain","description":"Returns whether a swap you sent succeeded, in `status`: `pending` until it is mined, then `success` or `reverted`. With the `buildId`, a successful swap also counts toward the key's volume and the answer carries `report`, the outcome. Counts as a read.","parameters":[{"name":"hash","in":"query","required":true,"description":"The hash of the transaction you sent.","schema":{"$ref":"#/components/schemas/TransactionHash"},"example":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},{"name":"chainId","in":"query","required":false,"description":"The chain the transaction was sent on. Elysium when left out; when only a `buildId` is given, the build's own chain.","schema":{"$ref":"#/components/schemas/ChainId"}},{"name":"buildId","in":"query","required":false,"description":"The buildId the transaction was built with. With it, a successful transaction also counts toward the key's 30-day volume.","schema":{"type":"string"}}],"responses":{"200":{"description":"The swap's outcome.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/config":{"get":{"operationId":"getBridgeConfig","tags":["Bridge"],"summary":"Chains, tokens and lanes","description":"Returns the chains, tokens and lanes the bridge offers. Use it to choose chain ids and token addresses for a quote, and to see whether a lane is available. Counts as a read.","responses":{"200":{"description":"The bridge's chains, tokens and lanes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeConfig"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/quote":{"post":{"operationId":"quoteBridge","tags":["Bridge"],"summary":"Quote a transfer, every hop","description":"Quotes a transfer and returns the quote for every hop in `legs`. Some transfers take two hops, for example a swap to USDC and then the bridge. Each hop shows what you receive, the minimum you accept and the fees, and names the provider that quoted it. Quoted amounts are after every fee, and the route is quoted on what is left after an integrator fee, which comes back as `integratorFee`. The transfer must start on an EVM chain. Counts as a quote. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeIntent"},"example":{"account":"0x1111111111111111111111111111111111111111","recipient":"0x1111111111111111111111111111111111111111","sourceChainId":8453,"destinationChainId":99901,"tokenIn":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","tokenOut":"0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65","amountIn":"100000000","slippageBps":50}}}},"responses":{"200":{"description":"The quote for every hop.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeQuote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/build":{"post":{"operationId":"buildBridge","tags":["Bridge"],"summary":"Build the first leg of a transfer, unsigned","description":"Builds the first leg of a transfer and returns it unsigned: `buildId`, `plan`, `prepared` and `steps` (and `integratorFee` when one was sent). The steps are the transactions to send, in order: the integrator fee transfer first when there is one, then the approvals still needed, then the transaction as the last step. The body is the same intent as the quote, plus an optional `via`: the provider that quoted the first leg. A later hop is built with its own intent once the first lands; the answer carries the intent for the next hop. The server refuses a build for more than the sender holds. An invalid integrator fee is 400 `INVALID_INTEGRATOR_FEE`. The transfer must start on an EVM chain. Counts as a build. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeBuildRequest"},"example":{"account":"0x1111111111111111111111111111111111111111","recipient":"0x1111111111111111111111111111111111111111","sourceChainId":8453,"destinationChainId":99901,"tokenIn":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","tokenOut":"0xb47c4c8f73f009cc0c0d3f92b388d13e293f0b65","amountIn":"100000000","slippageBps":50,"integratorFee":{"recipient":"0x2222222222222222222222222222222222222222","bps":25}}}}},"responses":{"200":{"description":"The first leg, unsigned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeBuild"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/status":{"post":{"operationId":"getBridgeStatus","tags":["Bridge"],"summary":"Follow a bridge transaction","description":"Follows a bridge transaction you sent: `source` (the state of the source transaction), `delivery` (the progress once the source has succeeded) and `retryAfterMs`. With the `buildId`, a successful transaction also counts toward the key's volume and the answer carries `report`, the outcome. Counts as a read. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeStatusRequest"},"example":{"chainId":8453,"txHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}}},"responses":{"200":{"description":"The transaction's progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/report":{"post":{"operationId":"reportTransaction","tags":["Volume"],"summary":"Report a transaction so it counts toward volume","description":"Reports a transaction you sent for a build: the last step of the build, the one that goes to the build's target. Before it counts, the server reads the receipt on that chain and checks that the transaction succeeded, that `from` is the build's sender and `to` is the build's target, that it landed within 24 hours of the build, and that the hash was not counted before. The answer's `outcome` says which. The USD value is the USDC side when there is one; otherwise the quote's USD figures (Enso's or 0x's), else the input at the chart price; with no USD figure the build counts zero. Body: JSON, at most 16,384 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRequest"},"example":{"buildId":"<buildId from the build>","txHash":"0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}}},"responses":{"200":{"description":"The report was checked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportResult"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/swap/search":{"get":{"operationId":"searchSwapTokens","tags":["Swap"],"summary":"Search for a token","description":"The site's own token search. On Elysium: DexScreener and Enso matches (at most eight), each confirmed on chain, with whether 0x routes it; a contract address looks that token up. On another chain: the bridge's token search (the providers' lists and the chain's own `symbol()` and `decimals()`), which needs the any-route lane. Counts as a search.","parameters":[{"name":"q","in":"query","required":true,"description":"A name or symbol, or a contract address.","schema":{"type":"string","maxLength":64}},{"name":"chainId","in":"query","required":false,"description":"The chain of the swap: one of the chains `GET /v1/swap/tokens` lists in `chains`. Elysium (99901) when left out. A chain Swap does not serve here is 400 `UNSUPPORTED_CHAIN`, naming the ones it does.","schema":{"$ref":"#/components/schemas/ChainId"}}],"responses":{"200":{"description":"The tokens found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwapSearch"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/route-quote":{"post":{"operationId":"routeQuote","tags":["Bridge"],"summary":"Quote any asset to any asset","description":"Quotes the cheapest route for any asset on any chain to any asset on any chain (all of GET /v1/bridge/config's chains, Solana and Bitcoin included). Every provider that can serve the pair is asked in parallel: Enso, Ravn, Relay, a route through a middle stop on Base, Arbitrum or BNB Chain when none is direct, and the Swap engine's step for a token neither provider delivers on Elysium. The route that leaves you with the most after every fee, the gas you pay and native bridge fees wins every time, and price impact is shown, never refused. The answer has the `winner`, the `others` best first, what was refused, and for each candidate its steps and a signed `ticket`. Exactly one step carries oxley's fee. With an `integratorFee` the route is quoted on what is left after it and the fee comes back as `integratorFee`: send it first. `depth: \"estimate\"` answers from memory or one light race and cannot be prepared. Counts as a bridge quote (an estimate as an estimate). Needs the any-route lane (503 NOT_CONFIGURED without the ticket key). Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteQuoteRequest"},"example":{"account":"0x1111111111111111111111111111111111111111","recipient":"0x1111111111111111111111111111111111111111","sourceChainId":8453,"destinationChainId":42161,"tokenIn":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","tokenOut":"0xaf88d065e77c8cc2239327c5edb3a432268e5831","amountIn":"100000000","slippageBps":50,"depth":"full"}}}},"responses":{"200":{"description":"The race's answer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteQuote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/route-continue":{"post":{"operationId":"routeContinue","tags":["Bridge"],"summary":"Continue a two-step route","description":"The race again for the one remaining step of a two-step route (a stop on the way, or a swap on Elysium), on what the first step delivered. Answers a new quote whose winner is one step; its id names its provider. Needs the first step's transaction as `prior`. Send the same integratorFee you quoted with. Counts as a bridge quote. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteContinueRequest"}}}},"responses":{"200":{"description":"The race for the remaining step.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteQuote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/route-prepare":{"post":{"operationId":"routePrepare","tags":["Bridge"],"summary":"Prepare a route's step","description":"A step of a quoted route as unsigned actions: a fresh quote at the step's provider, checked field by field against the pinned contracts, with the actions to run in order (approvals, the transaction, a signature to give and post with route-sign, a deposit to send, a fee transfer). A fresh minimum below the reviewed one is refused (PRICE_MOVED). The answer carries a `buildId` when the step has an EVM transaction: report that transaction with it. The transfer's dollars count once, on the step that carries the fee; the other step of a two-step route counts none. With an `integratorFee` on the first step, its transfer is the first action. A step run by Enso or the Solana lane is prepared by POST /v1/bridge/build (with `route`) or solana-prepare. Counts as a bridge build. Body: JSON, at most 40 KB (40,960 characters) (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutePrepareRequest"}}}},"responses":{"200":{"description":"The step's unsigned actions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutePrepareAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/route-sign":{"post":{"operationId":"routeSign","tags":["Bridge"],"summary":"Post a route step's signature","description":"Posts the signature of a `signature` action (EIP-712 typed data) so the provider can run the step. The request carries the step's `quoteToken` and, when the prepared step had one, its `follow` token. Counts as a read. Body: JSON, at most 40 KB (40,960 characters) (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteSignRequest"}}}},"responses":{"200":{"description":"The signature was accepted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteSignAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/route-status":{"post":{"operationId":"routeStatus","tags":["Bridge"],"summary":"Follow a route step","description":"Follows one step of a route: a Ravn step by its `quoteToken`, `statusRef` and the step's `txHash`; a Relay step with `provider: \"relay\"`, its `requestId` and `txHash`. The answer has `source`, `delivery`, `retryAfterMs` and, once the destination delivered, `deliveredAmount`. Pass the `buildId` with the step's own transaction and a successful one counts toward your volume; the answer then carries `report`. Counts as a read. Body: JSON, at most 40 KB (40,960 characters) (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteStatusRequest"}}}},"responses":{"200":{"description":"The step's progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/route-tokens":{"post":{"operationId":"routeTokens","tags":["Bridge"],"summary":"Search a chain's tokens","description":"The tokens a chain offers: the providers' token lists, Enso's, the Swap engine's list on Elysium and, for an address no list has, the token's own `symbol()` and `decimals()` read on chain. `query` is a symbol or a name, or one address, mint or `BTC`. A token is `verified` only when a provider or the chain confirmed its decimals; an unverified token is refused in a quote. Counts as a search. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteTokensRequest"},"example":{"chainId":8453,"query":"usdc"}}}},"responses":{"200":{"description":"The tokens found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteTokens"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/solana-quote":{"post":{"operationId":"solanaQuote","tags":["Bridge"],"summary":"Quote Solana to Elysium","description":"Quotes a transfer from Solana (SOL or a mint the lane takes) to USDC or HYPE on Elysium through Relay: the same answer as a bridge quote. Counts as a bridge quote. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolanaIntent"}}}},"responses":{"200":{"description":"The quote: one hop, through Relay.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeQuote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/solana-prepare":{"post":{"operationId":"solanaPrepare","tags":["Bridge"],"summary":"Prepare Solana to Elysium","description":"A fresh Relay quote prepared: one unsigned base64 Solana transaction for the account to sign and send before `expiresAt`, with Relay's request id to follow it. Counts as a bridge build. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolanaIntent"}}}},"responses":{"200":{"description":"The transfer, prepared: one unsigned Solana transaction.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolanaPrepareAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/solana-status":{"post":{"operationId":"solanaStatus","tags":["Bridge"],"summary":"Follow a Solana transfer","description":"Follows a Solana to Elysium transfer by Relay's `requestId` and, optionally, the deposit's Solana `signature`. Counts as a read. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolanaStatusRequest"}}}},"responses":{"200":{"description":"The transfer's progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/solana-balances":{"post":{"operationId":"solanaBalances","tags":["Bridge"],"summary":"A Solana account's balances","description":"The balances of a Solana account for the tokens the lane takes. Counts as a search. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}}},"responses":{"200":{"description":"The account's balances.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SolanaBalances"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/bitcoin-quote":{"post":{"operationId":"bitcoinQuote","tags":["Bridge"],"summary":"Quote Bitcoin out","description":"Quotes a transfer from Bitcoin to any token on a chain Ravn serves. A token Ravn does not deliver on Elysium has a second step (`extras.finish`): the Swap engine's swap, quoted with bitcoin-finish. Counts as a bridge quote. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinIntent"}}}},"responses":{"200":{"description":"The quote: Ravn's hop, and a second step on Elysium when the token needs one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinQuote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/bitcoin-prepare":{"post":{"operationId":"bitcoinPrepare","tags":["Bridge"],"summary":"Prepare Bitcoin out","description":"A fresh Ravn quote executed and checked: the deposit address and exact amount (and a PSBT for a native SegWit wallet when `pay` is `wallet`), the `quoteToken` and `statusRef` that follow it and the transfer's `ticket`. Counts as a bridge build. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinIntent"}}}},"responses":{"200":{"description":"The transfer, prepared: the deposit to pay and the keys to follow it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinPrepareAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/bitcoin-status":{"post":{"operationId":"bitcoinStatus","tags":["Bridge"],"summary":"Follow a Bitcoin transfer","description":"Follows a Bitcoin transfer by Ravn's `quoteToken` and `statusRef` (and the deposit's `txid` and the transfer's `ticket`). Counts as a read. Body: JSON, at most 40 KB (40,960 characters) (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinStatusRequest"}}}},"responses":{"200":{"description":"The transfer's progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BridgeStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/bitcoin-balance":{"post":{"operationId":"bitcoinBalance","tags":["Bridge"],"summary":"A Bitcoin address's balance","description":"The confirmed and pending balance of a Bitcoin address. Counts as a search. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountRequest"}}}},"responses":{"200":{"description":"The address's balance.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinBalance"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/bitcoin-finish":{"post":{"operationId":"bitcoinFinish","tags":["Bridge"],"summary":"The second step of a Bitcoin transfer: a fresh swap quote","description":"The second step of a Bitcoin transfer into an Elysium token Ravn does not deliver: the Swap engine's fresh firm quote for `taker`, asked once the first step has delivered, from the transfer's `ticket`. The answer is `{ quote }`, a swap quote (`SwapQuote`) with its `transaction` and the `allowance` (or, on a Nest pool route, `permit2`) it still needs: it is not a list of actions. Send the approval it names for exactly the amount, then the transaction, from `taker`. Counts as a bridge build. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinFinishRequest"}}}},"responses":{"200":{"description":"The second step's fresh swap quote.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitcoinFinishAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/balances":{"post":{"operationId":"getBalances","tags":["Bridge"],"summary":"A wallet's balances","description":"A wallet's balances on a chain for the tokens the bridge lists (Enso's wallet read, else the chain's node; Elysium's from its node). With `scan: true` and the zap on, every token the wallet holds with its dollar value, the whole token and a flag on a token that looks wrong. Counts as a search. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalancesRequest"},"example":{"account":"0x1111111111111111111111111111111111111111","chainId":8453}}}},"responses":{"200":{"description":"The balances.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Balances"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/claim":{"post":{"operationId":"prepareClaim","tags":["Bridge"],"summary":"Claim or redeem on Orbit","description":"The unsigned claim of a finished Elysium to HyperEVM withdrawal (`kind: withdrawal`, with the withdrawal's `hash` and `index`) or the redeem of a deposit's ticket (`kind: redeem`), simulated. Counts as a bridge build. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimRequest"}}}},"responses":{"200":{"description":"The unsigned claim or redeem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"409":{"$ref":"#/components/responses/ClaimNotReady"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/zap-quote":{"post":{"operationId":"zapQuote","tags":["Bridge"],"summary":"Quote a zap","description":"The cheapest plan to sell several assets on one chain, bridge once and receive one asset or a weighted basket on another chain: its legs (`sell-0`..., `bridge`, `buy-0`...), what each target ends up as, the totals in dollars and a signed `ticket`. One fee for the whole zap, carried on the bridge leg. Price impact is shown, never refused. `depth: \"estimate\"` carries no ticket. Needs the zap on (404 otherwise). A full quote counts as three bridge quotes; an estimate as an estimate. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapQuoteRequest"}}}},"responses":{"200":{"description":"The plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapQuote"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/zap-curves":{"post":{"operationId":"zapCurves","tags":["Bridge"],"summary":"Zap price impact curves","description":"Price impact against size for each candidate target on the destination chain, sampled from the destination's own Swap engine, to set a basket's weights. Counts as a swap quote. Body: JSON, at most 8,192 characters (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapCurvesRequest"}}}},"responses":{"200":{"description":"The curves.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapCurves"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/zap-prepare":{"post":{"operationId":"zapPrepare","tags":["Bridge"],"summary":"Prepare a zap's leg","description":"The unsigned actions of one leg of a quoted zap, as route-prepare answers: the sells first, then the bridge (its own steps), then the buys, each after the one before. A buy is prepared only after the bridge's last step was sent (`prior`). The answer carries a `buildId`; the zap's dollars count once, on the bridge leg's step that carries the fee. Counts as a bridge build. Body: JSON, at most 40 KB (40,960 characters) (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapPrepareRequest"}}}},"responses":{"200":{"description":"The leg's unsigned actions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutePrepareAnswer"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/v1/bridge/zap-status":{"post":{"operationId":"zapStatus","tags":["Bridge"],"summary":"Follow a zap","description":"Where each leg of a zap is: a sell or a buy by its transaction's receipt, the bridge leg by its provider. Counts as a read. Body: JSON, at most 72 KB (73,728 characters) (a body that is longer, or is not JSON, is 400 `INVALID_REQUEST` and is not read further).","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapStatusRequest"}}}},"responses":{"200":{"description":"Each leg's progress.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZapStatus"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"404":{"$ref":"#/components/responses/NotFound"},"422":{"$ref":"#/components/responses/Unprocessable"},"429":{"$ref":"#/components/responses/RateLimited"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/health":{"get":{"operationId":"getHealth","tags":["Account"],"summary":"What the service is configured with","description":"Whether the service can answer, which lanes are open, and the NAMES of the settings it reads and whether each is set. Never a value. No key needed. 503 (with the same body) while a key, or a setting a lane that is on needs, is missing.","security":[],"responses":{"200":{"description":"Configured.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}},"503":{"description":"Not fully configured: `missing` names what.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Health"}}}}}}},"/v1/openapi.json":{"get":{"operationId":"getOpenApi","tags":["Account"],"summary":"This description","description":"The OpenAPI 3.1 description of the API: this document. No key needed.","security":[],"responses":{"200":{"description":"This document.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mcp":{"post":{"operationId":"mcp","tags":["Account"],"summary":"The MCP server","description":"The same API as MCP tools (Model Context Protocol, streamable HTTP, answered as plain JSON: no stream, no session). Send one JSON-RPC 2.0 message, or an array of at most 20, with the same `Authorization: Bearer <key>`. Each `tools/call` is one call of the REST API with the same key, so its limits and answers are the API's; the tools are listed by `tools/list`. A message with no `id` (a notification) has no answer: a request of notifications alone is answered 202 with no body. GET /mcp is 405. A body that is not JSON is 400 with a JSON-RPC parse error.","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/JsonRpcRequest"},{"type":"array","items":{"$ref":"#/components/schemas/JsonRpcRequest"}}]},"example":{"jsonrpc":"2.0","id":1,"method":"tools/list"}}}},"responses":{"200":{"description":"The answer, or an array of answers for a batch.","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/JsonRpcResponse"},{"type":"array","items":{"$ref":"#/components/schemas/JsonRpcResponse"}}]}}}},"202":{"description":"Notifications only: no body."},"400":{"description":"A body that is not JSON, or a batch of more than 20 messages: a JSON-RPC error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JsonRpcResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"405":{"$ref":"#/components/responses/MethodNotAllowed"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"oxk_ API key","description":"An API key that starts with `oxk_`. Issue one with `POST /v1/keys`."}},"responses":{"BadRequest":{"description":"The request is malformed: a field is missing or invalid. A bad integrator fee is `INVALID_INTEGRATOR_FEE`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"INVALID_REQUEST","reason":"sellAmount must be a whole number of base units, as a string."}}}},"Unauthorized":{"description":"The key is missing, unknown or revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"API_KEY_REQUIRED","reason":"Send your API key as Authorization: Bearer <key>."}}}},"Forbidden":{"description":"0x refuses the wallet (`TAKER_REFUSED`): a swap build, or a swap price asked with a `taker`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"TAKER_REFUSED","reason":"Swaps aren't available for this wallet."}}}},"NotFound":{"description":"A buildId that is not this key's (`UNKNOWN_BUILD`, POST /v1/report), or a bridge lane that is switched off on this service (`UNKNOWN_BRIDGE_OPERATION`: any-route and zap actions; route-sign and route-status stay open for a transfer in flight, with its follow token).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"UNKNOWN_BRIDGE_OPERATION"}}}},"Conflict":{"description":"The address already holds 3 live keys. Revoke one first.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"TOO_MANY_KEYS","reason":"A wallet may hold 3 live keys. Revoke one first."}}}},"BadGateway":{"description":"An answer from a swap venue failed one of oxley's safety checks, so the swap was stopped (`TARGET_MISMATCH`, `CALLDATA_MISMATCH`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"CALLDATA_MISMATCH","reason":"This swap does not match what you asked for and was stopped."}}}},"Unprocessable":{"description":"oxley's checks refused the request: no route is available (`NO_ROUTE`, or `ROUTE_NOT_AVAILABLE` with a `code`), a quote or a prepare failed a check (`QUOTE_REJECTED`, `PRICE_MOVED`), a ticket is not valid, or the sender holds less than the amount (`BALANCE_SHORT`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"ROUTE_NOT_AVAILABLE","code":"NO_LIQUIDITY","reason":"No route is available for this amount right now. Try a different amount."}}}},"RateLimited":{"description":"Over a limit: this key's (`RATE_LIMITED`; bridge quotes, bridge builds, estimates and searches have limits of their own) or the budget every key shares for a provider (`BUSY`: 0x, Enso, Ravn or Relay), or a provider's own limit (`RATE_LIMITED` with `retryAfterMs`). Wait the number of seconds in `retry-after`, then try again.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"RATE_LIMITED","reason":"Too many calls. Try again later."}}}},"Unavailable":{"description":"A provider or service the call needs is unavailable. Try again shortly.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"UNAVAILABLE","reason":"A provider is unavailable. Try again shortly."}}}},"ClaimNotReady":{"description":"The claim or redeem is not ready: `CLAIM_NOT_READY` (with `etaAt`, Unix seconds or null), `ALREADY_CLAIMED` or `TICKET_NOT_LIVE`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"CLAIM_NOT_READY","etaAt":1800000000}}}},"MethodNotAllowed":{"description":"MCP is POST /mcp.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"},"example":{"error":"METHOD_NOT_ALLOWED","reason":"MCP is POST /mcp (Streamable HTTP, JSON answers)."}}}}},"schemas":{"Error":{"type":"object","description":"The shape of every error answer: `error` always, the rest only where it applies. Swap, key and limit errors carry `reason`; bridge errors may carry `code`, `etaAt`, `retryAfterMs` and `refused` instead. An answer can carry fields beyond those listed here.","required":["error"],"properties":{"error":{"type":"string","description":"A short, stable code for the failure, in capitals: INVALID_REQUEST, API_KEY_REQUIRED, RATE_LIMITED, BUSY, UNSUPPORTED_CHAIN, TAKER_REFUSED, NO_ROUTE, BALANCE_SHORT, ROUTE_NOT_AVAILABLE, QUOTE_REJECTED, UNKNOWN_BRIDGE_OPERATION, NOT_CONFIGURED, PROVIDER_UNAVAILABLE and the like."},"reason":{"type":"string","description":"Why it failed, in plain words. Absent on many bridge refusals, which answer the code alone: UNKNOWN_BRIDGE_OPERATION, NOT_CONFIGURED, PROVIDER_UNAVAILABLE, ENSO_NOT_CONFIGURED, a bridge INVALID_REQUEST from the page's own parsers, SIMULATION_FAILED, CLAIM_NOT_READY. On QUOTE_REJECTED it is one word naming the check that failed."},"code":{"type":"string","description":"A bridge refusal's own code, beside `error`: on ROUTE_NOT_AVAILABLE it names why (NO_LIQUIDITY, PRICE_MOVED, STEP_NOT_PREPARED_HERE, TICKET_INVALID, TICKET_REQUIRED, TICKET_EXPIRED, AMOUNT_CHANGED, PRIOR_REQUIRED, UNKNOWN_TOKEN, TOKEN_UNVERIFIED, ROUTE_UNAVAILABLE, RECIPIENT_NOT_SUPPORTED, and the lanes' own closed reasons)."},"etaAt":{"type":["integer","null"],"description":"CLAIM_NOT_READY: when the claim is expected, in Unix seconds, or null when unknown."},"chains":{"type":"array","items":{"type":"integer"},"description":"UNSUPPORTED_CHAIN: the chains Swap serves here."},"retryAfterMs":{"type":"integer","description":"RATE_LIMITED and PROVIDER_UNAVAILABLE from a bridge provider: how long to wait, in milliseconds (the `retry-after` header says it in seconds)."},"refused":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string"},"kind":{"type":"string"},"code":{"type":"string"}}},"description":"ROUTE_NOT_AVAILABLE and PROVIDER_UNAVAILABLE on a route or zap quote: who was asked and gave no route, by code only."}}},"Address":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}$","description":"A 0x address.","examples":["0x1111111111111111111111111111111111111111"]},"TransactionHash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}$","description":"A 0x transaction hash.","examples":["0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"]},"HexData":{"type":"string","pattern":"^0x([0-9a-fA-F]{2})*$","description":"0x-prefixed hex bytes."},"BaseUnits":{"type":"string","pattern":"^[1-9][0-9]*$","description":"A positive amount in a token's base units, as a decimal string. USDC has 6 decimals, so 1 USDC is \"1000000\".","examples":["10000000"]},"SlippageBps":{"type":"integer","minimum":10,"maximum":500,"description":"Slippage in basis points: from 10 (0.1%) to 500 (5%).","examples":[50]},"IntegratorFee":{"type":"object","description":"A fee added on top of oxley's. It always goes straight to `recipient`; oxley never holds it. On a swap through 0x, 0x takes it inside the swap. On a swap through Nest's pool route and on every bridge leg it is a separate transfer step of its share of the input, sent first; the route is quoted and built on what is left.","required":["recipient","bps"],"properties":{"recipient":{"$ref":"#/components/schemas/Address","description":"The address that receives the fee."},"bps":{"type":"integer","minimum":1,"description":"The fee in basis points: a whole number from 1 up to the key's tier cap (2%, or 200 basis points, on every listed tier). A bad fee is 400 `INVALID_INTEGRATOR_FEE`."}}},"Tx":{"type":"object","description":"One unsigned transaction. The agent signs and sends it with its own wallet.","required":["chainId","from","to","data","value"],"properties":{"chainId":{"type":"integer","description":"The chain the transaction is for."},"from":{"$ref":"#/components/schemas/Address","description":"The sender."},"to":{"$ref":"#/components/schemas/Address"},"data":{"$ref":"#/components/schemas/HexData"},"value":{"type":"string","pattern":"^[0-9]+$","description":"Native value in wei, as a decimal string."},"gas":{"type":"string","pattern":"^[0-9]+$","description":"A gas figure, when one is known."}}},"Step":{"type":"object","description":"One step of a build: a transaction to send, in the order the steps are returned.","required":["kind","label","tx"],"properties":{"kind":{"type":"string","enum":["approval","transaction"]},"label":{"type":"string","description":"What the step does, for example `Approve` or `Swap`. An integrator fee transfer is labelled `Integrator fee`."},"tx":{"$ref":"#/components/schemas/Tx"},"approval":{"type":"object","description":"On an approval step of a bridge build: the approval it makes (the token, the spender and the exact amount).","required":["token","spender","amount"],"properties":{"token":{"$ref":"#/components/schemas/Address"},"spender":{"$ref":"#/components/schemas/Address"},"amount":{"type":"string"}}}}},"PartnerFee":{"type":"object","description":"The integrator's fee on a swap answer.","properties":{"recipient":{"$ref":"#/components/schemas/Address"},"bps":{"type":"integer"},"amount":{"type":"string","description":"The fee, in base units of `token`."},"token":{"$ref":"#/components/schemas/Address"},"method":{"type":"string","enum":["0x","transfer"],"description":"`0x` when 0x takes the fee inside the swap; `transfer` when it is a separate transfer step."}}},"BridgeIntegratorFee":{"type":"object","description":"The integrator's fee on a bridge quote or build answer: a separate transfer step of its share of the input, sent first.","properties":{"recipient":{"$ref":"#/components/schemas/Address"},"bps":{"type":"integer"},"amount":{"type":"string","description":"The fee, in base units of `token`."},"token":{"type":"string"},"chainId":{"type":"integer","description":"The chain the transfer is sent on."}}},"KeyRequest":{"type":"object","required":["address","issuedAt","signature"],"properties":{"address":{"$ref":"#/components/schemas/Address","description":"The address that signed. Use its checksummed (EIP-55) form in the message."},"issuedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$","description":"The time used in the signed message, as JavaScript's `toISOString` writes it. Within 10 minutes of the server's clock.","examples":["2026-11-13T09:30:00.000Z"]},"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}$","description":"The EIP-191 `personal_sign` signature of the message by `address`, as a 65-byte hex string."}}},"KeyIssued":{"type":"object","required":["key"],"properties":{"key":{"type":"string","pattern":"^oxk_[A-Za-z0-9_-]+$","description":"The new API key: `oxk_` followed by 32 random bytes, base64url. Shown once."},"owner":{"$ref":"#/components/schemas/Address","description":"The address the key was issued to."},"tier":{"type":"string","description":"The tier the key starts on."}}},"Revoked":{"type":"object","properties":{"revoked":{"type":"boolean","description":"true once the key is revoked."}}},"Me":{"type":"object","description":"A key's tier, limits and volume.","properties":{"owner":{"$ref":"#/components/schemas/Address","description":"The address the key was issued to."},"tier":{"type":"string","description":"The tier now, in lowercase: starter, builder, growth or pro (or a tier granted by agreement)."},"volume30dUsd":{"type":"number","description":"The USD value of all the key's transactions built and confirmed on chain over the trailing 30 days."},"feePayingVolume30dUsd":{"type":"number","description":"The part of volume30dUsd that paid oxley a fee: a bridge leg that pays oxley's bridge fee, or a swap once a Swap fee is set. Only this moves the key between tiers, by itself."},"limits":{"type":"object","description":"The limits that apply to the key now.","properties":{"quotesPerMinute":{"type":"integer","description":"Swap quotes (GET /v1/swap/price) a minute."},"buildsPerMinute":{"type":"integer","description":"Swap builds a minute."},"quotesPerDay":{"type":"integer","description":"Swap quotes a UTC day."},"readsPerMinute":{"type":"integer"},"bridgeQuotesPerMinute":{"type":"integer","description":"Bridge quotes a minute."},"bridgeQuotesPerDay":{"type":"integer","description":"Bridge quotes a UTC day."},"bridgeBuildsPerMinute":{"type":"integer","description":"Bridge builds a minute."},"bridgeBuildsPerDay":{"type":"integer","description":"Bridge builds a UTC day."},"maxIntegratorFeeBps":{"type":"integer","description":"The integrator fee cap, in basis points."}}},"nextTier":{"type":"object","description":"The next tier and how far away it is. Absent at the top tier.","properties":{"name":{"type":"string"},"minVolumeUsd":{"type":"number","description":"The 30-day fee-paying volume the next tier unlocks at."},"remainingUsd":{"type":"number","description":"How much more 30-day fee-paying volume reaches it."}}}}},"SwapToken":{"type":"object","description":"A token Swap lists.","required":["address","symbol","name","decimals","icon","listed","verified"],"properties":{"address":{"$ref":"#/components/schemas/Address"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"integer"},"icon":{"type":["string","null"],"description":"A local icon path, or null."},"listed":{"type":"boolean","description":"On Swap's default list."},"verified":{"type":["boolean","null"],"description":"0x routes it both ways and it has no known token tax (always true for a listed one); false when 0x answered and it does not; null when 0x did not answer."},"launch":{"oneOf":[{"type":"null"},{"type":"object"}],"description":"When and where the token launched, from its first mint's transaction; null when unknown, absent for a listed token."}}},"SwapTokenList":{"type":"object","description":"Swap's configuration and its tokens, on Elysium or on the chain named.","required":["enabled","ready","reason","tokens","slippageBps","allowanceHolder","wrappedNative"],"properties":{"enabled":{"type":"boolean"},"ready":{"type":"boolean","description":"Whether Swap can answer now."},"reason":{"type":["string","null"],"description":"Why it cannot, when it cannot."},"tokens":{"type":"array","items":{"$ref":"#/components/schemas/SwapToken"}},"slippageBps":{"type":"integer","description":"The slippage the page asks with by default."},"allowanceHolder":{"type":["string","null"],"description":"The contract a 0x swap on this chain is approved to; null on a chain 0x does not serve."},"wrappedNative":{"type":["string","null"],"description":"The chain's wrapped coin; null on a chain with none to wrap (Arc, whose coin is USDC, and Tempo, which has no coin)."},"chains":{"$ref":"#/components/schemas/SwapChains"},"chainId":{"type":"integer","description":"The chain the tokens are on, when it is not Elysium: absent on Elysium's answer."}}},"SwapPrice":{"type":"object","description":"An indicative price.","required":["sellToken","buyToken","sellAmount","buyAmount","minBuyAmount","liquidityAvailable","networkFee","sources","allowance","tax"],"properties":{"sellToken":{"$ref":"#/components/schemas/Address"},"buyToken":{"$ref":"#/components/schemas/Address"},"sellAmount":{"$ref":"#/components/schemas/BaseUnits","description":"The amount sold. After an integrator fee taken as a transfer (any chain but Elysium), what the swap itself sells."},"chainId":{"type":"integer","description":"The chain the swap is on, when it is not Elysium: absent on Elysium's answers."},"buyAmount":{"$ref":"#/components/schemas/BaseUnits","description":"The amount you would receive, in base units of the buy token, after every fee."},"minBuyAmount":{"$ref":"#/components/schemas/BaseUnits","description":"The minimum you would receive after slippage, in base units of the buy token."},"liquidityAvailable":{"type":"boolean","description":"Whether a route exists."},"fee":{"type":"object","description":"oxley's own fee on the swap, when one is set. It is always taken inside the swap: by 0x on a 0x route, and in the swap's own transaction on a Nest pool route.","required":["amount","bps","token"],"properties":{"amount":{"type":"string"},"bps":{"type":"integer"},"token":{"$ref":"#/components/schemas/Address"},"recipient":{"$ref":"#/components/schemas/Address","description":"On a Nest pool route: the wallet oxley's fee is paid to, inside the swap's own transaction."}}},"bridgeFee":{"type":"object","description":"The bridge's fee, on the swap that finishes a Bitcoin transfer (the quote bitcoin-finish answers); never on a swap you build.","required":["amount","bps","token"],"properties":{"amount":{"type":"string"},"bps":{"type":"integer"},"token":{"$ref":"#/components/schemas/Address"},"recipient":{"$ref":"#/components/schemas/Address"}}},"partnerFee":{"$ref":"#/components/schemas/PartnerFee"},"networkFee":{"type":["string","null"],"description":"The network fee estimate in wei of the chain's coin (HYPE on Elysium), when known; on a chain whose gas is a dollar token, in 10^-18 dollars."},"sources":{"type":"array","items":{"type":"string"},"description":"The liquidity the route fills from."},"quotes":{"type":"array","items":{"$ref":"#/components/schemas/SwapVenueQuote"},"description":"Every venue that answered, best first: the first is the venue the swap goes through. Present only on a price, and only when two or more answered."},"allowance":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/SwapAllowance"}],"description":"Present when the taker's allowance for the sell token is short: the contract to approve and the current allowance; null when none is needed (or no taker was given)."},"tax":{"type":"object","description":"0x's token tax that applies to this swap: 0 is no tax, null is a tax 0x could not determine. Its amounts already allow for a tax it knows.","required":["sellBps","buyBps"],"properties":{"sellBps":{"type":["integer","null"],"description":"The sell token's tax in basis points; null when 0x could not determine it."},"buyBps":{"type":["integer","null"],"description":"The buy token's tax in basis points; null when 0x could not determine it."}}}}},"SwapQuote":{"description":"The quote a swap build is made from: a price, and the transaction.","allOf":[{"$ref":"#/components/schemas/SwapPrice"},{"type":"object","required":["kind","transaction","expiresAt"],"properties":{"kind":{"type":"string","enum":["swap","wrap","unwrap","pool","enso"],"description":"`swap` goes to 0x's AllowanceHolder, `pool` is Nest's pool route (Elysium), `enso` is Enso's router on a chain 0x does not serve; `wrap` and `unwrap` are the chain's coin and its wrapped coin."},"simulated":{"type":"boolean","description":"On an `enso` quote: whether Enso's Quoter or the chain's node ran the swap before it was offered."},"permit2":{"type":"object","description":"On a `pool` quote: Permit2's allowance of the router for the sell token (amount and expiry), and the expiry a new Permit2 approval is given.","required":["router","amount","expiration","approveUntil"],"properties":{"router":{"$ref":"#/components/schemas/Address"},"amount":{"type":"string"},"expiration":{"type":"integer"},"approveUntil":{"type":"integer"}}},"transaction":{"type":"object","description":"The swap transaction before it is wrapped as the last step.","required":["to","data","value","gas"],"properties":{"to":{"$ref":"#/components/schemas/Address"},"data":{"$ref":"#/components/schemas/HexData"},"value":{"type":"string"},"gas":{"type":["string","null"]}}},"volumeTicket":{"type":"string","description":"Not issued to the Agent API."},"expiresAt":{"type":"integer","description":"Unix seconds after which the quote must be refreshed before sending."}}}]},"SwapBuildRequest":{"type":"object","required":["sellToken","buyToken","sellAmount","taker"],"properties":{"chainId":{"$ref":"#/components/schemas/ChainId","description":"The chain of the swap. Elysium (99901) when left out. See `GET /v1/swap/tokens` for the chains served."},"sellToken":{"$ref":"#/components/schemas/Address","description":"Address of the token to sell."},"buyToken":{"$ref":"#/components/schemas/Address","description":"Address of the token to buy."},"sellAmount":{"$ref":"#/components/schemas/BaseUnits","description":"The amount to sell, in base units, as a decimal string."},"taker":{"$ref":"#/components/schemas/Address","description":"The address that will send the swap."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"},"integratorFee":{"$ref":"#/components/schemas/IntegratorFee"}}},"SwapBuild":{"type":"object","description":"An unsigned swap.","required":["buildId","quote","steps"],"properties":{"buildId":{"type":"string","description":"Identifies this build. Report the last step's transaction with it."},"quote":{"$ref":"#/components/schemas/SwapQuote"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/Step"},"description":"The transactions to send, in order: an integrator fee transfer first on a Nest pool route, the approvals still needed, then the swap as the last step."}}},"SwapStatus":{"type":"object","properties":{"status":{"type":"string","enum":["pending","success","reverted"],"description":"pending until the transaction is mined."},"report":{"type":"string","enum":["counted","pending","failed","mismatch","expired","duplicate","unknown","invalid"],"description":"Present when the request carried a `buildId`: the outcome of counting the transaction. `unknown` is a buildId that is not this key's; `invalid` a malformed hash."}}},"BridgeConfig":{"type":"object","description":"What the bridge offers.","properties":{"chains":{"type":"array","description":"The chains the bridge offers.","items":{"type":"object","properties":{"id":{"type":"integer"},"key":{"type":"string"},"name":{"type":"string"},"available":{"type":"boolean"},"reason":{"type":["string","null"]}}}},"tokens":{"type":"array","description":"The tokens offered, per chain.","items":{"type":"object","properties":{"chainId":{"type":"integer"},"address":{"type":"string"},"symbol":{"type":"string"},"name":{"type":"string"},"decimals":{"type":"integer"}}}},"lanes":{"type":"array","description":"The directed lanes between chains, and whether each is available now.","items":{"type":"object","properties":{"from":{"type":"integer"},"to":{"type":"integer"},"available":{"type":"boolean"},"reason":{"type":["string","null"]}}}}}},"BridgeIntent":{"type":"object","description":"A transfer: who sends, what from where to where, and how much. The transfer must start on an EVM chain; the any-route lane's `route-*` actions take any asset on any chain.","required":["account","recipient","sourceChainId","destinationChainId","tokenIn","tokenOut","amountIn"],"properties":{"account":{"$ref":"#/components/schemas/Address","description":"The wallet that sends the transfer."},"recipient":{"type":"string","description":"Who receives on the destination chain. A 0x address on an EVM chain."},"sourceChainId":{"type":"integer","description":"The chain the transfer starts on: an EVM chain. Chain ids come from `GET /v1/bridge/config`."},"destinationChainId":{"type":"integer","description":"The chain the transfer ends on. Elysium is 99901."},"tokenIn":{"$ref":"#/components/schemas/Address","description":"The token sent, as listed for the source chain. The native token uses its placeholder address."},"tokenOut":{"type":"string","description":"The token received, as listed for the destination chain."},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"The amount sent, in base units of `tokenIn`, as a decimal string."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"},"gasTopUp":{"type":"boolean","description":"true also delivers a little HYPE on Elysium for gas when bridging to Elysium."},"integratorFee":{"$ref":"#/components/schemas/IntegratorFee"},"route":{"type":"object","description":"Quote or build: an Enso step of a route quoted with POST /v1/bridge/route-quote, `{ ticket, stepIndex, prior }`. Both read it (the server holds the ask to the step the ticket names); the step's fee role comes from the ticket, and a hop step after the first needs `prior`, the transaction of the step before.","required":["ticket","stepIndex"],"properties":{"ticket":{"type":"string","description":"The route's ticket."},"stepIndex":{"type":"integer","enum":[0,1]},"prior":{"$ref":"#/components/schemas/RoutePrior"}}},"via":{"type":"string","description":"Build only: the provider that quoted the first leg, as the quote names it."}}},"BridgeQuoteView":{"type":"object","description":"What one hop returns, after every fee.","required":["provider","sourceChainId","destinationChainId","tokenIn","tokenOut","amountIn","amountOut","minAmountOut","priceImpactBps","validUntil","etaSeconds","bridges","fees","nativeFees","router","intentRoute","refund"],"properties":{"provider":{"type":"string","description":"The provider that quoted the hop."},"sourceChainId":{"type":"integer"},"destinationChainId":{"type":"integer"},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BaseUnits"},"amountOut":{"$ref":"#/components/schemas/BaseUnits","description":"The amount received, in base units, after every fee."},"minAmountOut":{"$ref":"#/components/schemas/BaseUnits","description":"The minimum accepted, in base units."},"priceImpactBps":{"type":["number","null"]},"validUntil":{"type":"integer","description":"Unix seconds until which the quote holds."},"etaSeconds":{"type":["integer","null"]},"bridges":{"type":"array","items":{"type":"string"},"description":"The bridges the hop runs through."},"fees":{"type":"object","description":"The hop's fees.","required":["bridgeFeeUsd","networkCostUsd"],"properties":{"bridgeFeeUsd":{"type":["string","null"]},"networkCostUsd":{"type":["string","null"]},"oxleyFee":{"type":"object","description":"oxley's own fee on the hop, when one applies.","required":["amount","bps"],"properties":{"amount":{"type":"string"},"bps":{"type":"integer"}}},"swapFee":{"type":"object","description":"oxley's Swap fee on a swap step that also carries the bridge fee: the Bitcoin lane's second step only.","required":["amount","bps"],"properties":{"amount":{"type":"string"},"bps":{"type":"integer"}}}}},"nativeFees":{"$ref":"#/components/schemas/BaseUnits","description":"Native token Enso adds to the transaction's value on the source chain for bridge fees."},"router":{"$ref":"#/components/schemas/Address"},"intentRoute":{"type":"boolean"},"gasTopUp":{"type":"object","description":"The HYPE also delivered on Elysium for gas (wei: estimate and minimum).","required":["hype","minHype","sliceBps","swapFeeBps"],"properties":{"hype":{"type":"string"},"minHype":{"type":"string"},"sliceBps":{"type":"integer"},"swapFeeBps":{"type":"integer"}}},"refund":{"oneOf":[{"type":"null"},{"type":"object","required":["chainId","token","recipient"],"properties":{"chainId":{"type":"integer"},"token":{"$ref":"#/components/schemas/Address"},"recipient":{"$ref":"#/components/schemas/Address"}}}],"description":"Where the input goes back to if the hop fails."},"swapGuard":{"$ref":"#/components/schemas/SwapGuard"}}},"BridgeLegQuote":{"type":"object","description":"The quote for one hop.","required":["index","kind","provider","chainId","destinationChainId","tokenIn","tokenOut","status"],"properties":{"index":{"type":"integer"},"kind":{"type":"string","enum":["bridge","swap","withdraw","claim"]},"provider":{"type":"string","description":"The provider that quotes the hop."},"chainId":{"type":"integer"},"destinationChainId":{"type":"integer"},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"slow":{"type":"boolean"},"etaSeconds":{"type":["integer","null"]},"hop":{"type":"boolean"},"status":{"type":"string","enum":["quoted","indicative","unavailable"]},"reason":{"type":"string","description":"Why the hop is unavailable, when it is."},"quote":{"$ref":"#/components/schemas/BridgeQuoteView"}}},"BridgePlan":{"type":"object","description":"How the transfer is routed.","required":["ok","mode"],"properties":{"ok":{"type":"boolean","enum":[true]},"mode":{"type":"string","enum":["bridge","single-route","two-leg","swap-only","via-hyperevm","canonical-deposit","canonical-withdraw","withdraw-via-hyperevm"]},"legs":{"type":"array","items":{"$ref":"#/components/schemas/PlanLeg"},"description":"On a build's answer: the plan's legs."}}},"BridgeQuote":{"type":"object","description":"The quote for every hop.","required":["plan","legs","checkedAt"],"properties":{"plan":{"$ref":"#/components/schemas/BridgePlan"},"legs":{"type":"array","items":{"$ref":"#/components/schemas/BridgeLegQuote"}},"checkedAt":{"type":"integer","description":"When the quote was made, in Unix milliseconds."},"integratorFee":{"$ref":"#/components/schemas/BridgeIntegratorFee"}}},"BridgeBuildRequest":{"allOf":[{"$ref":"#/components/schemas/BridgeIntent"},{"type":"object","properties":{"via":{"type":"string","description":"The provider that quoted the first leg, as the quote names it."}}}]},"BridgeBuild":{"type":"object","description":"The first leg of a transfer, unsigned. A later hop is built with its own intent once this one has landed; the answer carries the intent for the next hop.","required":["buildId","steps"],"properties":{"buildId":{"type":"string","description":"Identifies this build. Report the last step's transaction with it."},"plan":{"$ref":"#/components/schemas/BridgePlan"},"prepared":{"$ref":"#/components/schemas/PreparedLeg"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/Step"},"description":"The transactions to send, in order: the integrator fee transfer first when there is one, the approvals still needed, then the transaction as the last step."},"integratorFee":{"$ref":"#/components/schemas/BridgeIntegratorFee"}}},"BridgeStatusRequest":{"type":"object","required":["chainId","txHash"],"properties":{"chainId":{"type":"integer","description":"The chain the transaction was sent on."},"txHash":{"$ref":"#/components/schemas/TransactionHash"},"kind":{"type":"string","enum":["bridge","swap","relay","orbit-deposit","orbit-withdrawal"],"description":"What to follow. Omit it for an ordinary bridge transfer. `swap` is a hop on one chain, `relay` a direct Relay leg, `orbit-deposit` and `orbit-withdrawal` Elysium's own bridge with HyperEVM."},"buildId":{"type":"string","description":"The buildId the transaction was built with."}}},"BridgeStatus":{"type":"object","description":"A transfer's progress.","required":["source","delivery","stale","retryAfterMs"],"properties":{"source":{"type":"string","enum":["pending","success","reverted","unknown"],"description":"The state of the source transaction."},"delivery":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/DeliveryView"}],"description":"The delivery's progress, once the source has succeeded; null before."},"stale":{"type":"boolean","description":"The answer is the last one known: the provider did not answer."},"retryAfterMs":{"type":"integer","description":"How long to wait before asking again, in milliseconds."},"points":{"type":"string","enum":["counted","duplicate","skipped"],"description":"Not issued to the Agent API."},"deliveredAmount":{"$ref":"#/components/schemas/BaseUnits","description":"route-status and bitcoin-status, once delivered: what the provider says it delivered."},"txid":{"type":"string","description":"bitcoin-status: the Bitcoin transaction that paid the deposit address."},"report":{"type":"string","enum":["counted","pending","failed","mismatch","expired","duplicate","unknown","invalid"],"description":"Present when the request carried a `buildId`: the outcome of counting the transaction. `unknown` is a buildId that is not this key's; `invalid` a malformed hash."}}},"ReportRequest":{"type":"object","required":["buildId","txHash"],"properties":{"buildId":{"type":"string","description":"The buildId the build returned."},"txHash":{"$ref":"#/components/schemas/TransactionHash","description":"The hash of the transaction you sent for that build: its last step."}}},"ReportResult":{"type":"object","required":["outcome"],"properties":{"outcome":{"type":"string","enum":["counted","pending","failed","mismatch","expired","duplicate"],"description":"`counted`: it passed every check and counts. `pending`: the receipt is not available yet; report again shortly. `failed`: the transaction did not succeed. `mismatch`: not the transaction that was built (another sender or target, other calldata or value, or mined before the build). `expired`: more than 24 hours after the build. `duplicate`: that transaction, or this build, already counted."},"volume30dUsd":{"type":"number","description":"The key's 30-day volume now, in USD."},"feePayingVolume30dUsd":{"type":"number","description":"The part of it that paid oxley a fee (what moves the tier), in USD."}}},"ChainId":{"type":"integer","description":"A chain's id. Elysium is 99901."},"SwapChains":{"type":"array","items":{"type":"integer"},"description":"The chains Swap serves now: the Swap engine's table, for the keys this service holds."},"SwapSearch":{"type":"object","description":"The tokens a search found.","properties":{"tokens":{"type":"array","items":{"type":"object","description":"A token: address, symbol, name, decimals; on a chain other than Elysium also chainId, kind and whether the providers or the chain verified it."}}}},"AnyIntent":{"type":"object","description":"What the person asked for in a transfer of any asset on any chain to any asset on any chain.","required":["account","recipient","sourceChainId","destinationChainId","tokenIn","tokenOut","amountIn"],"properties":{"account":{"type":"string","description":"The wallet that pays: an EVM address, a Solana account or a Bitcoin address."},"recipient":{"type":"string","description":"Who receives on the destination chain, as an address of that chain's kind."},"evmAccount":{"$ref":"#/components/schemas/Address","description":"The EVM wallet that signs every step after the first, when the payer is a Solana or Bitcoin wallet."},"sourceChainId":{"type":"integer","description":"The chain the transfer starts on. Any chain of GET /v1/bridge/config, Solana and Bitcoin included."},"destinationChainId":{"type":"integer","description":"The chain it ends on."},"tokenIn":{"type":"string","description":"The token sent: a 0x address (the native coin is 0xeeee...eeee), a Solana mint, or `BTC`."},"tokenOut":{"type":"string","description":"The token received, named the way tokenIn is."},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"The amount sent, in base units of tokenIn, as a decimal string."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"},"pay":{"type":"string","enum":["wallet","address"],"description":"Bitcoin starts only: how the deposit is paid."}}},"RouteStep":{"type":"object","description":"One step of a route: one signature, with its approvals, by one wallet on one chain (lib/mainnet-bridge/any-route.ts `RouteStep`).","required":["index","provider","flow","signer","chainId","destinationChainId","tokenIn","tokenOut","amountIn","amountOut","minAmountOut","venues","etaSeconds","gasUsd","extraUsd","feeCarried"],"properties":{"index":{"type":"integer","enum":[0,1],"description":"0 or 1."},"provider":{"type":"string","enum":["enso","ravn","relay","relay-solana","swap"]},"flow":{"type":"string","enum":["enso","solana-relay","bitcoin","ravn-evm","ravn-solana","relay-evm","relay-svm","swap"],"description":"Which flow runs the step."},"signer":{"type":"string","enum":["source","evm"],"description":"Who signs: the paying wallet (`source`) or the EVM wallet (`evmAccount`, or the payer when it is an EVM wallet)."},"chainId":{"type":"integer","description":"The chain the step starts on."},"destinationChainId":{"type":"integer","description":"The chain it ends on."},"tokenIn":{"type":"string","description":"The token the step spends."},"tokenOut":{"type":"string","description":"The token it delivers."},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"What the step spends."},"amountOut":{"$ref":"#/components/schemas/BaseUnits","description":"The expected delivery."},"minAmountOut":{"$ref":"#/components/schemas/BaseUnits","description":"The guaranteed minimum."},"venues":{"type":"array","items":{"type":"string"},"description":"The bridges and venues the step runs through."},"etaSeconds":{"type":["integer","null"]},"gasUsd":{"type":["number","null"],"description":"What the signer pays on top for this step's own transactions; null when unknown."},"extraUsd":{"type":["number","null"],"description":"Any other cost paid on top of the input (Enso's native bridge fees); null when none."},"oxleyFee":{"type":"object","description":"The fee this step carries: exactly one step of a route does, and it is absent on a hop.","required":["bps","amount"],"properties":{"bps":{"type":"integer"},"amount":{"$ref":"#/components/schemas/BaseUnits","description":"In base units of tokenIn."},"wallet":{"type":"string","description":"The wallet this step's fee is paid to: the one Enso's dashboard names for the step's chain. Set on a step whose fee is a payment you send (a Ravn step's own fee transfer, a Swap engine step's fee)."}}},"feeCarried":{"type":"boolean","description":"Whether the provider takes the fee inside its route; false means it is charged by a transfer of our own or on the final Swap engine step."},"feeKey":{"type":"integer","description":"Ravn's size-band key that quoted this step (its fee in basis points), when it was not the main key; for a Relay step the rate its quote asked of Relay as the app fee (0 for a hop). Read only for information: the ticket decides."},"swapGuard":{"$ref":"#/components/schemas/SwapGuard"}}},"RouteCandidate":{"type":"object","description":"One way to do the whole transfer. `enso` is Enso's full quote, when the first step is Enso's: build it with POST /v1/bridge/build and `route`.","required":["id","kind","steps","amountOut","minAmountOut","etaSeconds","outUsd","costUsd","scoreUsd"],"properties":{"id":{"type":"string","description":"The candidate's name, sent back with route-prepare and route-continue (for example `ravn`, `enso`, `ravn>enso@8453`, `enso+swap`)."},"kind":{"type":"string","enum":["direct","middle","finish","start"]},"via":{"type":"object","description":"The stop of a two-step route.","required":["chainId","token"],"properties":{"chainId":{"type":"integer"},"token":{"type":"string"}}},"steps":{"type":"array","items":{"$ref":"#/components/schemas/RouteStep"}},"amountOut":{"$ref":"#/components/schemas/BaseUnits","description":"The last step's expected delivery."},"minAmountOut":{"$ref":"#/components/schemas/BaseUnits","description":"The last step's guaranteed minimum."},"etaSeconds":{"type":["integer","null"]},"outUsd":{"type":["number","null"]},"costUsd":{"type":["number","null"]},"scoreUsd":{"type":["number","null"],"description":"What the ranking compared: what you end with in dollars, less every cost paid on top; null when no price was known."},"enso":{"$ref":"#/components/schemas/BridgeQuote"},"ticket":{"type":"string","description":"The server's signed statement of this candidate, sent back unchanged. Absent on an estimate and when the service has no ticket key."}}},"RouteQuoteRequest":{"allOf":[{"$ref":"#/components/schemas/AnyIntent"},{"type":"object","properties":{"depth":{"type":"string","enum":["estimate","full"],"description":"`full` (the default) races every provider and signs each candidate. `estimate` answers from memory or one light race, carries no ticket and cannot be prepared."},"integratorFee":{"$ref":"#/components/schemas/IntegratorFee"}}}]},"RouteQuote":{"type":"object","description":"The race's answer.","required":["winner","others","refused","ranking","checkedAt"],"properties":{"winner":{"$ref":"#/components/schemas/RouteCandidate"},"others":{"type":"array","items":{"$ref":"#/components/schemas/RouteCandidate"},"description":"The other candidates, best first."},"refused":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string"},"kind":{"type":"string"},"code":{"type":"string"}}},"description":"Who was asked and gave no route, by code."},"ranking":{"type":"string","enum":["usd","amount"],"description":"How the candidates were compared: by what you end with in dollars after every cost, or by the amount alone when no price was known."},"checkedAt":{"type":"integer","description":"Milliseconds."},"estimate":{"type":"object","description":"Present only on an estimate.","properties":{"source":{"type":"string","enum":["recent","light"]},"quotedAt":{"type":"integer"}}},"integratorFee":{"$ref":"#/components/schemas/BridgeIntegratorFee"}}},"RouteAction":{"description":"What the wallet does, in order. `reset`, `approval`, `transaction`, `transfer` (a deposit) and `fee` carry a `tx` to send; `signature` carries EIP-712 typed data to sign and post with route-sign; `solana` carries one unsigned base64 transaction.","oneOf":[{"type":"object","required":["kind","label","tx"],"properties":{"kind":{"type":"string","enum":["reset","approval","transaction","transfer","fee"]},"label":{"type":"string"},"tx":{"$ref":"#/components/schemas/Tx"},"approval":{"type":"object","description":"The approval's token, spender and amount."}}},{"type":"object","required":["kind","label","chainId","typedData"],"properties":{"kind":{"type":"string","enum":["signature"]},"label":{"type":"string"},"chainId":{"type":"integer"},"typedData":{"type":"object","description":"EIP-712 domain, types, primaryType and message."}}},{"type":"object","required":["kind","label","transaction"],"properties":{"kind":{"type":"string","enum":["solana"]},"label":{"type":"string"},"transaction":{"type":"string","description":"An unsigned Solana transaction, base64."}}}]},"RoutePrepared":{"type":"object","description":"A step prepared: unsigned.","required":["step","actions","batch","quoteToken","statusRef","swapId","expiresAt","preparedAt"],"properties":{"step":{"$ref":"#/components/schemas/RouteStep"},"actions":{"type":"array","items":{"$ref":"#/components/schemas/RouteAction"}},"batch":{"type":"boolean","description":"Whether the EVM actions may go to the wallet as one atomic batch."},"quoteToken":{"type":"string","description":"Keys for route-sign and route-status: Ravn's token (empty on a Relay or Swap engine step)."},"statusRef":{"type":["string","null"]},"swapId":{"type":["string","null"]},"feeKey":{"type":"integer"},"follow":{"type":"string","description":"The server's signed follow token, sent back with route-sign and route-status."},"expiresAt":{"type":"integer","description":"Unix seconds: ask again after it."},"preparedAt":{"type":"integer","description":"The server's clock in milliseconds when it answered."}}},"RoutePrepareRequest":{"type":"object","required":["intent","candidateId","stepIndex","amountIn","reviewed","ticket"],"properties":{"intent":{"$ref":"#/components/schemas/AnyIntent"},"candidateId":{"type":"string","description":"The candidate's id."},"stepIndex":{"type":"integer","minimum":0,"maximum":1},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"What the step spends: the step's own amount from the quote or from route-continue."},"reviewed":{"type":"object","description":"What was reviewed: a fresh quote that delivers less than minAmountOut is refused (PRICE_MOVED).","required":["minAmountOut","venues"],"properties":{"minAmountOut":{"$ref":"#/components/schemas/BaseUnits"},"venues":{"type":"array","items":{"type":"string"}}}},"ticket":{"type":"string","description":"The candidate's `ticket`."},"prior":{"$ref":"#/components/schemas/RoutePrior"},"feePaid":{"type":"object","required":["txHash"],"properties":{"txHash":{"$ref":"#/components/schemas/TransactionHash"}}},"integratorFee":{"$ref":"#/components/schemas/IntegratorFee"}}},"RoutePrior":{"type":"object","description":"The transaction that sent the step before this one.","required":["chainId","txHash"],"properties":{"chainId":{"type":"integer"},"txHash":{"type":"string"}}},"RoutePrepareAnswer":{"type":"object","required":["prepared"],"properties":{"buildId":{"type":"string","description":"Present when the step has an EVM transaction a report can confirm. Report the main transaction with it."},"prepared":{"$ref":"#/components/schemas/RoutePrepared"},"integratorFee":{"$ref":"#/components/schemas/BridgeIntegratorFee"}}},"RouteContinueRequest":{"type":"object","required":["intent","candidateId","delivered","ticket","prior"],"properties":{"intent":{"$ref":"#/components/schemas/AnyIntent"},"candidateId":{"type":"string","description":"The two-step candidate's id."},"delivered":{"$ref":"#/components/schemas/BaseUnits","description":"What the first step delivered."},"ticket":{"type":"string","description":"The candidate's `ticket`."},"prior":{"$ref":"#/components/schemas/RoutePrior"},"integratorFee":{"$ref":"#/components/schemas/IntegratorFee"}}},"RouteSignRequest":{"type":"object","required":["quoteToken","signature"],"properties":{"quoteToken":{"type":"string","description":"From the prepared step."},"signature":{"type":"string","description":"The EIP-712 signature, 0x hex."},"approvalSignature":{"type":"string","description":"A second signature when the step asks for one."},"feeKey":{"type":"integer"},"follow":{"type":"string","description":"The step's follow token."}}},"RouteSignAnswer":{"type":"object","properties":{"accepted":{"type":"boolean"},"statusRef":{"type":["string","null"]}}},"RouteStatusRequest":{"type":"object","required":["chainId"],"properties":{"chainId":{"type":"integer","description":"The chain the step starts on."},"quoteToken":{"type":"string","description":"A Ravn step's token."},"statusRef":{"type":"string","description":"A Ravn step's reference."},"txHash":{"type":"string","description":"The step's own source transaction."},"feeTxHash":{"type":"string","description":"The transaction that carried a fee Ravn collects beside the swap."},"feeKey":{"type":"integer"},"follow":{"type":"string","description":"The step's follow token."},"provider":{"type":"string","enum":["relay"],"description":"Set for a Relay step."},"requestId":{"type":"string","description":"A Relay step's request id."},"buildId":{"type":"string","description":"The buildId; with the step's txHash a successful transaction also counts toward the volume."}}},"RouteTokensRequest":{"type":"object","required":["chainId"],"properties":{"chainId":{"type":"integer","description":"The chain."},"query":{"type":"string","description":"A symbol or a name to search, or one token's address or mint to look up."}}},"RouteTokens":{"type":"object","properties":{"chainId":{"type":"integer"},"tokens":{"type":"array","items":{"type":"object","description":"A token: chainId, address, symbol, name, decimals, kind, icon, verified."}},"partial":{"type":"boolean","description":"Something was left out or a source did not answer."}}},"SolanaIntent":{"type":"object","required":["account","recipient","sourceChainId","destinationChainId","tokenIn","tokenOut","amountIn"],"properties":{"account":{"type":"string","description":"The Solana account that pays."},"recipient":{"type":"string","description":"Who receives on Elysium: an EVM address."},"sourceChainId":{"type":"integer","description":"Solana: 1861167595."},"destinationChainId":{"type":"integer","description":"Elysium: 99901."},"tokenIn":{"type":"string","description":"SOL's system program id or a mint the lane takes."},"tokenOut":{"$ref":"#/components/schemas/Address"},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"Base units of tokenIn."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"}}},"SolanaStatusRequest":{"type":"object","required":["requestId"],"properties":{"requestId":{"$ref":"#/components/schemas/TransactionHash"},"signature":{"type":"string","description":"The deposit's Solana signature."}}},"AccountRequest":{"type":"object","required":["account"],"properties":{"account":{"type":"string","description":"A wallet address."}}},"BitcoinIntent":{"type":"object","required":["account","recipient","sourceChainId","destinationChainId","tokenIn","tokenOut","amountIn","pay"],"properties":{"account":{"type":"string","description":"The Bitcoin address that pays and is refunded."},"recipient":{"type":"string","description":"Who receives on the destination chain."},"sourceChainId":{"type":"integer","description":"Bitcoin: 8253038."},"destinationChainId":{"type":"integer","description":"A chain Ravn serves."},"tokenIn":{"type":"string","enum":["BTC"]},"tokenOut":{"type":"string","description":"The token received."},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"Satoshis."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"},"pay":{"type":"string","enum":["wallet","address"]}}},"BitcoinStatusRequest":{"type":"object","required":["quoteToken","statusRef"],"properties":{"quoteToken":{"type":"string","description":"From bitcoin-prepare."},"statusRef":{"type":"string","description":"From bitcoin-prepare."},"txid":{"type":"string","description":"The deposit's Bitcoin transaction id."},"feeKey":{"type":"integer"},"ticket":{"type":"string","description":"The transfer's ticket."},"destinationChainId":{"type":"integer"}}},"BitcoinFinishRequest":{"type":"object","required":["taker","tokenIn","tokenOut","sellAmount","slippageBps","ticket"],"properties":{"taker":{"$ref":"#/components/schemas/Address"},"tokenIn":{"$ref":"#/components/schemas/Address"},"tokenOut":{"$ref":"#/components/schemas/Address"},"sellAmount":{"$ref":"#/components/schemas/BaseUnits"},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"},"ticket":{"type":"string","description":"The transfer's ticket from bitcoin-prepare."}}},"BalancesRequest":{"type":"object","required":["account","chainId"],"properties":{"account":{"$ref":"#/components/schemas/Address"},"chainId":{"type":"integer","description":"The chain."},"scan":{"type":"boolean","description":"List every token the wallet holds, with dollar values and flags (the zap must be on)."}}},"Balances":{"type":"object","properties":{"chainId":{"type":"integer"},"balances":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"amount":{"$ref":"#/components/schemas/BaseUnits"},"usd":{"type":["number","null"]},"token":{"type":"object","description":"The token, with a scan."},"flag":{"type":"string"}},"required":["address","amount"]}},"partial":{"type":"boolean"}},"required":["chainId","balances","partial"]},"ClaimRequest":{"type":"object","required":["account","hash","kind"],"properties":{"account":{"$ref":"#/components/schemas/Address"},"hash":{"$ref":"#/components/schemas/TransactionHash"},"kind":{"type":"string","enum":["withdrawal","redeem"]},"index":{"type":"integer"}}},"ZapIntent":{"type":"object","description":"A zap: sell several assets on one chain, bridge once, receive one asset or a weighted basket.","required":["account","recipient","sourceChainId","destinationChainId","sources","targets"],"properties":{"account":{"type":"string","description":"The source chain's signer."},"evmAccount":{"$ref":"#/components/schemas/Address"},"recipient":{"type":"string","description":"Who receives on the destination chain."},"sourceChainId":{"type":"integer","description":"The chain the assets are sold on."},"destinationChainId":{"type":"integer","description":"The chain they arrive on."},"sources":{"type":"array","items":{"type":"object","required":["token","amountIn"],"properties":{"token":{"type":"string"},"amountIn":{"$ref":"#/components/schemas/BaseUnits"}}},"description":"What is sold: at most 8."},"targets":{"type":"array","items":{"type":"object","required":["token","weightBps"],"properties":{"token":{"type":"string"},"weightBps":{"type":"integer","minimum":1,"maximum":10000}}},"description":"What is received and each one's share: the weights sum to 10000; at most 8."},"slippageBps":{"$ref":"#/components/schemas/SlippageBps"}}},"ZapQuoteRequest":{"allOf":[{"$ref":"#/components/schemas/ZapIntent"},{"type":"object","properties":{"depth":{"type":"string","enum":["estimate","full"],"description":"`full` (the default) races the bridge and signs the plan. `estimate` carries no ticket and cannot be prepared."}}}]},"ZapQuote":{"type":"object","required":["legs","targets"],"properties":{"intent":{"$ref":"#/components/schemas/ZapIntent"},"depth":{"type":"string","enum":["estimate","full"]},"legs":{"type":"array","items":{"type":"object","description":"A leg: id (`sell-0`..., `bridge`, `buy-0`...), kind, chainId, tokenIn, tokenOut, amountIn, amountOut, minAmountOut, impactBps, costUsd, venues, and for the bridge its route."}},"targets":{"type":"array","items":{"type":"object","description":"What each target ends up as."}},"sendUsd":{"type":["number","null"]},"receiveUsd":{"type":["number","null"]},"lostUsd":{"type":["number","null"]},"feesUsd":{"type":["number","null"]},"impactUsd":{"type":["number","null"]},"gasUsd":{"type":["number","null"]},"prompts":{"type":"object","properties":{"batched":{"type":"integer"},"unbatched":{"type":"integer"}}},"ticket":{"type":"string","description":"The server's signed statement of the zap, sent back with zap-prepare and zap-status. Absent on an estimate."},"checkedAt":{"type":"integer"}}},"ZapCurvesRequest":{"type":"object","required":["destinationChainId","tokens","maxUsd"],"properties":{"destinationChainId":{"type":"integer","description":"The destination chain."},"tokens":{"type":"array","items":{"type":"string"},"description":"The candidate targets."},"maxUsd":{"type":"number","description":"The largest size sampled, in dollars."}}},"ZapCurves":{"type":"object","properties":{"curves":{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"points":{"type":"array","items":{"type":"object","properties":{"usd":{"type":"number"},"impactBps":{"type":"number"}}}}}}},"checkedAt":{"type":"integer"}}},"ZapPrepareRequest":{"type":"object","required":["intent","ticket","legId","amountIn"],"properties":{"intent":{"$ref":"#/components/schemas/ZapIntent"},"ticket":{"type":"string","description":"The zap's `ticket`."},"legId":{"type":"string","description":"`sell-0`, `sell-1`..., `bridge`, `buy-0`..."},"amountIn":{"$ref":"#/components/schemas/BaseUnits","description":"What the leg spends now: at most what the quote said (a buy: what the bridge really delivered)."},"prior":{"$ref":"#/components/schemas/RoutePrior"},"stepIndex":{"type":"integer","minimum":0,"maximum":1,"description":"The bridge leg's own step when its route has two."}}},"ZapStatusRequest":{"type":"object","required":["ticket","legs"],"properties":{"ticket":{"type":"string","description":"The zap's `ticket`."},"legs":{"type":"array","items":{"type":"object","required":["legId","chainId"],"properties":{"legId":{"type":"string"},"chainId":{"type":"integer"},"txHash":{"type":"string"},"follow":{"type":"string"},"route":{"type":"object","description":"A Ravn bridge leg's route-status body."}}}}}},"ZapStatus":{"type":"object","properties":{"legs":{"type":"array","items":{"type":"object","description":"A leg's id with its status, as route-status answers."}},"checkedAt":{"type":"integer"}}},"SwapVenueQuote":{"type":"object","description":"One venue's answer to a swap.","required":["venue","buyAmount"],"properties":{"venue":{"type":"string","enum":["zeroex","nest","enso"]},"buyAmount":{"$ref":"#/components/schemas/BaseUnits","description":"What the venue pays, in base units of the buy token, after the same fees as the others."},"sources":{"type":"array","items":{"type":"string"}}}},"SwapAllowance":{"type":"object","required":["spender","actual"],"properties":{"spender":{"$ref":"#/components/schemas/Address"},"actual":{"$ref":"#/components/schemas/BaseUnits","description":"The current allowance."},"resetFirst":{"type":"boolean","description":"On a quote: whether the token must have its allowance set to 0 before the new amount."}}},"GuardPrice":{"type":"object","description":"A token's independent price in dollars.","required":["chainId","token","usd","decimals"],"properties":{"chainId":{"type":"integer"},"token":{"type":"string"},"usd":{"type":"number"},"decimals":{"type":"integer"}}},"SwapGuard":{"type":"object","description":"The one guard of a swap the person's asset goes through inside a route (a Relay leg that swaps first, a Mayan swap leg): what the swap is held to. A Relay leg also carries `token` and `minAmount`.","required":["inputUsd","minUsd","impactBps"],"properties":{"token":{"$ref":"#/components/schemas/Address"},"minAmount":{"type":"string"},"inputUsd":{"type":"number","description":"The input, in dollars, priced by Enso (or one dollar a USDC), never by the venue."},"minUsd":{"type":"number","description":"The least the swap is expected to hold, in dollars."},"impactBps":{"type":"number","description":"How far under the input's market value the swap is expected to pay, in basis points (0 when it pays at least that)."},"prices":{"type":"array","items":{"$ref":"#/components/schemas/GuardPrice"},"description":"A Ravn step through Mayan: the independent prices its swap leg is held with."},"impactUnknown":{"type":"boolean","enum":[true],"description":"The token the swap ends in has no independent price: minUsd and impactBps are 0 and mean nothing."},"costsIncluded":{"type":"boolean","enum":[true],"description":"impactBps is the whole shortfall of the step's expected delivery, the bridge's own costs included."}}},"DeliveryView":{"type":"object","description":"The delivery's progress.","required":["state","phase","destinationChainId","destinationTxHash","executionTxHash","refundChainId","refundTxHash","deadline"],"properties":{"state":{"type":"string","enum":["pending","inflight","delivered","failed","manual","unknown"]},"phase":{"type":["string","null"]},"destinationChainId":{"type":["integer","null"]},"destinationTxHash":{"type":["string","null"]},"executionTxHash":{"type":["string","null"]},"refundChainId":{"type":["integer","null"]},"refundTxHash":{"type":["string","null"]},"deadline":{"type":["string","null"]},"etaAt":{"type":["integer","null"],"description":"Canonical (Orbit) transfers only: when the next step is expected, in Unix seconds."},"claimable":{"type":"boolean","description":"A withdrawal: whether the claim can be prepared now."}}},"PlanLeg":{"type":"object","description":"One leg of a plan.","required":["index","kind","provider","chainId","destinationChainId","tokenIn","tokenOut"],"properties":{"index":{"type":"integer"},"kind":{"type":"string","enum":["bridge","swap","withdraw","claim"]},"provider":{"type":"string"},"chainId":{"type":"integer"},"destinationChainId":{"type":"integer"},"tokenIn":{"type":"string"},"tokenOut":{"type":"string"},"slow":{"type":"boolean","description":"The leg takes days."},"etaSeconds":{"type":["integer","null"]},"hop":{"type":"boolean","description":"The leg only carries the transfer to a hop chain: it is quoted without oxley's fee, which the next leg pays."}}},"PreparedStep":{"type":"object","description":"A transaction of a prepared leg, as the site's own prepare answers it: `fee` is a fee transfer sent right before the transaction.","required":["kind","label","tx"],"properties":{"kind":{"type":"string","enum":["approval","fee","transaction"]},"label":{"type":"string"},"tx":{"$ref":"#/components/schemas/Tx"},"approval":{"type":"object","required":["token","spender","amount"],"properties":{"token":{"$ref":"#/components/schemas/Address"},"spender":{"$ref":"#/components/schemas/Address"},"amount":{"type":"string"}}}}},"PreparedLeg":{"type":"object","description":"The first leg as prepared.","required":["leg","quote","steps","simulated","expiresAt"],"properties":{"leg":{"$ref":"#/components/schemas/PlanLeg"},"quote":{"$ref":"#/components/schemas/BridgeQuoteView"},"steps":{"type":"array","items":{"$ref":"#/components/schemas/PreparedStep"}},"simulated":{"type":"boolean"},"expiresAt":{"type":"integer","description":"Unix seconds."},"preparedAt":{"type":"integer","description":"The server's clock in milliseconds."},"simulation":{"type":"string","enum":["quoter","rpc","route"],"description":"Who proved the transaction executes now."}}},"SolanaPrepared":{"type":"object","description":"A Solana to Elysium transfer prepared.","required":["quote","requestId","transaction","lastValidBlockHeight","expiresAt","preparedAt","deposit"],"properties":{"quote":{"$ref":"#/components/schemas/BridgeQuoteView"},"requestId":{"$ref":"#/components/schemas/TransactionHash"},"transaction":{"type":"string","description":"The unsigned Solana transaction, base64 of the wire bytes (one empty signature slot, then the message): sign it exactly as given and send it before `expiresAt`."},"lastValidBlockHeight":{"type":"integer","description":"The blockhash's last valid block height."},"expiresAt":{"type":"integer","description":"Unix seconds: the server stops offering the transaction."},"preparedAt":{"type":"integer","description":"The server's clock in milliseconds."},"deposit":{"type":"object","description":"What Relay's one instruction must say.","required":["program","kind","mint","amount"],"properties":{"program":{"type":"string"},"kind":{"type":"string","enum":["native","token"]},"mint":{"type":"string"},"amount":{"type":"string"}}}}},"SolanaPrepareAnswer":{"type":"object","required":["prepared"],"properties":{"prepared":{"$ref":"#/components/schemas/SolanaPrepared"}}},"SolanaBalances":{"type":"object","required":["balances","partial"],"properties":{"balances":{"type":"array","items":{"type":"object","required":["mint","amount"],"properties":{"mint":{"type":"string"},"amount":{"$ref":"#/components/schemas/BaseUnits"}}},"description":"SOL (the System Program id) and the lane's tokens."},"partial":{"type":"boolean","description":"A read failed."}}},"BitcoinFinish":{"type":"object","description":"The second step of a transfer into a token Ravn does not deliver: the Swap engine's swap on Elysium.","required":["via","intermediate","reserve","sellMin","sellEstimate","tokenOut","amountOut","minAmountOut","venues","slippageBps","networkFee","etaSeconds"],"properties":{"via":{"type":"string","enum":["hype","usdc"]},"intermediate":{"$ref":"#/components/schemas/Address"},"reserve":{"$ref":"#/components/schemas/BaseUnits","description":"HYPE (wei) step 2 does not sell, so the wallet can pay for it."},"sellMin":{"$ref":"#/components/schemas/BaseUnits","description":"What step 2 sells at Ravn's guaranteed minimum."},"sellEstimate":{"$ref":"#/components/schemas/BaseUnits","description":"What step 2 sells at Ravn's expected output."},"tokenOut":{"$ref":"#/components/schemas/Address"},"amountOut":{"$ref":"#/components/schemas/BaseUnits"},"minAmountOut":{"$ref":"#/components/schemas/BaseUnits"},"venues":{"type":"array","items":{"type":"string"}},"slippageBps":{"type":"integer"},"bridgeFee":{"type":"object","required":["amount","bps"],"properties":{"amount":{"type":"string"},"bps":{"type":"integer"}}},"swapFee":{"type":"object","required":["amount","bps"],"properties":{"amount":{"type":"string"},"bps":{"type":"integer"}}},"networkFee":{"type":["string","null"]},"etaSeconds":{"type":"integer"}}},"BitcoinQuote":{"description":"A Bitcoin quote: a bridge quote, with `extras`.","allOf":[{"$ref":"#/components/schemas/BridgeQuote"},{"type":"object","required":["extras"],"properties":{"extras":{"$ref":"#/components/schemas/BitcoinQuoteExtras"}}}]},"BitcoinPrepared":{"type":"object","description":"A Bitcoin transfer prepared.","required":["quote","extras","quoteToken","statusRef","swapId","deposit","fee","psbt","expiresAt","preparedAt"],"properties":{"quote":{"$ref":"#/components/schemas/BridgeQuoteView"},"extras":{"$ref":"#/components/schemas/BitcoinQuoteExtras"},"quoteToken":{"type":"string","description":"Ravn's key for bitcoin-status: the whole composed route (up to 32,768 characters)."},"statusRef":{"type":"string"},"swapId":{"type":["string","null"]},"finish":{"$ref":"#/components/schemas/BitcoinFinish"},"deposit":{"type":"object","description":"Where and how much to pay.","required":["address","amount","expiresAt"],"properties":{"address":{"type":"string"},"amount":{"type":"string","description":"Satoshis: send exactly this."},"expiresAt":{"type":["integer","null"]}}},"fee":{"oneOf":[{"type":"null"},{"type":"object","required":["address","amount"],"properties":{"address":{"type":"string"},"amount":{"type":"string"}}}],"description":"A second output of the same transaction, when Ravn collects a fee there."},"psbt":{"type":["string","null"],"description":"Ravn's ready-made transaction (base64) for `pay: wallet` from a native SegWit sender; null otherwise."},"expiresAt":{"type":"integer","description":"Unix seconds."},"preparedAt":{"type":"integer","description":"The server's clock in milliseconds."},"feeKey":{"type":"integer"}}},"BitcoinPrepareAnswer":{"type":"object","required":["prepared"],"properties":{"prepared":{"$ref":"#/components/schemas/BitcoinPrepared"},"ticket":{"type":"string","description":"The server's signed statement of the transfer, sent back unchanged with bitcoin-status and bitcoin-finish."}}},"BitcoinFinishAnswer":{"type":"object","description":"Step 2's fresh firm quote: the Swap engine's own `SwapQuote` (0x's quote or Nest's pool route), with its `transaction` and the `allowance` (or `permit2`) it still needs. It is not a list of actions: send the approval it names (exactly the amount, or Permit2 for a pool route), then the transaction, from `taker`. `bridgeFee` is set when the swap carries the bridge's fee.","required":["quote"],"properties":{"quote":{"$ref":"#/components/schemas/SwapQuote"}}},"BitcoinBalance":{"type":"object","required":["account","confirmed","unconfirmed"],"properties":{"account":{"type":"string"},"confirmed":{"type":"string","description":"Satoshis in blocks, received less spent."},"unconfirmed":{"type":"string","description":"The net change still in the mempool, received less spent: negative while an unconfirmed spend waits."}}},"ClaimAnswer":{"type":"object","description":"The unsigned claim of a finished withdrawal, or the redeem of a deposit's ticket. Not ready: 409 CLAIM_NOT_READY with `etaAt`, ALREADY_CLAIMED or TICKET_NOT_LIVE.","required":["prepared"],"properties":{"prepared":{"type":"object","required":["action","chainId","steps","simulated","amount","token","recipient"],"properties":{"action":{"type":"string","enum":["claim","redeem"]},"chainId":{"type":"integer","description":"HyperEVM for a claim, Elysium for a redeem."},"steps":{"type":"array","items":{"$ref":"#/components/schemas/PreparedStep"}},"simulated":{"type":"boolean"},"simulation":{"type":"string","enum":["quoter","rpc","route"]},"amount":{"type":["string","null"]},"token":{"type":["string","null"]},"recipient":{"type":["string","null"]},"ticketId":{"type":"string"}}}}},"BitcoinQuoteExtras":{"type":"object","required":["feeCarried","venues","noMinimum"],"properties":{"feeCarried":{"type":"boolean","description":"Whether oxley's fee rides inside Ravn's route."},"venues":{"type":"array","items":{"type":"string"}},"noMinimum":{"type":"boolean"},"finish":{"$ref":"#/components/schemas/BitcoinFinish"},"feeUncollected":{"type":"boolean","enum":[true],"description":"A direct route that cannot carry the fee while a bridge fee is due: the fee is not collected there."}}},"Health":{"type":"object","description":"What the service is configured with: names, never values.","required":["ok","db","limiter","gate","budgets","secrets","configured","lanes","missing"],"properties":{"ok":{"type":"boolean"},"db":{"type":"boolean"},"limiter":{"type":"boolean"},"gate":{"type":"boolean"},"budgets":{"type":"object","description":"The whole service's calls a minute to each provider.","required":["enso","zeroex","ravn","relay"],"properties":{"enso":{"type":"integer"},"zeroex":{"type":"integer"},"ravn":{"type":"integer"},"relay":{"type":"integer"}}},"secrets":{"type":"object","description":"Which provider keys are set.","required":["zeroEx","enso","relay","node"],"properties":{"zeroEx":{"type":"boolean"},"enso":{"type":"boolean"},"relay":{"type":"boolean"},"node":{"type":"boolean"}}},"configured":{"type":"object","additionalProperties":{"type":"boolean"},"description":"Each setting the service reads, by name: whether it is set. Never a value."},"lanes":{"type":"object","description":"Which lanes are open.","required":["swap","bridge","anyRoute","zap","solana","bitcoin"],"properties":{"swap":{"type":"boolean"},"bridge":{"type":"boolean"},"anyRoute":{"type":"boolean"},"zap":{"type":"boolean"},"solana":{"type":"boolean"},"bitcoin":{"type":"boolean"}}},"missing":{"type":"array","items":{"type":"string"},"description":"Names a lane that is on still needs."}}},"JsonRpcRequest":{"type":"object","description":"One MCP message (JSON-RPC 2.0).","required":["jsonrpc","method"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Absent on a notification."},"method":{"type":"string","description":"initialize, ping, tools/list, tools/call, or a notification such as notifications/initialized."},"params":{"type":"object"}}},"JsonRpcResponse":{"type":"object","description":"One MCP answer (JSON-RPC 2.0).","required":["jsonrpc","id"],"properties":{"jsonrpc":{"type":"string","enum":["2.0"]},"id":{"oneOf":[{"type":"string"},{"type":"integer"},{"type":"null"}]},"result":{"type":"object","description":"tools/call: { content, structuredContent, isError }: the REST endpoint's own answer."},"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}}}}}}}