# Wagyu Docs: everything on one page > Build Monero and Zcash swaps, bridges and agent tools on the Wagyu API. Built from the live Wagyu API on 2026-11-04. # Wagyu API documentation > Quote, create and track cross-chain swaps into and out of Monero (XMR) and Zcash (ZEC), bridge XMR and ZEC to Hyperliquid, and give AI agents a swap tool. Public API, no key needed to start. One public HTTP API to quote, create and track cross-chain swaps into and out of Monero (XMR) and Zcash (ZEC), bridge them to Hyperliquid, and hand the whole flow to an AI agent. No key needed to start. ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/swaps/quote' \ -H 'content-type: application/json' \ -d '{"fromChainId":20000000000001,"toChainId":0,"fromToken":"bitcoin","toToken":"XMR","fromAmount":"1000000"}' ``` - **14** chains in the catalog - **7,533** tokens you can send - **$1.33B** swapped, all time - **44,207** orders, all time _Live from the API, read when this page was built (4 Nov 2026, 08:24 UTC)._ ## Start here - [Quickstart](https://docs.wagyu.xyz/getting-started.md): Quote, create and track a swap in four calls. - [API keys and fees](https://docs.wagyu.xyz/authentication.md): Get a key in two minutes and earn 0–5% on every order you send. - [MCP server](https://docs.wagyu.xyz/mcp.md): Give Claude, Cursor or any MCP client a swap tool. - [Bridge XMR1 and ZEC1](https://docs.wagyu.xyz/native-bridge.md): Move XMR and ZEC to Hyperliquid and back. - [Chains and tokens](https://docs.wagyu.xyz/chains.md): Every chain, chain id, minimum and token value, live. - [API reference](https://docs.wagyu.xyz/api-reference.md): Every route, generated from the live contract. ## How a swap works 1. **Pick the two assets.** Each asset is a `chainId` plus a token value from the catalog ([Chains and tokens](https://docs.wagyu.xyz/chains.md)). 2. **Quote.** `POST /v2/swaps/quote` returns what the user would receive. It is an estimate, not a deposit instruction. 3. **Create the order.** `POST /v2/swaps` returns a deposit address, the exact amount to send, a deadline, an `orderId` and a private `sessionId`. 4. **Track it.** Poll `GET /v2/swaps/{id}` with the session, or listen on a WebSocket, until the order is `completed`, `refunded`, `failed` or `expired`. The user sends funds from their own wallet. Nothing moves until that deposit arrives. The [quickstart](https://docs.wagyu.xyz/getting-started.md) walks through the four calls with real responses. ## Five rules that prevent most bugs - **Amounts are integer strings in atomic units.** `"1000000"` is 0.01 BTC (8 decimals). Never send a float. See [Amounts and fees](https://docs.wagyu.xyz/money-and-settlement.md). - **Show the funding instruction, not the quote.** After creating an order, display its `depositAddress`, `depositAmount` and `expiresAt` exactly as returned. - **Never retry order creation automatically.** There is no idempotency key: a second `POST /v2/swaps` after a timeout can create a second order. - **Keep the `sessionId` private.** It is the only credential that can read or act on an order. Send it in the `X-Session-ID` header, never in a URL. - **Drive your screen from `customerState`.** It says what the user sees and may do next. `status` is the coarse outcome. See [Order lifecycle](https://docs.wagyu.xyz/order-lifecycle.md). ## Where things live | What | Where | | --- | --- | | HTTP API | `https://api-beta.wagyu.xyz`. Public, JSON. Call it from your server: browsers on other sites are blocked by CORS. | | OpenAPI 3.1 contract | [`/v2/docs`](https://api-beta.wagyu.xyz/v2/docs), also mirrored at [/openapi.json](/openapi.json) | | AsyncAPI 3.0 (WebSockets) | [`/v2/asyncapi`](https://api-beta.wagyu.xyz/v2/asyncapi), also at [/asyncapi.json](/asyncapi.json) | | MCP server for agents | `https://mcp.wagyu.xyz` ([guide](https://docs.wagyu.xyz/mcp.md)) | | Get an API key | [wagyu.xyz/api](https://wagyu.xyz/api), self-serve ([guide](https://docs.wagyu.xyz/authentication.md)) | | Support | [t.me/wagyu_support](https://t.me/wagyu_support) | > **For AI tools:** Every page is also plain Markdown at its URL plus `.md` (this one is [/index.md](/index.md)). [/llms.txt](/llms.txt) lists them all, and [/llms-full.txt](/llms-full.txt) has everything on one page. --- Source: https://docs.wagyu.xyz/ · Built from the live Wagyu API on 2026-11-04. # Quickstart > Quote, create and track a Wagyu swap in four HTTP calls, with real requests and responses from the live API. Four calls take a user from "I want XMR" to a completed swap. No key or account is needed. Every response on this page was captured from the live API when the site was built. ## Before you start - **Base URL:** `https://api-beta.wagyu.xyz`. Keep it in one variable. - **Call the API from your server or app**, not from a web page on another site: the API only allows browser requests from `https://wagyu.xyz` (CORS). - **Send amounts as integer strings in atomic units.** `"100000000000000000"` is 0.1 ETH (18 decimals). The [conversion snippet](https://docs.wagyu.xyz/money-and-settlement.md#convert-between-display-and-atomic-amounts) does it safely. - **Send a User-Agent.** Requests with Python's default `Python-urllib` user agent are refused with `403` before they reach the API. curl, `fetch` and `requests` work as they are. ## 1. Pick the assets An asset is a `chainId` plus a token value. The common ones come back in one call: ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/assets' ``` `chains` lists every chain, `sourceChainIds` and `destinationChainIds` say which side each can be on, and `featuredTokens` gives the token value and `decimals` of the main asset on each chain. For anything else, search the catalog by symbol, name or address: ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2', timeout=30) data = res.json() ``` ```json { "tokens": [ { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "symbol": "USDC", "decimals": 6, "chainId": 1, "name": "USD Coin", "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png", "priceUSD": "1.0004734908" }, { "address": "0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b", "symbol": "syrupUSDC", "decimals": 6, "chainId": 1, "name": "syrupUSDC", "logoURI": "https://static.debank.com/image/eth_token/logo_url/0x80ac24aa929eaf5013f6436cda2a7ba190f5cc0b/a7faacaded044f7d84a2b8e21ae7babd.png", "priceUSD": "1.1917541157" } ], "total": 7, "nextOffset": 2, "catalogStale": false } ``` Use the token's `address` exactly as returned. For native coins that value is chain-specific: `XMR` on Monero, `ZEC` on Zcash, `bitcoin` on Bitcoin, the zero address on EVM chains. The full list is on [Chains and tokens](https://docs.wagyu.xyz/chains.md). ## 2. Ask for a quote Send the pair and an amount. This one quotes 0.01 BTC into XMR: ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/swaps/quote' \ -H 'content-type: application/json' \ -d '{ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/quote', { method: 'POST', headers: {"content-type":"application/json"}, body: JSON.stringify({ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A" }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/swaps/quote', json={ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A" }, timeout=30) data = res.json() ``` ```json { "toAmount": "1195223386000", "fromAmount": "1000000", "fromAmountUsd": "781.65", "fromSymbol": "BTC", "toAmountUsd": "765.30", "toSymbol": "XMR", "toolUsed": "near", "feeFraction": 0.02, "feeBreakdown": { "platformFeeRate": 0.02, "platformFeeXmr": "0.024392314", "platformFeeUsd": "15.62", "bridgeFlatFeeXmr": "0", "bridgeFlatFeeUsd": "0.00", "hlSizeRoundingXmr": "0.000754402624", "hlSizeRoundingUsd": "0.48", "hlTakerFeeXmr": "0.0003843", "hlTakerFeeUsd": "0.25", "totalFeeUsd": "15.62", "totalCostUsd": "16.35" }, "integratorFee": null, "minDepositUsd": 40, "isXmrInput": false, "isXmrOutput": true } ``` What matters in the answer: | Field | Meaning | | --- | --- | | `toAmount` | Estimated amount received, in atomic units of `toToken` (XMR has 12 decimals). | | `fromAmountUsd`, `toAmountUsd` | Display values in USD. Never use them to settle anything. | | `feeFraction` | Wagyu's fee for this route as a fraction: `0.02` is 2%. It differs by route: see [fees](https://docs.wagyu.xyz/money-and-settlement.md#fees). | | `minDepositUsd` | The minimum deposit for the source chain, in USD. | | `integratorFee` | Your fee if you send an [integrator key](https://docs.wagyu.xyz/authentication.md), otherwise `null`. | To quote an exact output instead ("I want exactly 1 XMR"), send `toAmount` instead of `fromAmount`. The response then carries the `fromAmount` to send. > **Check the minimum yourself:** A quote under the minimum is **not** refused: it can come back as `200` with `"toAmount": "0"`. Compare `fromAmountUsd` with `minDepositUsd` before you let the user continue. Current minimums per chain are on [Chains and tokens](https://docs.wagyu.xyz/chains.md). ## 3. Create the order When the user confirms, send the same body to `POST /v2/swaps`. Here `toAddress` is required: it is where the user receives the funds. For a native-coin source such as XMR, also send a `refundAddress`. ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/swaps' \ -H 'content-type: application/json' \ -d '{ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "" }' ``` The response is the order. Save two values and show four: | Field | What to do with it | | --- | --- | | `orderId` | Save it. It is public and identifies the order, but grants no access. | | `sessionId` | Save it **privately**. It is the owner credential for every later read or action. | | `depositAddress` | Show it. The user sends funds here. | | `depositAmount` | Show it exactly, converted with `depositTokenDecimals`. | | `depositTokenSymbol`, `depositChainId` | Show which asset and network to send. | | `expiresAt` | Show the deadline. The deposit must arrive before it. | > **Never retry this call automatically:** `POST /v2/swaps` has no idempotency key. If it times out, the first request may have created an order, and a second one creates another. Do not resend it on your own. With an [integrator key](https://docs.wagyu.xyz/authentication.md) you can supply your own `sessionId` at creation, then list that session's orders with `GET /v2/orders` to see whether the first request went through. There is no sandbox: every order you create is real. An order that is never funded simply expires. ## 4. Track it until it ends Read the order with its session: ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/' \ -H 'x-session-id: ' ``` Render `customerState`, which tells you what the user should see and whether they must act. Keep polling, every 30 seconds or slower, until `status` is `completed`, `refunded`, `failed` or `expired`. For instant updates, open a [WebSocket](https://docs.wagyu.xyz/live-updates.md) as well, but keep the REST read as the source of truth. A wrong session and a missing order both answer `404`, on purpose: ```json { "code": "not_found", "error": "Not found." } ``` ## Next steps - [Order lifecycle](https://docs.wagyu.xyz/order-lifecycle.md): every status and `customerState`, and when to show which action. - [Deposits and refunds](https://docs.wagyu.xyz/deposits.md): partial deposits, late deposits and refund addresses. - [API keys and fees](https://docs.wagyu.xyz/authentication.md): attribute orders to your app and earn a fee on each. - [Errors, limits, retries](https://docs.wagyu.xyz/actions-and-retries.md): what each error code means and what to do. --- Source: https://docs.wagyu.xyz/getting-started · Built from the live Wagyu API on 2026-11-04. # API keys and integrator fees > Get a Wagyu integrator key in two minutes, earn your own fee on every order you send, read your reporting, and understand rate limits, order ownership and session credentials. You do not need a key to quote, create or track swaps. A key is what attributes orders to your app and pays you a fee on each one. | With a key you get | | | --- | --- | | **Your own fee** | 0–5% on every order you send, paid to your own wallets. | | **Attribution and reporting** | Your orders, volume and fees earned, across all your keys. | | **Higher limits** | Company-level limits for a backend that serves many users. | ## Get a key (self-serve, about two minutes) 1. Open **[wagyu.xyz/api](https://wagyu.xyz/api)**. 2. **Connect a wallet.** Any EVM wallet (MetaMask, Rabby…) or a Solana wallet. This wallet owns the integration; you sign in with it again to manage it. 3. **Sign the login message.** It is a plain message, not a transaction: no gas, nothing moves. Only sign it on wagyu.xyz. The login lasts 24 hours. 4. **Create an integration.** - **App name:** 2–50 characters (letters, digits, spaces, `-`, `_`). - **Payout addresses:** one **EVM**, one **Solana** and one **Bitcoin** address. All three are required. If you signed in with an EVM wallet, the EVM field is pre-filled. 5. **Copy the key.** It looks like `wg_` followed by 48 hex characters and **is shown once**. Wagyu stores only a hash; afterwards the page shows the first 12 characters so you can tell keys apart. 6. **Set your fee.** A new integration starts at `0`%. Change it on the same page, from `0` to `5`. One wallet can own up to **5 integrations**, and each integration can have **several keys** (one per server or environment). All keys of an integration share its fee and payout addresses. From the same page you can change the fee and the payout addresses (your wallet signs the new addresses, so a session alone cannot redirect your fees), issue or revoke a key, delete the integration (every key stops at once, and this cannot be undone from the page), and see orders, volume and fees earned. > **Keys are for servers:** Keys from the portal are **server keys**: keep them on your backend and never ship them in a web page or an app. For a browser or mobile app, ask [Wagyu support](https://t.me/wagyu_support) for a **public-client key**. It still earns your fee, but it uses per-IP limits and cannot read reporting. A public-client key cannot be turned into a server key. ## Send the key Send it as a header on quote and create requests: ```http X-Integrator-Key: wg_YOUR_KEY ``` | Situation | What the API does | | --- | --- | | No key | Works. The order is not attributed and carries no integrator fee. | | `X-API-Key: wg_…` | Accepted as an alias of `X-Integrator-Key`. | | Invalid, revoked or suspended key | `401 unauthorized`. | | `integratorFeePercent` sent without a key | `401 unauthorized`. | | Key put in the URL (`?apiKey=…`) | `400 invalid_request`: the API refuses query parameters it does not know. | | Key or settings changed in the portal | Can take up to one minute to apply. | Each line above that names a status was checked against the live API. With an invalid key: ```json { "code": "unauthorized", "error": "Authentication required." } ``` ## Your fee Your integration's default fee applies to every order sent with your key. To charge a different fee on one quote or order, send `integratorFeePercent` (0–5) in the body: ```json { "integratorFeePercent": 0.5 } ``` Your fee is **added on top of Wagyu's own fee**, so the user sees it in the quote. The quote returns it as `integratorFee`: `{ feePercent, feeAmountUsd, feeAddress }`, or `null` when no fee applies to that route. Treat the quote as the source of truth. The payout address depends on what the user sends: | User sends from | Your fee is paid to your | | --- | --- | | An EVM chain (Ethereum, Arbitrum, Base, BSC, HyperEVM…) | EVM address | | Solana | Solana address | | Bitcoin | Bitcoin address | | Monero (XMR) | EVM address | | Tron | No integrator fee on Tron sources today (`integratorFee` is `null`) | A fee too small to be worth its own transfer cost is **skipped**, not owed. ## Reporting Both routes need a **server** key and cover the whole integration across its keys. A public-client key gets `403`. | Route | Returns | | --- | --- | | [`GET /v2/integrator/me`](https://docs.wagyu.xyz/api-reference/get-integrator.md) | `{ integrator, stats, access }`: profile, fee settings, activity, current limits and usage. | | [`GET /v2/integrator/orders`](https://docs.wagyu.xyz/api-reference/list-integrator-orders.md) | `{ orders }`: recent attributed orders, each with a fee status: `none`, `projected`, `paid` or `skipped`. | These two routes are not in `openapi.json`. ## Limits Requests without a key, and requests with a public-client key, are limited per IP. These are the current defaults: | Default limit (anonymous or per IP) | Value | Field in defaultLimits | | --- | --- | --- | | Requests per minute | 600 | `requestLimitPerMin` | | Quotes per minute | 60 | `quoteLimitPerMin` | | Order creations per minute | 6 | `createLimitPerMin` | | Unfinished orders at once | 5 | `maxOpenOrders` | | Window in which an unfinished order counts | 30 minutes | `openOrderWindowMinutes` | _Live from `GET /v2/swaps/terms`, read when this page was built (4 Nov 2026, 08:24 UTC)._ Server keys share **company limits**, which can be higher: read yours from `access` in `GET /v2/integrator/me` instead of assuming the defaults. On `429`, wait for the `Retry-After` header. `X-RateLimit-Resource` names the limit you hit; the values are listed in [Errors, limits, retries](https://docs.wagyu.xyz/actions-and-retries.md#rate-limits). Unfinished orders count against `maxOpenOrders` for 30 minutes. They stop counting once completed, failed, expired or refunded. Revoking or rotating a key does not free their slots. ### Forward each end user's IP (backends serving many users) By default, everything your backend sends shares one allowance. To give each of your users their own, ask [support](https://t.me/wagyu_support) to approve your server's egress IP, then send the user's IP on each request: ```http X-Integrator-Key: wg_YOUR_KEY X-End-User-IP: 203.0.113.42 ``` - Send one literal IPv4 or IPv6 address: no port, hostname, CIDR range or list. Take it from your trusted ingress and overwrite any value the user supplied. - Use `X-End-User-IP`, not `X-Forwarded-For`, `CF-Connecting-IP` or `X-Real-IP`. - Company limits still apply on top. Once forwarding is on, requests without the header share one client allowance. - Forwarding from a server that is not approved returns `403`; an invalid address from an approved server returns `400`. ## Order ownership Orders are not tied to an account. Whoever holds an order's **session** owns it. | Credential | How to send it | What it allows | | --- | --- | --- | | `sessionId`, returned when the order is created | Header `X-Session-ID` | Read the order and take every owner action (refund address, review, delete…). | | The order's exact destination address | Query `?verify=
` | Read that one order. No actions. | | Your integrator key | Header `X-Integrator-Key` | Attribution and fees. It does not unlock other people's orders. | - Keep the session out of URLs, logs and analytics. - An `orderId` alone grants nothing. A missing order and a wrong proof both answer `404`. - With a valid integrator key you may supply your own `sessionId` (16–64 characters of hex digits and hyphens) at creation, to group your users' orders. It is **not** an idempotency key and does not prevent duplicates. --- Source: https://docs.wagyu.xyz/authentication · Built from the live Wagyu API on 2026-11-04. # Supported chains and tokens > Every chain the Wagyu API supports, with chain ids, which side of a swap each can be on, minimum deposits, confirmations and the exact token value to send for native coins. Wagyu currently lists **14 chains**: you can send from 12 of them and receive on all 14. The catalog holds **7,533 tokens you can send** and **8,204 you can receive**. Everything on this page is read from the API when the site builds; the API itself is always the final word. ## Chains | Chain | chainId | Send from | Receive on | Minimum deposit | Confirmations | | --- | --- | --- | --- | --- | --- | | Monero | `0` | Yes | Yes | $25 | 2–10 | | Zcash | `133` | Yes | Yes | $20 | 3–24 | | Ethereum | `1` | Yes | Yes | $20 | 2 | | Arbitrum | `42161` | Yes | Yes | $20 | 1 | | Base | `8453` | Yes | Yes | $20 | 1 | | BSC | `56` | Yes | Yes | $20 | 3 | | HyperEVM | `999` | Yes | Yes | $20 | 1 | | Robinhood Chain | `4663` | Yes | Yes | $20 | 1 | | Arc | `5042` | Yes | Yes | $20 | 1 | | Solana | `1151111081099710` | Yes | Yes | $20 | 1 | | Bitcoin | `20000000000001` | Yes | Yes | $40 | 1 | | Tron | `728126428` | Yes | Yes | $1,500 | 19 | | Hyperliquid | `1337` | No | Yes | — | — | | Sui | `784` | No | Yes | — | — | _Live from `GET /v2/swaps/assets` and `GET /v2/swaps/terms`, read when this page was built (4 Nov 2026, 08:24 UTC)._ - **Minimum deposit** is the smallest deposit an order accepts on that chain, in USD. A quote under it is not refused (see [the quickstart](https://docs.wagyu.xyz/getting-started.md#2-ask-for-a-quote)), so check it yourself. - **Confirmations** is how many blocks Wagyu waits for before treating a deposit as final. A range means the number depends on the deposit. - A chain that is a destination only (such as Hyperliquid or Sui) can receive funds but cannot be the source of a swap. - Chain ids are Wagyu's identifiers. Some match the usual EVM chain ids; others, like Monero `0` or Bitcoin `20000000000001`, are Wagyu's own. Always take them from the API. ## Main asset on each chain These are the `featuredTokens`. The **token value to send** goes in `fromToken` or `toToken`, exactly as written: | Asset | Chain | chainId | Token value to send | Decimals | | --- | --- | --- | --- | --- | | XMR | Monero | `0` | `XMR` | 12 | | ZEC | Zcash | `133` | `ZEC` | 8 | | BTC | Bitcoin | `20000000000001` | `bitcoin` | 8 | | ETH | Ethereum | `1` | `0x0000000000000000000000000000000000000000` | 18 | | SOL | Solana | `1151111081099710` | `11111111111111111111111111111111` | 9 | | BNB | BSC | `56` | `0x0000000000000000000000000000000000000000` | 18 | | TRX | Tron | `728126428` | `T9yD14Nj9j7xAB4dbGeiX9h8unkKHxuWwb` | 6 | | HYPE | HyperEVM | `999` | `0x0000000000000000000000000000000000000000` | 18 | | ETH | Arbitrum | `42161` | `0x0000000000000000000000000000000000000000` | 18 | | ETH | Base | `8453` | `0x0000000000000000000000000000000000000000` | 18 | | ETH | Robinhood Chain | `4663` | `0x0000000000000000000000000000000000000000` | 18 | | BTC | Tron | `728126428` | `TN3W4H6rK2ce4vX9YnFQHwKENnHjoxb3m9` | 8 | | SUI | Sui | `784` | `0x0000000000000000000000000000000000000000000000000000000000000002::sui::SUI` | 9 | _Live from `GET /v2/swaps/assets` (`featuredTokens`), read when this page was built (4 Nov 2026, 08:24 UTC)._ > **Use the catalog value, not a shortcut:** The contract says a chain's native coin may be sent as `"native"` or as its symbol. On the live API this does not work everywhere: on Ethereum, `"native"` and `"ETH"` both return `no_route`, while the zero address works. Always send the `address` the catalog returns. ## Search the rest of the catalog `GET /v2/swaps/assets/tokens` searches every token by symbol, name or address: | Parameter | Use | | --- | --- | | `direction` | Required. `from` for tokens you can send, `to` for tokens you can receive. | | `chainId` | Optional. Limit the search to one chain. | | `q` | Optional. Symbol, name or address, up to 200 characters. | | `limit`, `offset` | Paging. `limit` is 1–100 (default 100). The answer gives `total` and, when more remain, `nextOffset`. | ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2', timeout=30) data = res.json() ``` ```json { "tokens": [ { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "symbol": "USDC", "decimals": 6, "chainId": 1, "name": "USD Coin", "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png", "priceUSD": "1.0004734908" }, { "address": "0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b", "symbol": "syrupUSDC", "decimals": 6, "chainId": 1, "name": "syrupUSDC", "logoURI": "https://static.debank.com/image/eth_token/logo_url/0x80ac24aa929eaf5013f6436cda2a7ba190f5cc0b/a7faacaded044f7d84a2b8e21ae7babd.png", "priceUSD": "1.1917541157" } ], "total": 7, "nextOffset": 2, "catalogStale": false } ``` Several tokens can share a symbol: the search above returns `USDC` but also `syrupUSDC`. Match on `address` and `chainId`, and use the returned `decimals` to convert amounts. The catalog changes over time. A token being listed does not guarantee a route for every pair and amount: the [quote](https://docs.wagyu.xyz/api-reference/quote-swap.md) is what confirms a route is available right now. --- Source: https://docs.wagyu.xyz/chains · Built from the live Wagyu API on 2026-11-04. # Order lifecycle > Every Wagyu order status and customerState, which one to show, when the user must act, and how to read swap, bridge and session orders. An order has two state fields. Use them for different jobs: - **`customerState`** is the authority for the screen: what the user sees, and whether they must do something. Build your UI on it. - **`status`** is the coarse outcome, useful for filters, analytics and deciding when to stop polling. Do not infer what the user must do from `status`, from elapsed time, or from whether a field is present. ## Read an order | Order | REST read | Optional live updates | | --- | --- | --- | | Swap | `GET /v2/swaps/{id}` | WebSocket `/v2/swaps/{id}/events` | | Bridge | `GET /v2/bridges/{id}` | WebSocket `/v2/bridges/{id}/events` | | Every order of a session | `GET /v2/orders` | WebSocket `/v2/orders/events` | Send the owner session in `X-Session-ID`, or `?verify=` for a read-only view of one order. A missing order and a wrong proof both return `404`. See [Live updates](https://docs.wagyu.xyz/live-updates.md) for the sockets. ## Statuses | `status` | Meaning | Final? | | --- | --- | --- | | `awaiting_deposit` | Waiting for the user's deposit. Show the funding instruction. | No | | `awaiting_xmr1` | Waiting for the user to send XMR1 (wrapped XMR). Show the funding instruction. | No | | `awaiting_zec1` | Waiting for the user to send ZEC1 (wrapped ZEC). Show the funding instruction. | No | | `awaiting_trx1` | Waiting for the user to send TRX1 (wrapped TRX). Show the funding instruction. | No | | `processing` | A deposit was seen and the order is moving. May include an unconfirmed deposit. | No | | `completed` | Done. Show the actual output. | Yes | | `refunded` | The deposit was returned. | Yes | | `failed` | The order failed. Check `customerState`: it can still ask for a refund address. | Yes, unless `customerState` asks for an action | | `expired` | No deposit arrived before `expiresAt`. A late deposit is still recovered by support. | Yes, unless `customerState` asks for an action | | `needs_review` | Legacy value. Treat it as `processing`. | No | Stop polling on `completed`, `refunded`, `failed` or `expired` once `customerState` no longer asks for an action. ## customerState `customerState.kind` is one of eight values: | `kind` | Extra fields | What to show | | --- | --- | --- | | `awaiting_deposit` | optional `notice` | The funding instruction. A notice means a deposit arrived but is short; see below. | | `processing` | `stage`, optional `notice` | Progress, using `stage`. | | `action_required` | `action` | A form for that action. This is the **only** state that enables an action. | | `paused` | `reason`, optional `minimumDepositAmount` | The order is waiting, not failed. Keep tracking. | | `completed` | — | The result. | | `refunded` | — | The refund. | | `expired` | — | Expiry. | | `failed` | — | Failure. | ### Stages while processing The contract defines these stage names but no further meaning; the labels are a suggestion for your screen. | `stage` | Suggested label | | --- | --- | | `processing` | Processing | | `confirming` | Confirming your deposit. Show `confirmations` of `requiredConfirmations` when present. | | `routing` | Routing | | `trading` | Trading | | `sending` | Sending your funds | | `refunding` | Refunding | Do not estimate completion from elapsed time. Typical durations per route are published by [`GET /v2/swaps/route-stats`](https://docs.wagyu.xyz/public-data.md#how-long-a-swap-takes). ### Notices | Where | `notice.kind` | Meaning | | --- | --- | --- | | `awaiting_deposit` | `below_expected` | A token deposit arrived but is under the requested amount. The user can top up the same address until `expiresAt`. | | `awaiting_deposit` | `below_minimum` | A native-coin deposit (XMR, ZEC) arrived under the order minimum. Carries `minimumDepositAmount`. | | `processing` | `checking` | Informational. No action needed. | How each deposit case resolves is on [Deposits and refunds](https://docs.wagyu.xyz/deposits.md). ### Actions Show a control only while `customerState.kind` is `action_required`, and only for its `action`: | `action` | What the user does | Route | | --- | --- | --- | | `refund_address` | Gives an address to receive a refund. | [`PUT /v2/orders/{id}/refund-address`](https://docs.wagyu.xyz/api-reference/submit-refund-address.md) | | `payout_address` | Gives a replacement destination address. The order asks for one only when it needs it. | [`PUT /v2/orders/{id}/payout-address`](https://docs.wagyu.xyz/api-reference/submit-payout-address.md) | | `coinflip` | Accepts or declines the optional bonus flip on this order. | [`PUT /v2/swaps/{id}/coinflip`](https://docs.wagyu.xyz/api-reference/resolve-coinflip.md) | Every action needs the owner session. The `?verify=` proof and integrator keys cannot perform actions. ### Pauses | `reason` | Meaning | | --- | --- | | `preparing_refund` | A refund is being prepared. Not a failure. | | `below_minimum` | A deposit is parked under its minimum. With `minimumDepositAmount`, a top-up to the same address that reaches it continues the order automatically; without it, contact support. | ## What arrived versus what was asked | Field | Meaning | | --- | --- | | `depositAmount` | What the order asked for, in atomic units. | | `observedDepositAmount` | What actually arrived, in the same unit. Every transfer to the deposit address adds to it. Use it for "you sent". | | `expectedOutput` | The quoted output for `depositAmount`. | | `fundedExpectedOutput` | The quote rescaled to what arrived, when that differs. Use it for "you receive" until the order completes. | | `actualOutput` | What was delivered, on completed orders. Its unit is `deliveredToken` when present, otherwise `toToken`. | | `deliveredToken` | Present only when the order completed in a different asset of the same value than `toToken` (for example USDC for a USDT quote). | | `expiresAt` | The funding deadline. | `completed` does not always mean the destination received an asset: if the user opted into the bonus flip, check `coinflipLost` first. ## A session's orders `GET /v2/orders` with `X-Session-ID` lists every order of that session (swaps, bridges and coinflip tables; `product` tells them apart). Rows omit `customerState` and can lag behind the detail read, so read the order itself before offering an action. A new session simply returns `{ "orders": [] }`. > **Locked orders:** A read can answer `409 conflict` with the message "For your security, this order can now only be viewed or changed by our support team." The order is then handled by support only: show the message and the order ID, and point the user to [support](https://t.me/wagyu_support). ## Delete an order `DELETE /v2/orders/{id}` permanently removes a completed or refunded order. It needs the owner session. It does not cancel anything or move funds. ## Hyperliquid execution receipts Swaps that trade on Hyperliquid expose their fills: - The order includes up to 200 saved fills in `hlFills`, with `hlFillsStatus` (`pending`, `complete` or `incomplete`) and `hlFillsNextCursor`. - Older fills: `GET /v2/swaps/{id}/fills` returns `{ fills, status, nextCursor }`. Send `nextCursor` back as `before`; `limit` is 1–200. - Deduplicate fills by `tradeId`, not `txHash`: several fills can share a hash. - A `null` cursor means there are no older saved receipts, not that collection is complete. For the user's payout, use the final status and `actualOutput`. --- Source: https://docs.wagyu.xyz/order-lifecycle · Built from the live Wagyu API on 2026-11-04. # Deposits and refunds > What happens when a Wagyu deposit is short, over, late or under the minimum, how top-ups work, and how refund and replacement payout addresses are submitted. The order tells the user what to send: `depositAddress`, `depositAmount` (in `depositTokenDecimals`) and the deadline `expiresAt`. In practice people send a little less, a little more, twice, or late. This page covers each case. The thresholds below are live values from `GET /v2/swaps/terms`: | Rule | Current value | Field | | --- | --- | --- | | Deposit window | 60 minutes | `depositWindowMinutes` | | A short deposit still executes from | 99% of the requested amount | `partialDeposit.executesFromPercent` | | Deposits treated as dust (no notice) below | 0.5% of the requested amount | `partialDeposit.noticeFromPercent` | | A short deposit continues after the window if worth at least | $10 | `partialDeposit.continueFromUsd` | | Automatic recovery re-check | every 15 minutes | `recoveryCheckMinutes` | | Maximum integrator fee | 5% | `integratorFee.maxPercent` | _Live from `GET /v2/swaps/terms`, read when this page was built (4 Nov 2026, 08:24 UTC)._ ## Deposit outcomes | What arrives | `customerState` | What happens | | --- | --- | --- | | At least 99% of `depositAmount`, or more | `processing` | The order runs on everything that arrived. An overpayment is swapped in full, not refunded. | | A token deposit (EVM, Solana, Tron, Bitcoin) under 99% | `awaiting_deposit` with notice `below_expected` | The user can top up the same address until `expiresAt`. Then the order continues on what arrived. A remainder worth less than 10 USD expires instead, and support returns it. | | A native-coin deposit (XMR, ZEC) at or above the order minimum | `processing` once seen | The order runs on what confirms. There is no top-up wait. | | A native-coin deposit under the order minimum | `awaiting_deposit` with notice `below_minimum` | Send the rest to the same address now. A top-up before the first deposit confirms joins it, and the order continues once the total reaches `notice.minimumDepositAmount`. A small deposit that confirms under the minimum on its own is set aside; support returns it. | | A deposit parked under its minimum | `paused` with reason `below_minimum` | With `minimumDepositAmount` present, a top-up to the same address that reaches it continues the order automatically. Without it, contact support. | | Nothing by `expiresAt` | `expired` | The address stays watched. Support recovers a late deposit. | - Every transfer to the deposit address counts: a second transfer adds to the first, it is never a separate deposit. `observedDepositAmount` is the running total. - Deposits under 0.5% of `depositAmount` are treated as stray dust and show no notice. - `minimumDepositAmount` is in the deposit asset's atomic units. What is left to send is `minimumDepositAmount − observedDepositAmount`. - `expiresAt` is exact. For a short token deposit it is also the moment the top-up wait ends, so a countdown to it is precise. ### Continue early on a short deposit While the `below_expected` notice is shown, the user can stop waiting and continue on what arrived: ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/orders//deposit-wait/close' \ -H 'x-session-id: ' ``` - It works with the owner session, or with the confidential (server) integrator key of the integration that created the order. A key embedded in a browser cannot. - Outside `below_expected`, and always for native-coin deposits, it returns `409`. Repeating a close that already succeeded returns `200`. - It decides nothing by itself: the engine rechecks the deposit and continues on what arrived. You never have to call it; when the window ends the order continues on its own. ## Refund addresses A refund needs a destination. A token deposit is refunded to the wallet it came from. For a native-coin source, such as XMR, provide the address yourself, in one of two ways: 1. **Up front:** send `refundAddress` when you create the order. Recommended for native-coin sources. 2. **When asked:** when `customerState` is `action_required` with action `refund_address`, show a form and submit it: ```bash curl -X PUT 'https://api-beta.wagyu.xyz/v2/orders//refund-address' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "refundAddress": "
" }' ``` `refundRecovery` on the order describes the refund: | Field | Meaning | | --- | --- | | `kind` | What is returned: `wrong_chain` (a deposit on the wrong chain), `source` (a deposit whose route can never run) or `table_deposit` (a coinflip-table deposit the table never used). | | `phase` | `address_required` (show the form), `requested`, then `in_progress`. | | `asset`, `chainId`, `amountAtomic` | What will be returned and where. | | `suggestedAddress` | An address the order already has for that chain. Pre-fill the form with it and let the user confirm or replace it. Nothing is sent until it is submitted. | | `destination` | Once decided: the address, and `source` = `customer` (someone submitted it) or `sender` (back to the wallet the deposit came from). | - The saved address is **immutable**. Submitting starts automatic recovery once safety checks pass; no other call is needed. - One exception: a `table_deposit` owed by a coinflip table that already finished keeps the table's outcome as its `customerState`. Show the refund form beside the result. - A successful response confirms the address was saved, not that the refund was sent. Keep tracking until the recovery is done. ## Replacement payout addresses When `customerState` is `action_required` with action `payout_address`, the order needs a new destination: ```bash curl -X PUT 'https://api-beta.wagyu.xyz/v2/orders//payout-address' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "payoutAddress": "" }' ``` The owner session is required; an integrator key alone cannot change addresses. The replacement is write-once, and resubmitting the same address is idempotent. ## After an address is saved Both address routes queue an immediate recovery check. If that check is blocked or cannot be queued, a scheduled re-check runs every 15 minutes (`recoveryCheckMinutes`). Cases that need an operator's decision stay manual. When both are pending, an explicit refund request takes priority over automatic payout recovery. ## Zcash deposit addresses Zcash deposit addresses are shielded unified addresses. Each order also lists the same address in other forms in `depositAddressForms` (`kind`: `shielded` or `transparent`) for wallets that only support older formats. > **Never use a Zcash deposit address as a mining payout:** Zcash consensus only lets a mining reward be spent into shielded outputs, so a reward paid to the transparent form cannot be processed. The order pauses as `preparing_refund` and support returns the funds by hand. --- Source: https://docs.wagyu.xyz/deposits · Built from the live Wagyu API on 2026-11-04. # Amounts and fees > How the Wagyu API represents money (atomic integer strings), how to convert amounts safely, what each route costs today, and which fields are settlement evidence. ## Amounts are atomic integer strings Every amount that moves money is a **positive base-10 integer string in the asset's smallest unit**. `"1000000"` BTC-side means 0.01 BTC, because BTC has 8 decimals. | You send or read | Format | Use it for | | --- | --- | --- | | `fromAmount`, `toAmount` in a request | Integer string, atomic units | The user's input, converted with the token's `decimals`. | | `toAmount`, `fromAmount` in a quote | Integer string | An estimate only. Never a guaranteed minimum. | | `depositAmount`, `expectedOutput` on an order | Integer string | The exact funding instruction, and the display estimate. | | `actualOutput` on a completed order | Integer string | What was delivered, in `deliveredToken` units when present, else `toToken`. | | `amountUsd` and every `…Usd` field | Number or decimal string | Display only. Never use a USD value to settle or compute a transfer. | The API refuses anything else. A decimal amount: ```json { "code": "invalid_request", "error": "invalid body/fromAmount: Expected a positive atomic integer amount." } ``` A JSON number instead of a string is refused too (`invalid_request`). ### Convert between display and atomic amounts Get `decimals` from the catalog (`featuredTokens`, the token search, or the order's `…Decimals` fields). Never use floating-point maths on money: ```javascript // "0.5" with 18 decimals → "500000000000000000" function toAtomic(display, decimals) { const [whole, frac = ''] = display.trim().split('.'); if (!/^\d+$/.test(whole) || !/^\d*$/.test(frac) || frac.length > decimals) throw new Error('bad amount'); return (BigInt(whole) * 10n ** BigInt(decimals) + BigInt(frac.padEnd(decimals, '0') || '0')).toString(); } // "1224614125000" with 12 decimals → "1.224614125" function fromAtomic(atomic, decimals) { const s = BigInt(atomic).toString().padStart(decimals + 1, '0'); const frac = s.slice(-decimals).replace(/0+$/, ''); return s.slice(0, -decimals) + (frac ? '.' + frac : ''); } ``` ```python from decimal import Decimal def to_atomic(display: str, decimals: int) -> str: value = Decimal(display) * (Decimal(10) ** decimals) if value != value.to_integral_value(): raise ValueError("more decimals than the token supports") return str(int(value)) def from_atomic(atomic: str, decimals: int) -> str: return format(Decimal(atomic) / (Decimal(10) ** decimals), "f") ``` ## The order's instruction beats the quote A quote is a public estimate. After you create an order, show its `depositAddress`, `depositAmount`, deposit token and `expiresAt` exactly as returned. Never rebuild an address or an amount from the quote. ## Fees Every fee rate in the API is a **fraction**: `0.02` means 2%. The Wagyu fee depends on the route, so read `feeFraction` from each quote. Here is what real quotes return right now: | Route | Wagyu fee | feeFraction | Quoted size | toolUsed | | --- | --- | --- | --- | --- | | BTC → XMR | 2% | `0.02` | $782 | `near` | | ETH → XMR | 2% | `0.02` | $231 | `relaydepository` | | SOL → XMR | 2% | `0.02` | $186 | `layerswap` | | USDC (Ethereum) → exactly 1 XMR | 2% | `0.02` | $676 | `layerswap` | | XMR → USDT (Ethereum) | 0% | `0` | $640 | `lifiIntents` | | XMR → USDC (Hyperliquid) | 0% | `0` | $640 | `mayan` | | XMR → ZEC | 2% | `0.02` | $640 | `direct` | | ZEC → XMR | 2% | `0.02` | $1,140 | `direct` | _Live from `POST /v2/swaps/quote`, read when this page was built (4 Nov 2026, 08:24 UTC)._ `toolUsed` names the route provider the quote went through. It is informational: do not build logic on its values. ### Fee breakdown Quotes on routes that charge a Wagyu fee also return `feeBreakdown` (in the table above: every route into XMR, and XMR ↔ ZEC). Routes with a `0` fee omit it. | Field | Meaning | | --- | --- | | `platformFeeRate`, `platformFeeXmr`, `platformFeeUsd` | Wagyu's fee, as a rate, in XMR and in USD. | | `bridgeFlatFeeXmr`, `bridgeFlatFeeUsd` | A flat bridge fee, when one applies. | | `hlTakerFeeXmr`, `hlTakerFeeUsd` | The Hyperliquid trading fee. | | `hlSizeRoundingXmr`, `hlSizeRoundingUsd` | What is lost to Hyperliquid's order-size rounding. | | `totalFeeUsd` | Wagyu's fees: the platform fee plus any bridge flat fee. | | `totalCostUsd` | Everything the route costs the user: `totalFeeUsd` plus the Hyperliquid fee and rounding. | Your own [integrator fee](https://docs.wagyu.xyz/authentication.md#your-fee), if any, is added on top and shown in `integratorFee`. ### What the quote does not show The public quote shows public fees only. When the order executes, Wagyu freezes a private expectation of the final output after its own fee, your integrator fee, bridge fees and the source-side costs the user pays. One end-to-end slippage budget applies once to that expectation, across every step of the route (route providers, Hyperliquid, settlement and recovery). It is not granted again at each step. Neither that expectation nor its minimum is returned before completion. Native-bridge fees and minimums are on [the bridge page](https://docs.wagyu.xyz/native-bridge.md). `bridgeSettlement.fee` on a bridge order can be `null`: its absence does not prove there was no fee. ## Completed is not always "received" If the user opted into the bonus flip on a swap, a `completed` order can end with nothing delivered. Check `coinflipLost` and the flip result before showing a received amount. --- Source: https://docs.wagyu.xyz/money-and-settlement · Built from the live Wagyu API on 2026-11-04. # Errors, limits and retries > The Wagyu API error envelope, every error code and what to do about it, rate limits and Retry-After, and a safe retry policy for reads, quotes and order creation. ## The error envelope Every error has the same shape. Branch on `code`; the `error` text is for humans and can change. ```json { "code": "no_route", "error": "No route is currently available." } ``` | Field | When present | | --- | --- | | `code` | Always. One of the values below. | | `error` | Always. A human-readable message. | | `minAmountUsd` | With `amount_below_minimum`: the minimum, in USD. | | `retryAfter` | With `rate_limited`: seconds to wait (also in the `Retry-After` header). | ## Error codes | code | HTTP status | Meaning | What to do | | --- | --- | --- | --- | | `invalid_request` | 400 | The request is malformed, names an unknown field or query parameter, or was refused by policy. The response does not say which. | Fix the named field if there is one. Do not retry unchanged. | | `unauthorized` | 401 | An integrator key is missing where one is required, invalid, revoked or suspended. | Check the key and that it is sent as a header. | | `forbidden` | 403 | The credential is valid but not allowed to do this (for example, a public-client key reading reports, or unapproved IP forwarding). | Check the key type and permissions. | | `not_found` | 404 | The order does not exist, or the session or destination proof is wrong. Both answer the same way on purpose. | Check the order ID and the proof you send. | | `conflict` | 409 | The action does not fit the order’s current state, or the order is locked and only support can view or change it. | Re-read the order. If the message mentions support, send the order ID to support. | | `amount_below_minimum` | 400 | The amount is under the minimum; `minAmountUsd` says by how much. | Increase the amount and quote again. | | `no_route` | 400 | No route can fill this pair and amount right now. | Try another amount or token, or quote again later. | | `rate_limited` | 429 | A rate limit was hit. | Wait `Retry-After` seconds (also in `retryAfter`). | | `unavailable` | 503 · 500 · 504 | A temporary failure, or the asset or direction is switched off. | Retry reads and quotes with backoff. Re-read the order before repeating a write. | | `request_failed` | 400 | An upstream step failed. | Re-read the order before any other action. | ### Real error responses Each of these was produced by the live API when the site was built: ```json { "code": "no_route", "error": "No route is currently available." } ``` ```json { "code": "invalid_request", "error": "invalid body/fromAmount: Expected a positive atomic integer amount." } ``` ```json { "code": "unauthorized", "error": "Authentication required." } ``` ```json { "code": "invalid_request", "error": "invalid querystring: Unrecognized key: \"apiKey\"" } ``` ```json { "code": "not_found", "error": "Not found." } ``` ### Deliberately vague refusals A plain `400` `invalid_request` with the message "Invalid request." can mean bad input or a policy refusal, and the response does not say which. Show a neutral message and do not retry the same request. When the message names a field (as in `invalid body/fromAmount: …`), fix that field. ### Refusals before the API Some requests never reach the API. Requests with Python's default `Python-urllib/3.x` user agent get a `403` page from the network edge, not a JSON error. Set your own `User-Agent` header; curl, `fetch` and Python `requests` are not affected. ## Rate limits On `429`, wait the number of seconds in `Retry-After` before trying again. It tells you when to check, it does not reserve capacity. `X-RateLimit-Resource` names the limit you hit: | `X-RateLimit-Resource` | Limit | | --- | --- | | `requests` | Requests, for the company key or the IP | | `key_requests` | An extra request cap on one key | | `creation` | Swap and bridge creation attempts | | `quotes` | Quotes | | `open_orders` | Unfinished orders | | `client_requests` | Requests of one forwarded end user | | `client_creation` | Creation attempts of one forwarded end user | | `client_open_orders` | Unfinished orders of one forwarded end user | Upstream refusals may omit the header. Every applicable limit must allow a request, and creation attempts count even when they are refused. The default limits are: | Default limit (anonymous or per IP) | Value | Field in defaultLimits | | --- | --- | --- | | Requests per minute | 600 | `requestLimitPerMin` | | Quotes per minute | 60 | `quoteLimitPerMin` | | Order creations per minute | 6 | `createLimitPerMin` | | Unfinished orders at once | 5 | `maxOpenOrders` | | Window in which an unfinished order counts | 30 minutes | `openOrderWindowMinutes` | _Live from `GET /v2/swaps/terms`, read when this page was built (4 Nov 2026, 08:24 UTC)._ Keys can have higher company limits: see [API keys and fees](https://docs.wagyu.xyz/authentication.md#limits). ## Retry policy | Call | On timeout or 5xx | | --- | --- | | Reads (`GET`) and quotes | Retry with exponential backoff and a cap. | | `POST /v2/swaps`, `POST /v2/bridges` | **Never retry automatically.** There is no idempotency key: the first request may have created an order. | | Owner actions (refund address, payout address, review, coinflip) | Re-read the order first. Repeat only if the order still asks for it. | | A WebSocket reconnect | Re-read the order over REST before trusting the screen. | A `sessionId` you supply at creation groups orders, but it does not deduplicate them. ## Owner actions Owner actions need the `X-Session-ID` of the order. The read-only `?verify=` proof and integrator keys cannot perform them. Offer an action only while `customerState.kind` is `action_required` with that `action`: the presence of a field, the status or elapsed time never authorises an action on its own. | Action | Rules | | --- | --- | | Refund address | Only with action `refund_address`. Saves one immutable destination; it does not send the refund by itself. See [Deposits and refunds](https://docs.wagyu.xyz/deposits.md#refund-addresses). | | Payout address | Only with action `payout_address`. Write-once. | | Coinflip | Only with action `coinflip`. Send an explicit `accept: true` or `false`. On `409` or `504`, re-read before trying again. | | Review | Once, after completion: three ratings from 1 to 5 (`ratingSpeed`, `ratingRate`, `ratingExperience`) and an optional comment up to 500 characters. | | Delete | Permanently removes a completed or refunded order. It cancels nothing and moves no funds. | --- Source: https://docs.wagyu.xyz/actions-and-retries · Built from the live Wagyu API on 2026-11-04. # Live updates over WebSockets > Follow Wagyu orders in real time over WebSockets (one socket per order, or many orders on one socket), plus public feeds of recent swaps and bridges. WebSockets make an order screen feel instant. They speed things up but are not the record: keep the REST read as the source of truth, and read it again after every reconnect. Every socket sends **complete snapshots, never patches**: one right after connecting, then after each change, then periodically as a safety net. Frames can repeat or be merged. | Socket | Sends | Authentication | | --- | --- | --- | | `/v2/swaps/{id}/events` | Snapshots of one swap, same shape as `GET /v2/swaps/{id}` | `?verify=` or `X-Session-ID` header | | `/v2/bridges/{id}/events` | Snapshots of one bridge order | `?verify=` or `X-Session-ID` header | | `/v2/coinflips/{id}/events` | Snapshots of one coinflip table | `?verify=` or `X-Session-ID` header | | `/v2/orders/events` | Snapshots of every order you subscribe to | Session inside each subscribe message | | `/v2/recent-swaps/events` | The public list of recent swaps | None | | `/v2/bridges/recent/events` | The public list of recent bridge orders | None | | `/v2/coinflips/recent/events` | The public list of recent coinflip rounds | None | All sockets live at `wss://api-beta.wagyu.xyz`. The machine-readable contract is the AsyncAPI document at [`/v2/asyncapi`](https://api-beta.wagyu.xyz/v2/asyncapi). ## Follow one order A browser cannot set headers on a WebSocket, so it proves access with the order's exact destination address. This proof is read-only: ```javascript const url = `wss://api-beta.wagyu.xyz/v2/swaps/${orderId}/events?verify=${encodeURIComponent(destinationAddress)}`; const ws = new WebSocket(url); ws.onmessage = (event) => { const order = JSON.parse(event.data); // a full snapshot, same shape as GET /v2/swaps/{id} render(order.customerState); }; ws.onclose = (event) => { // 4404: missing, unauthorized or nonexistent order (deliberately indistinguishable) // Otherwise: reconnect with backoff, then re-read the order over REST. }; ``` Clients that can set headers may send the owner's `X-Session-ID` instead. Never put a session in a URL. ## Follow many orders on one socket `/v2/orders/events` multiplexes owned orders. After connecting, send one message per order with its session; the session travels in the message, never in the URL: ```json { "type": "subscribe", "orderId": "", "sessionId": "" } ``` The server answers with a snapshot of that order right away, then sends snapshots as it changes. Frames are the bare order object, with no wrapper. Send `{ "type": "unsubscribe", "orderId": "" }` when you no longer need one. > **One bad subscription closes the socket:** Subscribing to an order that does not exist, or with the wrong session, closes the whole connection with code `4404`. So does a message that is not valid JSON. Validate before you send, and resubscribe the remaining orders after reconnecting. ## Public activity feeds `/v2/recent-swaps/events`, `/v2/bridges/recent/events` and `/v2/coinflips/recent/events` need no authentication. Each frame is the complete current list, the same data as the matching REST route. Clients send nothing; a reconnect simply receives the next frame. Connections beyond the per-client or server capacity are closed with code `1013`. ```javascript const ws = new WebSocket('wss://api-beta.wagyu.xyz/v2/recent-swaps/events'); ws.onmessage = (event) => showTicker(JSON.parse(event.data)); // an array of completed swaps ``` In these lists `orderId` is an opaque key for the row, stable across frames. It is not the order's real id and opens no order. ## Close codes | Code | Meaning | What to do | | --- | --- | --- | | `4404` | Missing, unauthorized or nonexistent order, a bad subscription, or an invalid message. Deliberately the same for all. | Do not use it to probe whether an order exists. Check your proof or session. | | `1013` | Too many connections for the client or the server. | Reconnect later with backoff. | The `4404` behaviour above was checked against the live API. ## Make it robust - Treat every frame as a hint to refresh the REST order, and render from the REST answer. A dropped frame then never leaves a stale screen. - Reconnect with backoff, and read the order over REST after every reconnect, browser sleep or network change. - Keep polling as a fallback: every 30 seconds or slower until the order ends. --- Source: https://docs.wagyu.xyz/live-updates · Built from the live Wagyu API on 2026-11-04. # Native bridge (XMR1 and ZEC1) > Bridge Monero and Zcash to Hyperliquid as XMR1 and ZEC1 and back with the Wagyu API, with live fees, minimums, availability and request examples. The native bridge turns a native coin into its wrapped version on Hyperliquid, and back: - A **deposit** sends native XMR or ZEC and mints **XMR1** or **ZEC1** to a Hyperliquid address. - A **withdrawal** sends XMR1 or ZEC1 back and pays out native XMR or ZEC. Bridge orders work like swaps: you create one, the user funds it, you track it until it ends. The [lifecycle](https://docs.wagyu.xyz/order-lifecycle.md) and [deposit rules](https://docs.wagyu.xyz/deposits.md) apply. ## Availability, fees and minimums | Pair | asset | Deposit (mint) | Withdraw (redeem) | Deposit fee | Withdrawal fee | Minimum | | --- | --- | --- | --- | --- | --- | --- | | XMR ↔ XMR1 | `xmr` | On | On | 0% | 2% | 0.01 XMR | | TRX ↔ TRX1 | `trx` | Off | Off | 0% | 2% | 5 TRX | | ZEC ↔ ZEC1 | `zec` | On | On | 0% | 2% | 0.0001 ZEC | _Live from `GET /v2/bridges/terms`, read when this page was built (4 Nov 2026, 08:24 UTC)._ - Each asset is switched on or off independently, per direction. An asset stays listed while it is off (with its fees and minimum), so a picker can grey it out instead of hiding it. - Fees are fractions in `GET /v2/bridges/terms`: deposits cost 0% and withdrawals 2% right now. - The **minimum** applies to the gross amount sent, in both directions, and fees are taken from it. Sending exactly the minimum settles. - Read `GET /v2/bridges/terms` when you create an order. Do not hard-code an asset as available because it worked earlier. Creating an order for an asset or direction that is switched off answers `503` with `code: "unavailable"`. That is a temporary refusal about Wagyu's configuration, not a problem with your request: do not treat it as a validation error. ## Quote an amount `GET /v2/bridges/quote` returns the net amount for a gross amount, in atomic units. This is 1 XMR1 withdrawn back to XMR: ```bash curl 'https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000', timeout=30) data = res.json() ``` ```json { "asset": "xmr", "direction": "withdraw", "grossAtomic": "1000000000000", "netAtomic": "980000000000", "feeAtomic": "20000000000", "flatFeeAtomic": "0", "percentFeeAtomic": "20000000000", "feePercent": 2, "minimumAtomic": "10000000000", "belowMinimum": false, "available": true } ``` - `belowMinimum: true` means the amount is under `minimumAtomic`; the net and fee fields are then `null`. - `available: false` means that asset or direction is off right now. - For withdrawals you may pass `senderAddress`, the Hyperliquid address sending the wrapped asset, so the quote can apply that sender's fee override. The settled amount is still computed from what actually arrives. ## Create a deposit (XMR or ZEC → XMR1 or ZEC1) ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/bridges' \ -H 'content-type: application/json' \ -d '{ "asset": "xmr", "direction": "deposit", "toAddress": "" }' ``` The response is the bridge order: save its `orderId` and private `sessionId`, and show its deposit address. A deposit order needs no amount: the wrapped amount follows what arrives. ## Create a withdrawal (XMR1 or ZEC1 → XMR or ZEC) ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/bridges' \ -H 'content-type: application/json' \ -d '{ "asset": "zec", "direction": "withdraw", "toAddress": "" }' ``` Withdrawals are also amountless at creation. The payout is computed from the wrapped amount actually observed, never from an amount the client claims. Show the order's funding instruction rather than assuming an address or amount. ### Zcash withdrawal addresses | Address type | Accepted | | --- | --- | | Unified (`u1…`) | Yes | | Sapling (`zs1…`) | Yes | | Transparent (`t1…`, `t3…`) | Yes | | TEX (`tex1…`) | No: it requires transparent-source funds | For Zcash deposit addresses and the mining-payout warning, see [Deposits and refunds](https://docs.wagyu.xyz/deposits.md#zcash-deposit-addresses). ## Track and recover Read bridge orders with `GET /v2/bridges/{id}` and the owner session, or follow them on the `/v2/bridges/{id}/events` [WebSocket](https://docs.wagyu.xyz/live-updates.md). When present, `bridgeSettlement.input` and `bridgeSettlement.output` are the authoritative settlement amounts. For a failed or expired order that asks for one, submit a refund address with `PUT /v2/orders/{id}/refund-address`. `fees.withdrawalFlat` in the terms is keyed by asset (`{ xmr, trx, zec }`). `withdrawalFlatXmr` and `withdrawalFlatTrx` remain for older clients. --- Source: https://docs.wagyu.xyz/native-bridge · Built from the live Wagyu API on 2026-11-04. # Public data and statistics > Public Wagyu API routes for protocol volume, median swap times per route, recent swaps and bridges, Monero nodes and points, all without authentication. These routes need no key and no session. They are what you need for dashboards, aggregators, research and status pages. ## Protocol statistics `GET /v2/stats/daily` returns totals, the last 24 hours, and one row per day: | Metric | Value | | --- | --- | | Orders, all time | 44,207 | | Completed orders, all time | 35,874 | | Volume, all time (USD) | $1,329,602,700 | | Orders, last 24 hours | 747 | | Volume, last 24 hours (USD) | $34,700,689 | _Live from `GET /v2/stats/daily`, read when this page was built (4 Nov 2026, 08:24 UTC)._ | Parameter | Use | | --- | --- | | `days` | 1–365 trailing days, ending today (default 14). | | `includeMetadata` | `true` adds `metadata`: `asOf`, the day basis (`created_at_utc`), which products are counted, and whether legacy orders are included. | ```bash curl 'https://api-beta.wagyu.xyz/v2/stats/daily?days=2&includeMetadata=true' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/stats/daily?days=2&includeMetadata=true' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/stats/daily?days=2&includeMetadata=true', timeout=30) data = res.json() ``` ```json { "metadata": { "asOf": "2026-11-04T08:24:47.251Z", "dayBasis": "created_at_utc", "currentProducts": [ "swap", "bridge", "coinflip" ], "volumeIncludesLegacy": true, "orderCountsIncludeLegacy": false, "legacyAsOf": "2026-10-19T15:40:51.844Z", "unvaluedLegacyCompletedOrders": 2044 }, "stats24h": { "orders": 747, "completed": 580, "failed": 4, "swaps": 565, "bridge": 157, "volumeUsd": 34700689.326225616 }, "totals": { "orders": 44207, "completed": 35874, "failed": 221, "swaps": 38423, "bridge": 4496, "volumeUsd": 1329602700.2141101 }, "daily": [ { "orders": 216, "completed": 165, "failed": 2, "swaps": 171, "bridge": 44, "volumeUsd": 8524549.7325113, "date": "2026-11-04" }, { "orders": 749, "completed": 574, "failed": 2, "swaps": 565, "bridge": 148, "volumeUsd": 30252326.080876924, "date": "2026-11-03" }, { "orders": 553, "completed": 359, "failed": 5, "swaps": 459, "bridge": 61, "volumeUsd": 9631538.066724319, "date": "2026-11-02" } ] } ``` Volume totals include legacy orders; order counts do not (`metadata.volumeIncludesLegacy`, `metadata.orderCountsIncludeLegacy`). ## How long a swap takes `GET /v2/swaps/route-stats` gives the median time of completed swaps per route over the last 30 days. Use it to tell users how long a route usually takes, instead of guessing from elapsed time. The busiest routes right now: | Route | Completed swaps (30 days) | Median time | | --- | --- | --- | | ETH (Arbitrum) → ETH (Ethereum) | 1,423 | 70 s | | XMR (Monero) → ETH (Ethereum) | 1,154 | 14 min | | ETH (Ethereum) → XMR (Monero) | 1,065 | 2.3 min | | XMR (Monero) → SOL (Solana) | 944 | 13 min | | XMR (Monero) → USDT (Ethereum) | 492 | 13 min | | SOL (Solana) → XMR (Monero) | 467 | 79 s | | BTC (Bitcoin) → XMR (Monero) | 424 | 32 min | | XMR (Monero) → USDC (Ethereum) | 326 | 14 min | | USDC (Ethereum) → XMR (Monero) | 323 | 2.7 min | | USDT (Ethereum) → XMR (Monero) | 302 | 2.3 min | | ETH (Ethereum) → USDT (Ethereum) | 289 | 76 s | | XMR (Monero) → BTC (Bitcoin) | 256 | 26 min | | XMR (Monero) → DAI (Ethereum) | 215 | 16 min | | ETH (Ethereum) → SOL (Solana) | 215 | 85 s | _Live from `GET /v2/swaps/route-stats`, read when this page was built (4 Nov 2026, 08:24 UTC)._ - Routes are keyed by `fromChainId`, `fromToken`, `toChainId` and `toToken`, with the same token values as quotes. - `medianSeconds` is `null` when a route has fewer than `minimumSamples` swaps in the window. - The window and its basis are in the response: `windowDays`, `windowStart`, `cohort`, `basis`. ## Recent activity | Route | Returns | | --- | --- | | `GET /v2/recent-swaps` | The latest completed swaps: assets, chains, atomic amounts with their decimals, timestamps. | | `GET /v2/bridges/recent` | The latest completed bridge orders. | ```bash curl 'https://api-beta.wagyu.xyz/v2/recent-swaps' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/recent-swaps' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/recent-swaps', timeout=30) data = res.json() ``` ```json [ { "orderId": "e04d5edad1e06c69", "status": "completed", "from": "XMR", "fromChainId": 0, "fromAmount": "19230000000000", "fromTokenDecimals": 12, "to": "USDT", "toChainId": 728126428, "toAmount": "12186867722", "toTokenDecimals": 6, "createdAt": "2026-11-04T08:17:53.988Z", "completedAt": "2026-11-04T08:24:01.286Z" }, { "orderId": "727efc9c37970943", "status": "completed", "from": "SOL", "fromChainId": 1151111081099710, "fromAmount": "1000000000", "fromTokenDecimals": 9, "to": "XMR", "toChainId": 0, "toAmount": "137103960000", "toTokenDecimals": 12, "createdAt": "2026-11-04T08:14:17.835Z", "completedAt": "2026-11-04T08:16:36.261Z" } ] ``` `orderId` in these lists is an opaque row key, stable across polls. It is not the order's id and opens nothing. Both lists also stream over [WebSockets](https://docs.wagyu.xyz/live-updates.md#public-activity-feeds). ## Monero nodes `GET /v2/nodes` lists recommended `monerod` endpoints for a self-custody wallet: - `node.wagyu.xyz:18089` _Live from `GET /v2/nodes`, read when this page was built (4 Nov 2026, 08:24 UTC)._ ## Points | Route | Returns | | --- | --- | | `GET /v2/points/{address}` | One address's volume, points (`wagyu`), rank, trade count and the points formula. | | `GET /v2/points/leaderboard` | The ranked leaderboard. `limit` is 1–200 (default 25). | --- Source: https://docs.wagyu.xyz/public-data · Built from the live Wagyu API on 2026-11-04. # MCP server for AI agents > Connect Claude, Cursor or any MCP client to Wagyu's Model Context Protocol server to quote, create and track swaps as tools. No key needed. Wagyu runs a [Model Context Protocol](https://modelcontextprotocol.io) server, so an AI agent can quote, create and track a swap without writing an HTTP client: ```text https://mcp.wagyu.xyz ``` It is a stateless Streamable HTTP server (protocol version `2025-06-18`). No key or account is needed. ## Connect ```bash claude mcp add --transport http wagyu https://mcp.wagyu.xyz ``` ```json { "mcpServers": { "wagyu": { "type": "http", "url": "https://mcp.wagyu.xyz" } } } ``` ## Tools The server exposes 6 tools: | Tool | Read-only | What it does | Required arguments | | --- | --- | --- | --- | | `list_chains` | Yes | Chains available right now, which ids can be a source or a destination, and featured tokens. | — | | `search_tokens` | Yes | Find a token address and decimals by symbol, name or address. | `direction` | | `get_quote` | Yes | Estimate a swap. | `fromChainId`, `fromToken`, `toChainId`, `toToken`, `amount` | | `create_swap` | No | Create a durable order that spends `amount` of fromToken. | `fromChainId`, `fromToken`, `toChainId`, `toToken`, `amount`, `toAddress` | | `get_swap` | Yes | Current status and customerState of an order. | `orderId`, `sessionId` | | `set_refund_address` | No | Only when get_swap shows customerState { kind: "action_required", action: "refund_address" }. | `orderId`, `sessionId`, `refundAddress` | _Live from `tools/list` on `https://mcp.wagyu.xyz`, read when this page was built (4 Nov 2026, 08:24 UTC)._ On connection the server also sends the agent these instructions: ```text Wagyu swaps any supported asset (including Monero) across chains. Flow: 1. list_chains, then search_tokens to find the exact token address on each chain. 2. get_quote to show the user what they would receive. Amounts are human decimals ("0.5"), never atomic units. 3. create_swap only after the user confirms. It returns a deposit address and exact amount; no money moves until that deposit is sent from a wallet the user controls. Never call create_swap again after a timeout or error without asking the user: a second call creates a second order. 4. Keep the returned sessionId private: it is the only credential for get_swap and set_refund_address. 5. Poll get_swap (every 30 s or slower) until status is completed, failed, expired or refunded. customerState is the only authority for what the user must do next. Branch on error "code", never on prose. ``` ## Amounts are human decimals here Unlike the HTTP API, the tools take amounts as **human decimals** such as `"0.5"`, never atomic units. The server converts them with the catalog's decimals and refuses an amount with more decimal places than the token supports. Quote results add `fromAmountDecimal` and `toAmountDecimal` next to the atomic amounts. > **Pass token addresses, not "native":** The tool descriptions say a chain's native coin can be passed as `"native"`. On the live server this fails for Ethereum ("Token native is not listed on chain 1"). Pass the token value from `search_tokens` or `list_chains` instead: for example `0x0000000000000000000000000000000000000000` for ETH and `XMR` for Monero. `search_tokens` needs a `direction` (`from` for tokens you send, `to` for tokens you receive). ## Funds stay with the user's wallet The server never holds keys or moves funds. `create_swap` returns a funding instruction: the deposit address, the exact amount and the deadline. The agent sends it with its own wallet tool or shows it to the user. Nothing moves until that deposit arrives. ## Rules the agent must follow These are the same rules as the HTTP API. - **Confirm with the user before `create_swap`.** Never call it again after a timeout or an error: a second call creates a second order. - **Keep `sessionId` private.** It is the only credential for `get_swap` and `set_refund_address`. - **Poll `get_swap` every 30 seconds or slower** until the status is `completed`, `failed`, `expired` or `refunded`. - **Let `customerState` decide** what the user must do next. - **Branch on the error `code`**, never on its wording. A failed tool call returns the API error, for example `{"status":404,"code":"not_found","error":"Not found."}`. ## Earn fees through the MCP server Orders placed through the server are attributed to Wagyu's own MCP integration. If you embed the server in your own product, send your [integrator key](https://docs.wagyu.xyz/authentication.md) as an HTTP header on the MCP connection: ```http x-integrator-key: wg_YOUR_KEY ``` Your orders are then attributed to you and earn your fee. An invalid key is refused with `401` before any tool runs (checked live). --- Source: https://docs.wagyu.xyz/mcp · Built from the live Wagyu API on 2026-11-04. # Build with an AI agent > How to hand a Wagyu integration to a coding agent such as Claude Code or Cursor, what it should read in which order, and the rules it must not break. These docs are written to be read by people and by AI tools alike. Point your agent at the Markdown and the contracts, not at screenshots. ## What to give the agent | Resource | Use | | --- | --- | | [/llms.txt](/llms.txt) | Index of every page, linking the Markdown copies. Start here. | | [/llms-full.txt](/llms-full.txt) | Every guide and reference page in one file. | | Any page + `.md` | The page as plain Markdown, for example [/getting-started.md](/getting-started.md). The **Copy page** button at the top of each page does the same. | | [/openapi.json](/openapi.json) | The HTTP contract (OpenAPI 3.1), identical to `https://api-beta.wagyu.xyz/v2/docs`. | | [/asyncapi.json](/asyncapi.json) | The WebSocket contract (AsyncAPI 3.0). | | `https://mcp.wagyu.xyz` | The [MCP server](https://docs.wagyu.xyz/mcp.md), if the agent should place swaps itself rather than write code. | ## Reading order 1. [Quickstart](https://docs.wagyu.xyz/getting-started.md): the four calls. 2. [Amounts and fees](https://docs.wagyu.xyz/money-and-settlement.md): atomic integer strings, conversion, fees. 3. [Order lifecycle](https://docs.wagyu.xyz/order-lifecycle.md): `status`, `customerState`, actions. 4. [Deposits and refunds](https://docs.wagyu.xyz/deposits.md): short, late and over-deposits, refund addresses. 5. [Errors, limits and retries](https://docs.wagyu.xyz/actions-and-retries.md): error codes and the retry policy. 6. [API keys and fees](https://docs.wagyu.xyz/authentication.md), if the integration earns a fee. 7. [Live updates](https://docs.wagyu.xyz/live-updates.md), if the UI needs real-time progress. 8. The [API reference](https://docs.wagyu.xyz/api-reference.md) and `openapi.json` for exact fields. ## A prompt you can paste ```text Build a Wagyu swap integration. Read https://docs.wagyu.xyz/llms.txt first, then the pages it links in this order: getting-started, money-and-settlement, order-lifecycle, deposits, actions-and-retries. The HTTP contract is https://docs.wagyu.xyz/openapi.json. Follow the rules on https://docs.wagyu.xyz/agent-handoff.md exactly. Call the API from the server, keep the base URL in one config value, and never create a real order in tests. ``` ## Rules the code must follow - Call the API from a server or a native app. Web pages on other sites are blocked by CORS. - Keep `https://api-beta.wagyu.xyz` in one configuration value. - Send amounts as atomic integer strings. Convert with the token's `decimals`, never with floats. - Take token values from the catalog. Do not invent addresses or rely on `"native"`. - Treat the quote as an estimate. Show the created order's `depositAddress`, `depositAmount` and `expiresAt` exactly. - Never retry `POST /v2/swaps` or `POST /v2/bridges` automatically. There is no idempotency key. - Store `sessionId` privately and send it only in the `X-Session-ID` header. - Render progress and actions from `customerState`. Offer an action only for `kind: "action_required"`. - Branch on error `code`, never on the message. Honour `Retry-After` on `429`. - Never commit an integrator key. Use `wg_YOUR_KEY` in examples and read the real key from the environment. ## Testing without moving money There is no sandbox, and every created order is real. What can be tested freely: - Every `GET` route and `POST /v2/swaps/quote` are read-only. - `GET /v2/orders` with a fresh random session returns `{ "orders": [] }`. - Reading a made-up order id returns `404`, and a made-up order on a WebSocket closes with `4404`. An order that is created but never funded simply expires at `expiresAt`. Nothing moves until a deposit is sent, so tests should stop before sending funds. --- Source: https://docs.wagyu.xyz/agent-handoff · Built from the live Wagyu API on 2026-11-04. # API reference > Every route of the Wagyu HTTP API, generated from the live OpenAPI contract, with authentication, parameters, response fields and real captured examples. Each page below is generated from the live OpenAPI document when the site builds, so field names and types match the API. Examples are real responses captured at build time, except for calls that would create or change a real order. ## Conventions | | | | --- | --- | | Base URL | `https://api-beta.wagyu.xyz` | | Format | JSON in and out. `content-type: application/json` on requests with a body. | | Amounts | Positive integer strings in atomic units. USD fields are display values only. | | Chain ids | Wagyu's own ids, such as `0` for Monero and `20000000000001` for Bitcoin. See [Chains and tokens](https://docs.wagyu.xyz/chains.md). | | Errors | `{ "code", "error" }`, plus `minAmountUsd` or `retryAfter` when relevant. See [Errors](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope). | | Unknown query parameters | Refused with `400 invalid_request`. | | CORS | Browsers may call the API only from `https://wagyu.xyz`. Call it from your server. | | Contracts | [OpenAPI 3.1](https://api-beta.wagyu.xyz/v2/docs) · [AsyncAPI 3.0](https://api-beta.wagyu.xyz/v2/asyncapi) · mirrored at [/openapi.json](/openapi.json) and [/asyncapi.json](/asyncapi.json) | ## Authentication | Scheme | Header or parameter | Used for | | --- | --- | --- | | None | — | Catalog, terms, quotes, order creation, public data. | | Integrator key | `X-Integrator-Key: wg_…` (alias `X-API-Key`) | Optional on quotes and creation: attribution, your fee, company limits. Required for reporting. [Details](https://docs.wagyu.xyz/authentication.md). | | Owner session | `X-Session-ID: ` | Reading an order and every owner action. | | Destination proof | `?verify=` | Reading one order, read-only. | ## Endpoints ### Swaps | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/swaps/terms`](https://docs.wagyu.xyz/api-reference/get-swap-terms.md) | Get swap terms | | `GET` | [`/v2/swaps/assets`](https://docs.wagyu.xyz/api-reference/get-swap-assets.md) | List chains and featured tokens | | `GET` | [`/v2/swaps/assets/tokens`](https://docs.wagyu.xyz/api-reference/get-swap-asset-tokens.md) | Search tokens | | `POST` | [`/v2/swaps/quote`](https://docs.wagyu.xyz/api-reference/quote-swap.md) | Quote a swap | | `POST` | [`/v2/swaps`](https://docs.wagyu.xyz/api-reference/create-swap-order.md) | Create a swap order | | `GET` | [`/v2/swaps/{id}`](https://docs.wagyu.xyz/api-reference/get-swap-order.md) | Read a swap order | | `GET` | [`/v2/swaps/{id}/fills`](https://docs.wagyu.xyz/api-reference/get-swap-fills.md) | List Hyperliquid fills | | `PUT` | [`/v2/swaps/{id}/coinflip`](https://docs.wagyu.xyz/api-reference/resolve-coinflip.md) | Answer a swap’s bonus flip | ### Bridge | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/bridges/terms`](https://docs.wagyu.xyz/api-reference/get-bridge-terms.md) | Get bridge terms | | `GET` | [`/v2/bridges/quote`](https://docs.wagyu.xyz/api-reference/quote-bridge.md) | Quote a bridge amount | | `POST` | [`/v2/bridges`](https://docs.wagyu.xyz/api-reference/create-bridge-order.md) | Create a bridge order | | `GET` | [`/v2/bridges/{id}`](https://docs.wagyu.xyz/api-reference/get-bridge-order.md) | Read a bridge order | ### Orders | Method | Path | What it does | | --- | --- | --- | | `DELETE` | [`/v2/orders/{id}`](https://docs.wagyu.xyz/api-reference/delete-order.md) | Delete an order | | `GET` | [`/v2/orders`](https://docs.wagyu.xyz/api-reference/list-session-orders.md) | List a session’s orders | | `GET` | [`/v2/orders/{id}/review`](https://docs.wagyu.xyz/api-reference/get-order-review.md) | Read an order review | | `PUT` | [`/v2/orders/{id}/review`](https://docs.wagyu.xyz/api-reference/submit-order-review.md) | Review an order | | `PUT` | [`/v2/orders/{id}/refund-address`](https://docs.wagyu.xyz/api-reference/submit-refund-address.md) | Submit a refund address | | `POST` | [`/v2/orders/{id}/deposit-wait/close`](https://docs.wagyu.xyz/api-reference/continue-on-arrived-deposit.md) | Continue on a short deposit | | `PUT` | [`/v2/orders/{id}/payout-address`](https://docs.wagyu.xyz/api-reference/submit-payout-address.md) | Submit a replacement payout address | ### Integrator | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/integrator/me`](https://docs.wagyu.xyz/api-reference/get-integrator.md) | Read your integration | | `GET` | [`/v2/integrator/orders`](https://docs.wagyu.xyz/api-reference/list-integrator-orders.md) | List attributed orders | ### Stats | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/stats/daily`](https://docs.wagyu.xyz/api-reference/get-protocol-stats.md) | Get protocol statistics | | `GET` | [`/v2/swaps/route-stats`](https://docs.wagyu.xyz/api-reference/get-swap-route-stats.md) | Get route execution times | ### Activity | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/recent-swaps`](https://docs.wagyu.xyz/api-reference/get-recent-swaps.md) | List recent swaps | | `GET` | [`/v2/bridges/recent`](https://docs.wagyu.xyz/api-reference/get-recent-bridge-orders.md) | List recent bridge orders | ### Config | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/nodes`](https://docs.wagyu.xyz/api-reference/list-nodes.md) | List Monero nodes | ### Points | Method | Path | What it does | | --- | --- | --- | | `GET` | [`/v2/points/{address}`](https://docs.wagyu.xyz/api-reference/get-points.md) | Get an address’s points | | `GET` | [`/v2/points/leaderboard`](https://docs.wagyu.xyz/api-reference/get-points-leaderboard.md) | Get the points leaderboard | ### Coinflip | Method | Path | What it does | | --- | --- | --- | | `POST` | [`/v2/coinflips/{id}/bets`](https://docs.wagyu.xyz/api-reference/place-coinflip-bet.md) | Place a coinflip bet | | `POST` | [`/v2/coinflips/{id}/cashout`](https://docs.wagyu.xyz/api-reference/cash-out-coinflip.md) | Cash out a coinflip table | | `POST` | [`/v2/coinflips/{id}/presence`](https://docs.wagyu.xyz/api-reference/coinflip-presence.md) | Keep a coinflip table open | | `POST` | [`/v2/coinflips/{id}/reopen`](https://docs.wagyu.xyz/api-reference/reopen-coinflip.md) | Reopen a coinflip table | | `GET` | [`/v2/coinflips/recent`](https://docs.wagyu.xyz/api-reference/get-recent-coinflip-rounds.md) | List recent coinflip rounds | | `GET` | [`/v2/coinflips/terms`](https://docs.wagyu.xyz/api-reference/get-coinflip-terms.md) | Get coinflip terms | | `POST` | [`/v2/coinflips`](https://docs.wagyu.xyz/api-reference/create-coinflip-order.md) | Create a coinflip table | | `GET` | [`/v2/coinflips/{id}`](https://docs.wagyu.xyz/api-reference/get-coinflip-order.md) | Read a coinflip table | The two **Integrator** routes are not in `openapi.json`; their pages are written from Wagyu's key guide. **Coinflip** and **Points** belong to wagyu.xyz's own products and are listed for completeness. --- Source: https://docs.wagyu.xyz/api-reference · Built from the live Wagyu API on 2026-11-04. # Get swap terms > Read the swap rules before creating an order: deposit window, minimum and confirmations per chain, partial deposits, default limits `GET /v2/swaps/terms` Read the swap rules before creating an order: deposit window, minimum and confirmations per chain, partial deposits, default limits. **Authentication:** None. This route is public. ## Response `200` returns an object with: - `depositWindowMinutes` · number · **required** — How long a new order waits for its deposit, top-ups included. Each order states its own deadline as `expiresAt`; count down to that, not to this. - `chains` · array of object · **required** — Every chain an order can send from, with its live availability. - `chainId` · integer · **required** — Non-negative integer chain identifier. - `depositEnabled` · boolean · **required** — Whether POST /v2/swaps accepts an order sending from this chain right now. - `minDepositUsd` · number · **required** — Smallest order sending from this chain, in US dollars. A quote's `minDepositUsd` is the same value. - `confirmations` · object · **required** — Confirmations a deposit from this chain needs before the order acts on it. Where min and max differ (Monero, Zcash), bigger deposits and busier periods need more. An order's own `requiredConfirmations` is the value that applies to it. - _Nested fields: see `openapi.json`._ - `partialDeposit` · object · **required** - `executesFromPercent` · number · **required** — A token deposit of at least this share of `depositAmount` counts as paid and executes on what arrived. - `noticeFromPercent` · number · **required** — An arrival below this share of `depositAmount` is treated as stray dust: no short-deposit notice. - `continueFromUsd` · number · **required** — When the top-up wait ends, a short deposit worth at least this many US dollars executes on what arrived. A smaller one expires and support returns it. - `recoveryCheckMinutes` · integer or null · **required** — Longest wait before an order waiting on recovery (for example after a refund or payout address is submitted) is checked again. `null` when the check does not run on a fixed interval. - `integratorFee` · object · **required** - `maxPercent` · number · **required** — Highest `integratorFeePercent` a quote or order accepts. - `defaultLimits` · object · **required** — Per-client limits that apply without an integrator key. An integration can have higher ones: GET /v2/integrator/me returns yours. - `requestLimitPerMin` · integer · **required** - `quoteLimitPerMin` · integer · **required** - `createLimitPerMin` · integer · **required** - `maxOpenOrders` · integer · **required** - `openOrderWindowMinutes` · integer · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/terms' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/terms' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/terms', timeout=30) data = res.json() ``` ```json { "depositWindowMinutes": 60, "chains": [ { "chainId": 0, "depositEnabled": true, "minDepositUsd": 25, "confirmations": { "min": 2, "max": 10 } }, { "chainId": 133, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 3, "max": 24 } }, { "chainId": 20000000000001, "depositEnabled": true, "minDepositUsd": 40, "confirmations": { "min": 1, "max": 1 } }, { "chainId": 1151111081099710, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 1, "max": 1 } }, { "chainId": 728126428, "depositEnabled": true, "minDepositUsd": 1500, "confirmations": { "min": 19, "max": 19 } }, { "chainId": 1, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 2, "max": 2 } }, { "chainId": 42161, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 1, "max": 1 } }, { "chainId": 8453, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 1, "max": 1 } }, { "chainId": 56, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 3, "max": 3 } }, { "chainId": 999, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 1, "max": 1 } }, { "chainId": 4663, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 1, "max": 1 } }, { "chainId": 5042, "depositEnabled": true, "minDepositUsd": 20, "confirmations": { "min": 1, "max": 1 } } ], "partialDeposit": { "executesFromPercent": 99, "noticeFromPercent": 0.5, "continueFromUsd": 10 }, "recoveryCheckMinutes": 15, "integratorFee": { "maxPercent": 5 }, "defaultLimits": { "requestLimitPerMin": 600, "quoteLimitPerMin": 60, "createLimitPerMin": 6, "maxOpenOrders": 5, "openOrderWindowMinutes": 30 } } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-swap-terms · Built from the live Wagyu API on 2026-11-04. # List chains and featured tokens > List available swap chains and featured assets `GET /v2/swaps/assets` List available swap chains and featured assets. **Authentication:** None. This route is public. ## Response `200` returns an object with: - `chains` · array of object · **required** - `id` · integer · **required** — Non-negative integer chain identifier. - `key` · string · **required** - `name` · string · **required** - `logoURI` · string - `sourceChainIds` · array of integer · **required** - `destinationChainIds` · array of integer · **required** - `featuredTokens` · array of object · **required** - `address` · string · **required** - `symbol` · string · **required** - `decimals` · integer (0–36) · **required** - `chainId` · integer · **required** — Non-negative integer chain identifier. - `name` · string · **required** - `logoURI` · string - `priceUSD` · string - `catalogStale` · boolean Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/assets' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/assets' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/assets', timeout=30) data = res.json() ``` ```json { "chains": [ { "id": 0, "key": "monero", "name": "Monero", "logoURI": "/XMR.svg" }, { "id": 133, "key": "zcash", "name": "Zcash", "logoURI": "/ZEC.svg" }, { "id": 1, "key": "eth", "name": "Ethereum", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/ethereum.svg" }, { "id": 42161, "key": "arb", "name": "Arbitrum", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arbitrum.svg" }, { "id": 8453, "key": "bas", "name": "Base", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/base.svg" }, { "id": 56, "key": "bsc", "name": "BSC", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bsc.svg" }, { "id": 999, "key": "hyp", "name": "HyperEVM", "logoURI": "/HYPE.png" }, { "id": 4663, "key": "out", "name": "Robinhood Chain", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/robinhood.svg" }, { "id": 5042, "key": "arc", "name": "Arc", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/arc.svg" }, { "id": 1151111081099710, "key": "sol", "name": "Solana", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/solana.svg" }, { "id": 20000000000001, "key": "btc", "name": "Bitcoin", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/bitcoin.svg" }, { "id": 728126428, "key": "trn", "name": "Tron", "logoURI": "https://lifinance.github.io/types/src/assets/icons/chains/tron.svg" }, { "id": 1337, "key": "hpl", "name": "Hyperliquid", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/hyperliquid.svg" }, { "id": 784, "key": "sui", "name": "Sui", "logoURI": "https://raw.githubusercontent.com/lifinance/types/main/src/assets/icons/chains/sui.svg" } ], "sourceChainIds": [ 0, 133, 1, 42161, 8453, 56, 999, 4663, 5042, 1151111081099710, 20000000000001, 728126428 ], "destinationChainIds": [ 0, 133, 1, 42161, 8453, 56, 999, 4663, 5042, 1151111081099710, 20000000000001, 728126428, 1337, 784 ], "featuredTokens": [ { "address": "XMR", "symbol": "XMR", "decimals": 12, "chainId": 0, "name": "Monero", "logoURI": "/XMR.svg" }, { "address": "ZEC", "symbol": "ZEC", "decimals": 8, "chainId": 133, "name": "Zcash", "logoURI": "/ZEC.svg" }, { "address": "bitcoin", "symbol": "BTC", "decimals": 8, "chainId": 20000000000001, "name": "Bitcoin", "logoURI": "https://assets.coingecko.com/coins/images/1/standard/bitcoin.png", "priceUSD": "77900.65868649974" } ], "catalogStale": false } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-swap-assets · Built from the live Wagyu API on 2026-11-04. # Search tokens > Search or page available swap assets `GET /v2/swaps/assets/tokens` Search or page available swap assets. **Authentication:** None. This route is public. Several tokens can share a symbol (searching `usdc` also returns `syrupUSDC`). Match on `address` and `chainId`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `direction` | query | `"from"` · `"to"` | Yes | "from" filters to tokens usable as a source, "to" to tokens usable as a destination. | | `chainId` | query | integer | No | Restrict the search to one chain; omit to search every available chain. | | `q` | query | string (max 200) | No | Free-text filter on symbol, name, or address. | | `offset` | query | integer | No (default `0`) | Number of tokens to skip, for paging the filtered catalog. | | `limit` | query | integer (1–100) | No (default `100`) | Page size. | ## Response `200` returns an object with: - `tokens` · array of object · **required** - `address` · string · **required** - `symbol` · string · **required** - `decimals` · integer (0–36) · **required** - `chainId` · integer · **required** — Non-negative integer chain identifier. - `name` · string · **required** - `logoURI` · string - `priceUSD` · string - `total` · integer · **required** - `nextOffset` · integer - `catalogStale` · boolean Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/assets/tokens?direction=from&chainId=1&q=usdc&limit=2', timeout=30) data = res.json() ``` ```json { "tokens": [ { "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "symbol": "USDC", "decimals": 6, "chainId": 1, "name": "USD Coin", "logoURI": "https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png", "priceUSD": "1.0004734908" }, { "address": "0x80ac24aA929eaF5013f6436cdA2a7ba190f5Cc0b", "symbol": "syrupUSDC", "decimals": 6, "chainId": 1, "name": "syrupUSDC", "logoURI": "https://static.debank.com/image/eth_token/logo_url/0x80ac24aa929eaf5013f6436cda2a7ba190f5cc0b/a7faacaded044f7d84a2b8e21ae7babd.png", "priceUSD": "1.1917541157" } ], "total": 7, "nextOffset": 2, "catalogStale": false } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-swap-asset-tokens · Built from the live Wagyu API on 2026-11-04. # Quote a swap > Quote an exact-input or exact-output swap `POST /v2/swaps/quote` Quote an exact-input or exact-output swap. **Authentication:** None required. Optional: [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. > **Checked against the live API:** - Send `fromToken` and `toToken` even though the schema marks them optional: without them the API answers `400` `missing/invalid field: fromToken`. > - Use the token value from the catalog. The `"native"` shorthand described below fails on Ethereum (`no_route`); the zero address works. See [Chains and tokens](https://docs.wagyu.xyz/chains.md). > - A quote under the minimum is not refused: it can return `200` with `"toAmount": "0"`. Compare `fromAmountUsd` with `minDepositUsd`. > - `toAddress` is not validated at quote time; it is checked when the order is created. ## Request body Send one of these 2 shapes: ### Shape 1: with `fromAmount` - `fromChainId` · integer · **required** — Non-negative integer chain identifier. - `toChainId` · integer · **required** — Non-negative integer chain identifier. - `fromToken` · string — Token contract address on the corresponding chain. For a chain's native coin, send "native" or its native symbol. - `toToken` · string — Token contract address on the corresponding chain. For a chain's native coin, send "native" or its native symbol. - `fromTokenSymbol` · string — Optional symbol hint for the same token. Resolution is driven by the token address, not by this value. - `toTokenSymbol` · string — Optional symbol hint for the same token. Resolution is driven by the token address, not by this value. - `fromAmount` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `toAddress` · string — Intended destination address. Optional for a quote: it only lets the router account for destination-specific costs. - `integratorFeePercent` · number (0–5) — Optional integrator fee percentage. Requires a valid integrator API key. ### Shape 2: with `toAmount` - `fromChainId` · integer · **required** — Non-negative integer chain identifier. - `toChainId` · integer · **required** — Non-negative integer chain identifier. - `fromToken` · string — Token contract address on the corresponding chain. For a chain's native coin, send "native" or its native symbol. - `toToken` · string — Token contract address on the corresponding chain. For a chain's native coin, send "native" or its native symbol. - `fromTokenSymbol` · string — Optional symbol hint for the same token. Resolution is driven by the token address, not by this value. - `toTokenSymbol` · string — Optional symbol hint for the same token. Resolution is driven by the token address, not by this value. - `toAmount` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `toAddress` · string — Intended destination address. Optional for a quote: it only lets the router account for destination-specific costs. - `integratorFeePercent` · number (0–5) — Optional integrator fee percentage. Requires a valid integrator API key. ## Response `200` returns an object with: - `toAmount` · string · **required** - `fromAmount` · string or null - `fromAmountUsd` · string or null - `fromSymbol` · string or null - `toAmountUsd` · string or null - `toSymbol` · string or null - `toolUsed` · string or null - `feeFraction` · number or null - `feeBreakdown` · object or null - `platformFeeRate` · number or null - `platformFeeXmr` · string or null - `platformFeeUsd` · string or null - `bridgeFlatFeeXmr` · string or null - `bridgeFlatFeeUsd` · string or null - `hlSizeRoundingXmr` · string or null - `hlSizeRoundingUsd` · string or null - `hlTakerFeeXmr` · string or null - `hlTakerFeeUsd` · string or null - `totalFeeUsd` · string or null - `totalCostUsd` · string or null - `integratorFee` · object or null - `feePercent` · number · **required** - `feeAmountUsd` · number · **required** - `feeAddress` · string or null - `minDepositUsd` · number or null - `isXmrInput` · boolean - `isXmrOutput` · boolean Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/swaps/quote' \ -H 'content-type: application/json' \ -d '{ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/quote', { method: 'POST', headers: {"content-type":"application/json"}, body: JSON.stringify({ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A" }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/swaps/quote', json={ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "44AFFq5kSiGBoZ4NMDwYtN18obc8AemS33DBLWs3H7otXft3XjrpDtQGv7SqSsaBYBb98uNbr2VBBEt7f2wfn3RVGQBEP3A" }, timeout=30) data = res.json() ``` ```json { "toAmount": "1195223386000", "fromAmount": "1000000", "fromAmountUsd": "781.65", "fromSymbol": "BTC", "toAmountUsd": "765.30", "toSymbol": "XMR", "toolUsed": "near", "feeFraction": 0.02, "feeBreakdown": { "platformFeeRate": 0.02, "platformFeeXmr": "0.024392314", "platformFeeUsd": "15.62", "bridgeFlatFeeXmr": "0", "bridgeFlatFeeUsd": "0.00", "hlSizeRoundingXmr": "0.000754402624", "hlSizeRoundingUsd": "0.48", "hlTakerFeeXmr": "0.0003843", "hlTakerFeeUsd": "0.25", "totalFeeUsd": "15.62", "totalCostUsd": "16.35" }, "integratorFee": null, "minDepositUsd": 40, "isXmrInput": false, "isXmrOutput": true } ``` --- Source: https://docs.wagyu.xyz/api-reference/quote-swap · Built from the live Wagyu API on 2026-11-04. # Create a swap order > Create a durable swap order (supply your own sessionId only with a valid integrator key) `POST /v2/swaps` Create a durable swap order (supply your own sessionId only with a valid integrator key). **Authentication:** None required. Optional: [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. > **This creates a real order:** There is no sandbox and no idempotency key. Never retry this call automatically after a timeout: the first request may have created the order. See [Errors, limits, retries](https://docs.wagyu.xyz/actions-and-retries.md#retry-policy). ## Request body - `fromChainId` · integer · **required** — Non-negative integer chain identifier. - `toChainId` · integer · **required** — Non-negative integer chain identifier. - `fromToken` · string · **required** — Token contract address on the corresponding chain. For a chain's native coin, send "native" or its native symbol. - `toToken` · string · **required** — Token contract address on the corresponding chain. For a chain's native coin, send "native" or its native symbol. - `fromAmount` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `toAddress` · string · **required** — Destination address. Its chain-specific validity is checked by the engine. - `fromTokenSymbol` · string — Optional symbol hint for the same token. Resolution is driven by the token address, not by this value. - `toTokenSymbol` · string — Optional symbol hint for the same token. Resolution is driven by the token address, not by this value. - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) — Optional session credential for an integrator to group its own orders. Requires a valid integrator API key. - `refundAddress` · string (max 256) — Refund destination. Its chain-specific validity is checked by the engine. - `coinflip` · boolean — Opt into the bonus flip when this order is eligible. The decision itself is sent later to PUT /v2/swaps/{id}/coinflip. - `fundingProvider` · `"privy"` or null — Fiat onramp that will fund this order, when the deposit comes from a card purchase instead of a wallet. - `integratorFeePercent` · number (0–5) — Optional integrator fee percentage. Requires a valid integrator API key. - `clickId` · object — Google Ads click identifier, when this order came from an ad. Stored apart from the order, used once to report the conversion, then deleted; it is never published back on any order read. - `kind` · `"gclid"` · `"wbraid"` · `"gbraid"` · **required** - `value` · string (pattern `^[A-Za-z0-9_-]{16,200}$`) · **required** - `source` · object — Where the visit that created this order came from. Marketing only: stored apart from the order, counted in reports, never published back on any order read. - `utmSource` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_source. - `utmMedium` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_medium. - `utmCampaign` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_campaign. - `referrer` · string (pattern `^(?=.{1,253}$)[a-z0-9-]{1,63}(?:\.[a-z0-9-]{1,63})+$`) — Hostname of the site the visitor came from. Never a full URL. - `landing` · string (pattern `^\/[A-Za-z0-9/._-]{0,199}$`) — Path of the visit's first page. ## Response `200` returns an object with: - `orderId` · string · **required** - `product` · `"swap"` · **required** - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) · **required** — 16–64 character hexadecimal/hyphen owner-session credential. - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - **kind = "awaiting_deposit"** - **kind = "processing"** - **kind = "action_required"** - **kind = "paused"** - **kind = "completed"** - **kind = "refunded"** - **kind = "expired"** - **kind = "failed"** - `depositAddress` · string · **required** - `depositAddressForms` · array of object - `kind` · `"shielded"` · `"transparent"` · **required** - `address` · string · **required** - `depositChainId` · integer · **required** — Non-negative integer chain identifier. - `depositToken` · string · **required** - `depositTokenSymbol` · string · **required** - `depositTokenDecimals` · integer (0–36) · **required** - `depositAmount` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `toChainId` · integer · **required** — Non-negative integer chain identifier. - `toToken` · string · **required** - `toTokenSymbol` · string · **required** - `toTokenDecimals` · integer (0–36) · **required** - `toAddress` · string · **required** - `expectedOutput` · string or null · **required** - `amountUsd` · number · **required** - `expiresAt` · string · **required** - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/swaps' \ -H 'content-type: application/json' \ -d '{ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps', { method: 'POST', headers: {"content-type":"application/json"}, body: JSON.stringify({ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "" }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/swaps', json={ "fromChainId": 20000000000001, "toChainId": 0, "fromToken": "bitcoin", "toToken": "XMR", "fromAmount": "1000000", "toAddress": "" }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/create-swap-order · Built from the live Wagyu API on 2026-11-04. # Read a swap order > Read a swap order with an owner session or destination proof `GET /v2/swaps/{id}` Read a swap order with an owner session or destination proof. **Authentication:** Required: the order’s owner session in `X-Session-ID`, or the destination proof `?verify=` (read-only). A missing order, a wrong session and a wrong `verify` address all return the same `404` (checked live). An order handled by support only answers `409` `conflict`; see [locked orders](https://docs.wagyu.xyz/order-lifecycle.md#a-sessions-orders). ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `orderId` · string · **required** - `product` · `"swap"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"trx"` · `"zec"` — Registered native-bridge asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string · **required** - `depositAddress` · string · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer · **required** — Non-negative integer chain identifier. - `depositChainId` · integer · **required** — Non-negative integer chain identifier. - `fromToken` · string · **required** - `depositToken` · string · **required** - `fromTokenSymbol` · string · **required** - `depositTokenSymbol` · string · **required** - `fromTokenDecimals` · integer (0–36) · **required** - `depositTokenDecimals` · integer (0–36) · **required** - `fromAmount` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `depositAmount` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `toChainId` · integer · **required** — Non-negative integer chain identifier. - `toToken` · string · **required** - `toTokenSymbol` · string · **required** - `toTokenDecimals` · integer (0–36) · **required** - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - **kind = "awaiting_deposit"** - **kind = "processing"** - **kind = "action_required"** - **kind = "paused"** - **kind = "completed"** - **kind = "refunded"** - **kind = "expired"** - **kind = "failed"** - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - `chainId` · integer · **required** — Non-negative integer chain identifier. - `token` · string · **required** - `symbol` · string · **required** - `decimals` · integer (0–36) · **required** - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - `kind` · `"wrong_chain"` · `"source"` · `"table_deposit"` · **required** - `phase` · `"address_required"` · `"requested"` · `"in_progress"` · **required** - `chainId` · integer · **required** — Non-negative integer chain identifier. - `asset` · object · **required** - _Nested fields: see `openapi.json`._ - `amountAtomic` · string · **required** - `requestedAt` · string or null · **required** - `suggestedAddress` · string — An address the order already has on file for this chain (for table_deposit, the table's payout address), offered as the prefill while phase is address_required. An offer only: nothing is sent to it until it is submitted. - `destination` · object — Where the refund goes once that is decided (phase requested or in_progress). source is customer when someone submitted the address, sender when the refund returns to the wallet the deposit came from without anyone having to submit one. - _Nested fields: see `openapi.json`._ - `rewards` · object - `status` · `"pending"` · `"earned"` · `"not_eligible"` · **required** - `wagyuEarned` · number · **required** - `wagyuBonusEarned` · number · **required** - `wagyuCompensation` · number - `wagyuTotalEarned` · number · **required** - `policyKey` · string or null · **required** - `depositAddressForms` · array of object - `kind` · `"shielded"` · `"transparent"` · **required** - `address` · string · **required** - `sourceDepositAddress` · string or null - `observedDepositTxHash` · string - `observedDepositAmount` · string (atomic integer) — Positive base-10 integer in the asset’s atomic unit. - `fundedExpectedOutput` · string (atomic integer) — Positive base-10 integer in the asset’s atomic unit. - `refund` · object - `txHash` · string · **required** - `chainId` · integer · **required** — Non-negative integer chain identifier. - `toAddress` · string · **required** - `coinflip` · object or null - `eligible` · boolean · **required** - `accepted` · boolean or null · **required** - `seedHash` · string · **required** - `clientSeed` · string · **required** - `assetSymbol` · string - `assetKey` · `"xmr"` · `"trx"` · `"zec"` or `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` — Asset a coinflip was staked in: a table pool asset or a bridge asset. - `result` · number - `won` · boolean - `serverSeed` · string - `resolvedAt` · string - `side` · `"cow"` · `"milk"` or null - `currentRound` · number - `currentMultiplier` · number - `finalMultiplier` · number or null - `finalWon` · boolean or null - `rounds` · array of object - _Nested fields: see `openapi.json`._ - `policy` · object - _Nested fields: see `openapi.json`._ - `decisionDeadline` · string - `mode` · `"session"` - `balanceAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `creditedInAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `wageredAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `minBetAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `maxBetAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `wagyuPoints` · number - `refusal` · `"not_a_positive_amount"` · `"above_balance"` · `"below_minimum"` · `"below_payout_minimum"` · `"above_exposure_cap"` · `"limits_unavailable"` - `pendingTopUp` · object - _Nested fields: see `openapi.json`._ - `twap` · object or null - `enabled` · `true` · **required** - `status` · `"running"` · `"completed"` · `"failed"` · **required** - `side` · `"buy"` · `"sell"` - `filledPercent` · number · **required** - `chunksCompleted` · number · **required** - `chunksTotal` · number · **required** - `estimatedTimeRemainingMs` · number - `estimatedTimeRemaining` · string - `startedAt` · string · **required** - `expectedCompleteAt` · string - `completedAt` · string - `route` · object or null - `provider` · string · **required** - `tool` · string · **required** - `txHash` · string or null · **required** - `toChainId` · integer · **required** — Non-negative integer chain identifier. - `status` · `"pending"` · `"done"` · `"refunded"` · `"failed"` · `"partial"` · `"unavailable"` · **required** - `statusMessage` · string or null · **required** - `routing` · object - `topology` · `"single"` · `"parallel"` · **required** - `branchCount` · integer · **required** - `phase` · `"preparing"` · `"executing"` · `"recovering"` · `"settled"` · `"attention"` · `"unavailable"` · **required** - `status` · `"pending"` · `"done"` · `"partial"` · `"failed"` · `"unavailable"` · **required** - `branches` · object · **required** - _Nested fields: see `openapi.json`._ - `routes` · array of object · **required** - _Nested fields: see `openapi.json`._ - `hlFills` · array of object or null - `tradeId` · string (pattern `^\d+$`) - `coin` · string (pattern `^@\d+$`) - `txHash` · string (max 66, pattern `^0x(?!0{64}$)[0-9a-fA-F]{64}$`) - `time` · integer · **required** - `side` · `"Buy"` · `"Sell"` · **required** - `price` · number · **required** - `size` · number · **required** - `value` · number · **required** - `fee` · number · **required** - `feeToken` · string · **required** - `twapId` · integer - `hlFillsStatus` · `"pending"` · `"complete"` · `"incomplete"` - `hlFillsNextCursor` · string (pattern `^[1-9]\d{0,18}$`) or null Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/', { headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: it needs a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/get-swap-order · Built from the live Wagyu API on 2026-11-04. # List Hyperliquid fills > Page saved execution receipts with an owner session or destination proof `GET /v2/swaps/{id}/fills` Page saved execution receipts with an owner session or destination proof. **Authentication:** Required: the order’s owner session in `X-Session-ID`, or the destination proof `?verify=` (read-only). ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `before` | query | string (pattern `^[1-9]\d{0,18}$`) | No | Cursor returned as nextCursor by the previous page. | | `limit` | query | integer (1–200) | No (default `200`) | Maximum fills per page, from 1 to 200. | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `fills` · array of object · **required** - `tradeId` · string (pattern `^\d+$`) - `coin` · string (pattern `^@\d+$`) - `txHash` · string (max 66, pattern `^0x(?!0{64}$)[0-9a-fA-F]{64}$`) - `time` · integer · **required** - `side` · `"Buy"` · `"Sell"` · **required** - `price` · number · **required** - `size` · number · **required** - `value` · number · **required** - `fee` · number · **required** - `feeToken` · string · **required** - `twapId` · integer - `status` · `"pending"` · `"complete"` · `"incomplete"` · **required** - `nextCursor` · string (pattern `^[1-9]\d{0,18}$`) or null · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps//fills?limit=50' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps//fills?limit=50', { headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps//fills?limit=50', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: it needs a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/get-swap-fills · Built from the live Wagyu API on 2026-11-04. # Answer a swap’s bonus flip > Submit a coinflip decision for an eligible order `PUT /v2/swaps/{id}/coinflip` Submit a coinflip decision for an eligible order. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Request body - `round` · integer · **required** — The pending round this decision answers. A stale decision is rejected, never applied to a later round. - `accept` · boolean · **required** — Whether to take the offered flip. false cashes the bonus out instead. Omission is never treated as a decline — the field is required. - `clientSeed` · string (max 64, pattern `^[\x20-\x7E]*$`) or null — Your half of the provably-fair seed. The outcome is HMAC(serverSeed, clientSeed), and SHA256(serverSeed) is committed before you choose it. Omit to let the engine use a fallback seed. - `side` · `"cow"` · `"milk"` or null — Which band wins. It selects the winning range only and never feeds the HMAC, so it cannot change the drawn number. - `stakeAtomic` · string (atomic integer) or null — Coinflip TABLE only: the bet for this round, in the asset's smallest unit. Proposed, not binding — the engine refuses a bet above your balance, below the minimum, or beyond the pool's exposure cap, and leaves the round open so you can correct it. Ignored by the in-swap bonus, which always stakes the whole delivery. ## Response `200` returns an object with: - `round` · number - `result` · number - `won` · boolean - `side` · `"cow"` · `"milk"` - `multiplier` · number - `finalMultiplier` · number or null · **required** - `serverSeed` · string - `seedHash` · string - `cashedOut` · boolean - `revealedUnusedSeed` · string - `unusedSeedHash` · string - `nextRound` · object or null - `round` · number · **required** - `seedHash` · string · **required** - `multiplierIfWin` · number · **required** - `currentMultiplier` · number · **required** - `decisionDeadline` · string - `policy` · object - `edgePercent` · number · **required** - `milkWinBelow` · number · **required** - `cowWinAbove` · number · **required** - `winChancePercent` · number · **required** - `maxWalletFractionPercent` · number - `maxPayoutAtomic` · string (atomic integer) — Positive base-10 integer in the asset’s atomic unit. Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X PUT 'https://api-beta.wagyu.xyz/v2/swaps//coinflip' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "round": 1, "accept": false }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps//coinflip', { method: 'PUT', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({ "round": 1, "accept": false }), }); const data = await res.json(); ``` ```python import requests res = requests.put('https://api-beta.wagyu.xyz/v2/swaps//coinflip', headers={"x-session-id":""}, json={ "round": 1, "accept": False }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/resolve-coinflip · Built from the live Wagyu API on 2026-11-04. # Get bridge terms > Read bridge fees and minimums `GET /v2/bridges/terms` Read bridge fees and minimums. **Authentication:** None. This route is public. ## Response `200` returns an object with: - `fees` · object · **required** - `depositFeeRate` · number · **required** - `withdrawalFeeRate` · number · **required** - `withdrawalFlat` · object · **required** — Flat fee on a direct withdrawal, per asset key, in that asset's coin units. - `withdrawalFlatXmr` · number · **required** — Deprecated: read withdrawalFlat.xmr. - `withdrawalFlatTrx` · number · **required** — Deprecated: read withdrawalFlat.trx. - `minimums` · object — Per-asset floor on the GROSS sent amount, in coin units; fees are deducted from it. - `assets` · array of object — Every bridge asset this API knows, with its live availability. Read it before offering a rail: creating against an unavailable one answers 503 unavailable, not 400. - `key` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `deposit` · boolean · **required** — Whether POST /v2/bridges accepts a deposit for this asset right now. - `withdraw` · boolean · **required** — Whether POST /v2/bridges accepts a withdrawal for this asset right now. Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/bridges/terms' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/terms' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/terms', timeout=30) data = res.json() ``` ```json { "fees": { "depositFeeRate": 0, "withdrawalFeeRate": 0.02, "withdrawalFlat": { "xmr": 0, "trx": 0, "zec": 0 }, "withdrawalFlatXmr": 0, "withdrawalFlatTrx": 0 }, "minimums": { "xmr": 0.01, "trx": 5, "zec": 0.0001 }, "assets": [ { "key": "xmr", "deposit": true, "withdraw": true }, { "key": "trx", "deposit": false, "withdraw": false }, { "key": "zec", "deposit": true, "withdraw": true } ] } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-bridge-terms · Built from the live Wagyu API on 2026-11-04. # Quote a bridge amount > Quote the net settlement for a bridge amount `GET /v2/bridges/quote` Quote the net settlement for a bridge amount. **Authentication:** None. This route is public. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `asset` | query | `"xmr"` · `"trx"` · `"zec"` | Yes | Registered native-bridge asset key, never a display symbol. | | `direction` | query | `"deposit"` · `"withdraw"` | Yes | deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. | | `amount` | query | string (atomic integer) | Yes | Positive base-10 integer in the asset’s atomic unit. | | `senderAddress` | query | string | No | Withdrawals only. The Hyperliquid address returning the wrapped asset, used to resolve that sender's fee override. The settled amount is re-derived from the verified sender. | ## Response `200` returns an object with: - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` · **required** — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `grossAtomic` · string · **required** - `netAtomic` · string or null · **required** — Amount actually settled, in atomic units. Null exactly when `belowMinimum` is true. - `feeAtomic` · string or null · **required** - `flatFeeAtomic` · string or null · **required** - `percentFeeAtomic` · string or null · **required** - `feePercent` · number or null · **required** - `minimumAtomic` · string · **required** - `belowMinimum` · boolean · **required** - `available` · boolean — Whether POST /v2/bridges accepts this asset and direction right now. Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/quote?asset=xmr&direction=withdraw&amount=1000000000000', timeout=30) data = res.json() ``` ```json { "asset": "xmr", "direction": "withdraw", "grossAtomic": "1000000000000", "netAtomic": "980000000000", "feeAtomic": "20000000000", "flatFeeAtomic": "0", "percentFeeAtomic": "20000000000", "feePercent": 2, "minimumAtomic": "10000000000", "belowMinimum": false, "available": true } ``` --- Source: https://docs.wagyu.xyz/api-reference/quote-bridge · Built from the live Wagyu API on 2026-11-04. # Create a bridge order > Create a native bridge order for one asset and direction (supply your own sessionId only with a valid integrator key) `POST /v2/bridges` Create a native bridge order for one asset and direction (supply your own sessionId only with a valid integrator key). **Authentication:** None required. Optional: [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. > **This creates a real order:** There is no sandbox and no idempotency key. Never retry this call automatically. ## Request body Send one of these 2 shapes: ### Shape 1 - `toAddress` · string · **required** — Destination address. Its chain-specific validity is checked by the engine. - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) — Optional session credential for an integrator to group its own orders. Requires a valid integrator API key. - `refundAddress` · string (max 256) — Refund destination. Its chain-specific validity is checked by the engine. - `source` · object — Where the visit that created this order came from. Marketing only: stored apart from the order, counted in reports, never published back on any order read. - `utmSource` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_source. - `utmMedium` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_medium. - `utmCampaign` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_campaign. - `referrer` · string (pattern `^(?=.{1,253}$)[a-z0-9-]{1,63}(?:\.[a-z0-9-]{1,63})+$`) — Hostname of the site the visitor came from. Never a full URL. - `landing` · string (pattern `^\/[A-Za-z0-9/._-]{0,199}$`) — Path of the visit's first page. - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `direction` · `"deposit"` · **required** — Mint the wrapped asset from a native-coin deposit. ### Shape 2: with `senderAddress` - `toAddress` · string · **required** — Destination address. Its chain-specific validity is checked by the engine. - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) — Optional session credential for an integrator to group its own orders. Requires a valid integrator API key. - `refundAddress` · string (max 256) — Refund destination. Its chain-specific validity is checked by the engine. - `source` · object — Where the visit that created this order came from. Marketing only: stored apart from the order, counted in reports, never published back on any order read. - `utmSource` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_source. - `utmMedium` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_medium. - `utmCampaign` · string (pattern `^[a-z0-9._-]{1,64}$`) — The landing link's utm_campaign. - `referrer` · string (pattern `^(?=.{1,253}$)[a-z0-9-]{1,63}(?:\.[a-z0-9-]{1,63})+$`) — Hostname of the site the visitor came from. Never a full URL. - `landing` · string (pattern `^\/[A-Za-z0-9/._-]{0,199}$`) — Path of the visit's first page. - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `direction` · `"withdraw"` · **required** — Return the native coin against the wrapped asset. - `senderAddress` · string or null — Intake hint only: the Hyperliquid address you intend to return the wrapped asset from. Fees and any pause bypass are bound to the sender the workflow actually verifies on-chain. ## Response `200` returns an object with: - **product = "bridge"** - `orderId` · string · **required** - `product` · `"bridge"` · **required** - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) · **required** — 16–64 character hexadecimal/hyphen owner-session credential. - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `destination` · string · **required** - `expiresAt` · string · **required** - `direction` · `"deposit"` · **required** - `depositAddress` · string · **required** - `depositAddressForms` · array of object - _Nested fields: see `openapi.json`._ - **product = "bridge"** - `orderId` · string · **required** - `product` · `"bridge"` · **required** - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) · **required** — 16–64 character hexadecimal/hyphen owner-session credential. - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `destination` · string · **required** - `expiresAt` · string · **required** - `direction` · `"withdraw"` · **required** - `xmr1DepositAddress` · string or null · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/bridges' \ -H 'content-type: application/json' \ -d '{ "asset": "xmr", "direction": "deposit", "toAddress": "" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges', { method: 'POST', headers: {"content-type":"application/json"}, body: JSON.stringify({ "asset": "xmr", "direction": "deposit", "toAddress": "" }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/bridges', json={ "asset": "xmr", "direction": "deposit", "toAddress": "" }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/create-bridge-order · Built from the live Wagyu API on 2026-11-04. # Read a bridge order > Read a bridge order with an owner session or destination proof `GET /v2/bridges/{id}` Read a bridge order with an owner session or destination proof. **Authentication:** Required: the order’s owner session in `X-Session-ID`, or the destination proof `?verify=` (read-only). ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - **product = "bridge"** - `orderId` · string · **required** - `product` · `"bridge"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `direction` · `"deposit"` · **required** - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - _Nested fields: see `openapi.json`._ - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - _Nested fields: see `openapi.json`._ - `rewards` · object - _Nested fields: see `openapi.json`._ - `destination` · string · **required** - `amount` · string or number - `txIn` · string or null - `txOut` · string or null - `txid` · string or null - `bridgeSettlement` · object or null - _Nested fields: see `openapi.json`._ - `receivedXmr` · number or null - `delivered` · boolean or null - `completedAt` · string or null - `depositAddress` · string · **required** - `depositAddressForms` · array of object - _Nested fields: see `openapi.json`._ - **product = "bridge"** - `orderId` · string · **required** - `product` · `"bridge"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"trx"` · `"zec"` · **required** — Registered native-bridge asset key, never a display symbol. - `direction` · `"withdraw"` · **required** - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - _Nested fields: see `openapi.json`._ - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - _Nested fields: see `openapi.json`._ - `rewards` · object - _Nested fields: see `openapi.json`._ - `destination` · string · **required** - `amount` · string or number - `txIn` · string or null - `txOut` · string or null - `txid` · string or null - `bridgeSettlement` · object or null - _Nested fields: see `openapi.json`._ - `receivedXmr` · number or null - `delivered` · boolean or null - `completedAt` · string or null - `xmr1DepositAddress` · string or null · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/bridges/' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/', { headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: it needs a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/get-bridge-order · Built from the live Wagyu API on 2026-11-04. # Delete an order > Permanently remove a completed or refunded order `DELETE /v2/orders/{id}` Permanently remove a completed or refunded order. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `ok` · `true` · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X DELETE 'https://api-beta.wagyu.xyz/v2/orders/' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{}' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders/', { method: 'DELETE', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({}), }); const data = await res.json(); ``` ```python import requests res = requests.delete('https://api-beta.wagyu.xyz/v2/orders/', headers={"x-session-id":""}, json={}, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/delete-order · Built from the live Wagyu API on 2026-11-04. # List a session’s orders > List orders owned by a session `GET /v2/orders` List orders owned by a session. **Authentication:** Required: the order’s owner session in `X-Session-ID`. A session with no orders returns `{ "orders": [] }`. Without `X-Session-ID`, or with a malformed one, the API answers `400` `invalid_request` (checked live). ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `limit` | query | integer (1–200) | No (default `200`) | Page size for this session's order history. | | `offset` | query | integer | No (default `0`) | Number of orders to skip. History is ordered most-recent first, so this pages backwards through it. | ## Response `200` returns an object with: - `orders` · array of object · **required** - `orderId` · string · **required** - `product` · `"swap"` · `"bridge"` · `"coinflip"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"trx"` · `"zec"` — Registered native-bridge asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `depositAddress` · string or null · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/orders' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders', { headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/orders', headers={"x-session-id":""}, timeout=30) data = res.json() ``` ```json { "orders": [] } ``` --- Source: https://docs.wagyu.xyz/api-reference/list-session-orders · Built from the live Wagyu API on 2026-11-04. # Read an order review > Read an order review with an owner session or destination proof `GET /v2/orders/{id}/review` Read an order review with an owner session or destination proof. **Authentication:** Required: the order’s owner session in `X-Session-ID`, or the destination proof `?verify=` (read-only). ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `review` · object or null · **required** - `orderId` · string · **required** - `ratingSpeed` · number · **required** - `ratingRate` · number · **required** - `ratingExperience` · number · **required** - `comment` · string or null · **required** - `createdAt` · string · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/orders//review' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders//review', { headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/orders//review', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: it needs a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/get-order-review · Built from the live Wagyu API on 2026-11-04. # Review an order > Submit a completed-order review `PUT /v2/orders/{id}/review` Submit a completed-order review. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Request body - `ratingSpeed` · integer (1–5) · **required** — How fast the order settled. 1 is worst, 5 is best. - `ratingRate` · integer (1–5) · **required** — How good the rate felt. 1 is worst, 5 is best. - `ratingExperience` · integer (1–5) · **required** — Overall experience. 1 is worst, 5 is best. - `comment` · string (max 500) or null — Optional free-text feedback. ## Response `200` returns an object with: - `success` · `true` · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X PUT 'https://api-beta.wagyu.xyz/v2/orders//review' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "ratingSpeed": 5, "ratingRate": 4, "ratingExperience": 5, "comment": "Fast and simple." }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders//review', { method: 'PUT', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({ "ratingSpeed": 5, "ratingRate": 4, "ratingExperience": 5, "comment": "Fast and simple." }), }); const data = await res.json(); ``` ```python import requests res = requests.put('https://api-beta.wagyu.xyz/v2/orders//review', headers={"x-session-id":""}, json={ "ratingSpeed": 5, "ratingRate": 4, "ratingExperience": 5, "comment": "Fast and simple." }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/submit-order-review · Built from the live Wagyu API on 2026-11-04. # Submit a refund address > Submit a refund address for an eligible order `PUT /v2/orders/{id}/refund-address` Submit a refund address for an eligible order. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Request body - `refundAddress` · string (max 256) · **required** — Refund destination. Its chain-specific validity is checked by the engine. ## Response `200` returns an object with: - `ok` · `true` · **required** - `refundAddress` · string · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X PUT 'https://api-beta.wagyu.xyz/v2/orders//refund-address' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "refundAddress": "" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders//refund-address', { method: 'PUT', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({ "refundAddress": "" }), }); const data = await res.json(); ``` ```python import requests res = requests.put('https://api-beta.wagyu.xyz/v2/orders//refund-address', headers={"x-session-id":""}, json={ "refundAddress": "" }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/submit-refund-address · Built from the live Wagyu API on 2026-11-04. # Continue on a short deposit > Stop waiting for the rest of a short deposit and continue on what arrived `POST /v2/orders/{id}/deposit-wait/close` Stop waiting for the rest of a short deposit and continue on what arrived. **Authentication:** Required: the order’s owner session in `X-Session-ID`, or [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `ok` · `true` · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/orders//deposit-wait/close' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders//deposit-wait/close', { method: 'POST', headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/orders//deposit-wait/close', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/continue-on-arrived-deposit · Built from the live Wagyu API on 2026-11-04. # Submit a replacement payout address > Submit a replacement payout address when the order asks for one `PUT /v2/orders/{id}/payout-address` Submit a replacement payout address when the order asks for one. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Request body - `payoutAddress` · string (max 256) · **required** — Refund destination. Its chain-specific validity is checked by the engine. ## Response `200` returns an object with: - `ok` · `true` · **required** - `payoutAddress` · string · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X PUT 'https://api-beta.wagyu.xyz/v2/orders//payout-address' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "payoutAddress": "" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/orders//payout-address', { method: 'PUT', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({ "payoutAddress": "" }), }); const data = await res.json(); ``` ```python import requests res = requests.put('https://api-beta.wagyu.xyz/v2/orders//payout-address', headers={"x-session-id":""}, json={ "payoutAddress": "" }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/submit-payout-address · Built from the live Wagyu API on 2026-11-04. # Read your integration > Read your integration profile, fee settings, activity, limits and usage. `GET /v2/integrator/me` Your integration's profile, fee settings, activity, current limits and usage. **Authentication:** Required: a **server** [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. A public-client key gets `403`. This route is not in `openapi.json`. It is documented from Wagyu's key guide; the authentication behaviour below was checked against the live API. ## Response `200` returns `{ integrator, stats, access }`: - `integrator` — your profile and fee settings. - `stats` — activity across all keys of the integration. - `access` — your current limits and usage. Read your own values here instead of assuming the defaults. This `access` example comes from Wagyu's engineering docs; the values are illustrative, not yours: ```json { "limits": { "requestLimitPerMin": 600, "createLimitPerMin": 30, "maxOpenOrders": 40 }, "defaults": { "requestLimitPerMin": 600, "createLimitPerMin": 6, "maxOpenOrders": 5 }, "quoteLimitPerMin": 60, "openOrderWindowMinutes": 30, "openOrders": 3, "keyRequestLimitPerMin": 600, "clientIpForwarding": { "enabled": true, "header": "X-End-User-IP", "limits": { "requestLimitPerMin": 600, "createLimitPerMin": 6, "maxOpenOrders": 5 } }, "attribution": { "windowDays": 30, "totalOrders": 10, "attributedOrders": 8, "distinctIps": 6 } } ``` All applicable limits must allow a request. A zero disables that one limit only. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/integrator/me' \ -H 'x-integrator-key: wg_YOUR_KEY' ``` Without a key, or with an invalid one, the API answers: ```json { "code": "unauthorized", "error": "Authentication required." } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-integrator · Built from the live Wagyu API on 2026-11-04. # List attributed orders > List recent orders attributed to your integration and the status of your fee on each. `GET /v2/integrator/orders` Recent orders attributed to your integration, with the status of your fee on each. **Authentication:** Required: a **server** [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. A public-client key gets `403`. This route is not in `openapi.json`. It is documented from Wagyu's key guide; the authentication behaviour below was checked against the live API. ## Response `200` returns `{ orders }`: recent orders attributed to the integration, across all its keys. Each order carries its fee status: | Fee status | Meaning | | --- | --- | | `none` | No integrator fee applies to this order. | | `projected` | A fee is expected once the order completes. | | `paid` | The fee was sent to your payout address. | | `skipped` | The fee was too small to be worth its own transfer cost. It is not owed. | ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/integrator/orders' \ -H 'x-integrator-key: wg_YOUR_KEY' ``` ```json { "code": "unauthorized", "error": "Authentication required." } ``` --- Source: https://docs.wagyu.xyz/api-reference/list-integrator-orders · Built from the live Wagyu API on 2026-11-04. # Get protocol statistics > Read protocol volume statistics `GET /v2/stats/daily` Read protocol volume statistics. **Authentication:** None. This route is public. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `includeMetadata` | query | `"true"` · `"false"` | No | Opt in to freshness and coverage metadata; omitted by default for older strict clients. | | `days` | query | integer (1–365) | No (default `14`) | How many trailing days of protocol statistics to include, ending today. | ## Response `200` returns an object with: - `metadata` · object - `asOf` · string (date-time) · **required** - `dayBasis` · `"created_at_utc"` · **required** - `currentProducts` · array of `"swap"` · `"bridge"` · `"coinflip"` · **required** - `volumeIncludesLegacy` · boolean · **required** - `orderCountsIncludeLegacy` · `false` · **required** - `legacyAsOf` · string (date-time) or null · **required** - `unvaluedLegacyCompletedOrders` · integer or null · **required** - `stats24h` · object · **required** - `orders` · number · **required** - `completed` · number · **required** - `failed` · number · **required** - `swaps` · number · **required** - `bridge` · number · **required** - `volumeUsd` · number · **required** - `totals` · object · **required** - `orders` · number · **required** - `completed` · number · **required** - `failed` · number · **required** - `swaps` · number · **required** - `bridge` · number · **required** - `volumeUsd` · number · **required** - `daily` · array of object · **required** - `orders` · number · **required** - `completed` · number · **required** - `failed` · number · **required** - `swaps` · number · **required** - `bridge` · number · **required** - `volumeUsd` · number · **required** - `date` · string · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/stats/daily?days=2&includeMetadata=true' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/stats/daily?days=2&includeMetadata=true' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/stats/daily?days=2&includeMetadata=true', timeout=30) data = res.json() ``` ```json { "metadata": { "asOf": "2026-11-04T08:24:47.251Z", "dayBasis": "created_at_utc", "currentProducts": [ "swap", "bridge", "coinflip" ], "volumeIncludesLegacy": true, "orderCountsIncludeLegacy": false, "legacyAsOf": "2026-10-19T15:40:51.844Z", "unvaluedLegacyCompletedOrders": 2044 }, "stats24h": { "orders": 747, "completed": 580, "failed": 4, "swaps": 565, "bridge": 157, "volumeUsd": 34700689.326225616 }, "totals": { "orders": 44207, "completed": 35874, "failed": 221, "swaps": 38423, "bridge": 4496, "volumeUsd": 1329602700.2141101 }, "daily": [ { "orders": 216, "completed": 165, "failed": 2, "swaps": 171, "bridge": 44, "volumeUsd": 8524549.7325113, "date": "2026-11-04" }, { "orders": 749, "completed": 574, "failed": 2, "swaps": 565, "bridge": 148, "volumeUsd": 30252326.080876924, "date": "2026-11-03" }, { "orders": 553, "completed": 359, "failed": 5, "swaps": 459, "bridge": 61, "volumeUsd": 9631538.066724319, "date": "2026-11-02" } ] } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-protocol-stats · Built from the live Wagyu API on 2026-11-04. # Get route execution times > Read 30-day measured execution medians by token and network `GET /v2/swaps/route-stats` Read 30-day measured execution medians by token and network. **Authentication:** None. This route is public. ## Response `200` returns an object with: - `asOf` · string (date-time) · **required** - `windowStart` · string (date-time) · **required** - `windowDays` · `30` · **required** - `cohort` · `"completed_at"` · **required** - `basis` · `"projection_system_seconds"` · **required** — Same systemSeconds as dashboard performance: detected deposit to last recorded workflow step (workflow update when no step end exists). Excludes customer wait before detection; not wallet spendability. - `minimumSamples` · `5` · **required** - `routes` · array of object · **required** - `fromChainId` · integer · **required** - `fromToken` · string · **required** - `toChainId` · integer · **required** - `toToken` · string · **required** - `sampleCount` · integer · **required** - `medianSeconds` · number or null · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/swaps/route-stats' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/swaps/route-stats' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/swaps/route-stats', timeout=30) data = res.json() ``` ```json { "asOf": "2026-11-04T08:22:28.664Z", "windowStart": "2026-10-05T08:22:28.664Z", "windowDays": 30, "cohort": "completed_at", "basis": "projection_system_seconds", "minimumSamples": 5, "routes": [ { "fromChainId": 0, "fromToken": "XMR", "toChainId": 1, "toToken": "0x0000000000000000000000000000000000000000", "sampleCount": 1154, "medianSeconds": 828.5999999999999 }, { "fromChainId": 0, "fromToken": "XMR", "toChainId": 1, "toToken": "0x6b175474e89094c44da98b954eedeac495271d0f", "sampleCount": 215, "medianSeconds": 935.5 }, { "fromChainId": 0, "fromToken": "XMR", "toChainId": 1, "toToken": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "sampleCount": 326, "medianSeconds": 863.45 } ] } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-swap-route-stats · Built from the live Wagyu API on 2026-11-04. # List recent swaps > List recent completed swaps `GET /v2/recent-swaps` List recent completed swaps. **Authentication:** None. This route is public. `orderId` in this list is an opaque row key, stable across polls. It is not the order’s id and opens no order. ## Response `200` returns an array of objects with: - `orderId` · string · **required** — Opaque key for this row, stable across polls. Not the order's id: it opens no order. - `status` · `"completed"` · **required** - `from` · string · **required** - `fromChainId` · integer - `fromAmount` · string - `fromTokenDecimals` · integer - `to` · string · **required** - `toChainId` · integer - `toAmount` · string - `toTokenDecimals` · integer - `createdAt` · string or null · **required** - `completedAt` · string or null · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/recent-swaps' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/recent-swaps' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/recent-swaps', timeout=30) data = res.json() ``` ```json [ { "orderId": "e04d5edad1e06c69", "status": "completed", "from": "XMR", "fromChainId": 0, "fromAmount": "19230000000000", "fromTokenDecimals": 12, "to": "USDT", "toChainId": 728126428, "toAmount": "12186867722", "toTokenDecimals": 6, "createdAt": "2026-11-04T08:17:53.988Z", "completedAt": "2026-11-04T08:24:01.286Z" }, { "orderId": "727efc9c37970943", "status": "completed", "from": "SOL", "fromChainId": 1151111081099710, "fromAmount": "1000000000", "fromTokenDecimals": 9, "to": "XMR", "toChainId": 0, "toAmount": "137103960000", "toTokenDecimals": 12, "createdAt": "2026-11-04T08:14:17.835Z", "completedAt": "2026-11-04T08:16:36.261Z" } ] ``` --- Source: https://docs.wagyu.xyz/api-reference/get-recent-swaps · Built from the live Wagyu API on 2026-11-04. # List recent bridge orders > List recent completed bridge orders `GET /v2/bridges/recent` List recent completed bridge orders. **Authentication:** None. This route is public. `orderId` in this list is an opaque row key, stable across polls. It is not the order’s id and opens no order. ## Response `200` returns an array of objects with: - `orderId` · string · **required** — Opaque key for this row, stable across polls. Not the order's id: it opens no order. - `status` · `"completed"` · **required** - `from` · string · **required** - `fromChainId` · integer - `fromAmount` · string - `fromTokenDecimals` · integer - `to` · string · **required** - `toChainId` · integer - `toAmount` · string - `toTokenDecimals` · integer - `createdAt` · string or null · **required** - `completedAt` · string or null · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/bridges/recent' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/bridges/recent' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/bridges/recent', timeout=30) data = res.json() ``` ```json [ { "orderId": "1e5f160597b55eb7", "status": "completed", "from": "XMR", "to": "XMR1", "createdAt": "2026-11-04T08:17:46.871Z", "completedAt": "2026-11-04T08:23:37.329Z" }, { "orderId": "dbb9a6afcffe895c", "status": "completed", "from": "XMR", "to": "XMR1", "createdAt": "2026-11-04T08:01:52.006Z", "completedAt": "2026-11-04T08:12:08.127Z" } ] ``` --- Source: https://docs.wagyu.xyz/api-reference/get-recent-bridge-orders · Built from the live Wagyu API on 2026-11-04. # List Monero nodes > List recommended monerod endpoints for a self-custody wallet `GET /v2/nodes` List recommended monerod endpoints for a self-custody wallet. **Authentication:** None. This route is public. ## Response `200` returns an object with: - `nodes` · array of string · **required** — monerod endpoints in priority order, as `host:port` or a full URL. No liveness is implied: try them in order and fail over client-side. Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/nodes' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/nodes' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/nodes', timeout=30) data = res.json() ``` ```json { "nodes": [ "node.wagyu.xyz:18089" ] } ``` --- Source: https://docs.wagyu.xyz/api-reference/list-nodes · Built from the live Wagyu API on 2026-11-04. # Get an address’s points > Read an address points balance `GET /v2/points/{address}` Read an address points balance. **Authentication:** None. This route is public. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `address` | path | string | Yes | Address whose points balance to read. | ## Response `200` returns an object with: - `address` · string · **required** - `volumeUsd` · number · **required** - `eligibleOrderVolumeUsd` · number · **required** - `bonusVolumeUsd` · number · **required** - `wagyu` · number · **required** - `rank` · number or null · **required** - `tradeCount` · number · **required** - `lastOrderAt` · string or null · **required** - `formula` · object · **required** - `pointsPerUsd` · number · **required** - `label` · string · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/points/
' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/points/
' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/points/
', timeout=30) data = res.json() ``` _No response is captured for this route: it needs a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/get-points · Built from the live Wagyu API on 2026-11-04. # Get the points leaderboard > List the points leaderboard `GET /v2/points/leaderboard` List the points leaderboard. **Authentication:** None. This route is public. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `limit` | query | integer (1–200) | No (default `25`) | Number of ranked rows to return. | ## Response `200` returns an object with: - `data` · array of object · **required** - `address` · string · **required** - `volumeUsd` · number · **required** - `eligibleOrderVolumeUsd` · number · **required** - `bonusVolumeUsd` · number · **required** - `wagyu` · number · **required** - `tradeCount` · number · **required** - `lastOrderAt` · string or null · **required** - `rank` · number · **required** - `totalVolume` · number · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/points/leaderboard?limit=2' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/points/leaderboard?limit=2' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/points/leaderboard?limit=2', timeout=30) data = res.json() ``` ```json { "data": [ { "address": "0x8e3d5e109837c11ddd373d97c9b3e4d716f1423a", "volumeUsd": 75855101.036915, "eligibleOrderVolumeUsd": 75855101.036915, "bonusVolumeUsd": 0, "wagyu": 758551.01036915, "tradeCount": 511, "lastOrderAt": "2026-11-04T08:00:00.000Z", "rank": 1, "totalVolume": 75855101.036915 }, { "address": "0x92fca16b23ec24dd7206552be0286eb06ca83cd2", "volumeUsd": 68668745.88814, "eligibleOrderVolumeUsd": 68668745.88814, "bonusVolumeUsd": 0, "wagyu": 686687.4588814, "tradeCount": 392, "lastOrderAt": "2026-11-04T07:00:00.000Z", "rank": 2, "totalVolume": 68668745.88814 } ] } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-points-leaderboard · Built from the live Wagyu API on 2026-11-04. # Place a coinflip bet > Place one bet at an open coinflip table; answers with the table as it stands after the flip `POST /v2/coinflips/{id}/bets` Place one bet at an open coinflip table; answers with the table as it stands after the flip. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Request body - `round` · integer · **required** — The open round this bet answers. A stale round is rejected with 409, never applied later. - `side` · `"cow"` · `"milk"` · **required** — Which band wins. Selects the winning range only; never feeds the HMAC. - `stakeAtomic` · string (atomic integer) · **required** — The bet, in the asset's smallest unit. Proposed, not binding — a refused bet advances the round and names why. - `clientSeed` · string (max 64, pattern `^[\x20-\x7E]*$`) or null — Your half of the provably-fair seed; SHA256(serverSeed) was committed before you chose it. ## Response `200` returns an object with: - `verdict` · `"settled"` · `"refused"` · `"closing"` · `"closed"` · `"reopened"` · **required** - `order` · object · **required** - `orderId` · string · **required** - `product` · `"coinflip"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `depositAddress` · string · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - _Nested fields: see `openapi.json`._ - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - _Nested fields: see `openapi.json`._ - `rewards` · object - _Nested fields: see `openapi.json`._ - `maxPayoutUsd` · number - `destination` · string - `depositAddressForms` · array of object - _Nested fields: see `openapi.json`._ - `coinflip` · object or null - _Nested fields: see `openapi.json`._ Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/coinflips//bets' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "round": 1, "side": "cow", "stakeAtomic": "" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips//bets', { method: 'POST', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({ "round": 1, "side": "cow", "stakeAtomic": "" }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/coinflips//bets', headers={"x-session-id":""}, json={ "round": 1, "side": "cow", "stakeAtomic": "" }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/place-coinflip-bet · Built from the live Wagyu API on 2026-11-04. # Cash out a coinflip table > Close an open coinflip table and pay its balance to the destination `POST /v2/coinflips/{id}/cashout` Close an open coinflip table and pay its balance to the destination. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Request body - `round` · integer · **required** — The open round, so a cash-out cannot race a bet you just placed. - `toAddress` · string — Where the balance is paid. Required when the table was opened without a payout address. ## Response `200` returns an object with: - `verdict` · `"settled"` · `"refused"` · `"closing"` · `"closed"` · `"reopened"` · **required** - `order` · object · **required** - `orderId` · string · **required** - `product` · `"coinflip"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `depositAddress` · string · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - _Nested fields: see `openapi.json`._ - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - _Nested fields: see `openapi.json`._ - `rewards` · object - _Nested fields: see `openapi.json`._ - `maxPayoutUsd` · number - `destination` · string - `depositAddressForms` · array of object - _Nested fields: see `openapi.json`._ - `coinflip` · object or null - _Nested fields: see `openapi.json`._ Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/coinflips//cashout' \ -H 'x-session-id: ' \ -H 'content-type: application/json' \ -d '{ "round": 1 }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips//cashout', { method: 'POST', headers: {"content-type":"application/json","x-session-id":""}, body: JSON.stringify({ "round": 1 }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/coinflips//cashout', headers={"x-session-id":""}, json={ "round": 1 }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/cash-out-coinflip · Built from the live Wagyu API on 2026-11-04. # Keep a coinflip table open > Tell an open table its player is present, so the idle window does not close it `POST /v2/coinflips/{id}/presence` Tell an open table its player is present, so the idle window does not close it. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `touched` · boolean · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/coinflips//presence' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips//presence', { method: 'POST', headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/coinflips//presence', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/coinflip-presence · Built from the live Wagyu API on 2026-11-04. # Reopen a coinflip table > Reopen a table the idle window closed while it still held a balance and before any cash-out `POST /v2/coinflips/{id}/reopen` Reopen a table the idle window closed while it still held a balance and before any cash-out. **Authentication:** Required: the order’s owner session in `X-Session-ID`. ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `verdict` · `"settled"` · `"refused"` · `"closing"` · `"closed"` · `"reopened"` · **required** - `order` · object · **required** - `orderId` · string · **required** - `product` · `"coinflip"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `depositAddress` · string · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - _Nested fields: see `openapi.json`._ - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - _Nested fields: see `openapi.json`._ - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - _Nested fields: see `openapi.json`._ - `rewards` · object - _Nested fields: see `openapi.json`._ - `maxPayoutUsd` · number - `destination` · string - `depositAddressForms` · array of object - _Nested fields: see `openapi.json`._ - `coinflip` · object or null - _Nested fields: see `openapi.json`._ Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/coinflips//reopen' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips//reopen', { method: 'POST', headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/coinflips//reopen', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/reopen-coinflip · Built from the live Wagyu API on 2026-11-04. # List recent coinflip rounds > List recent played table rounds without owner or fairness data `GET /v2/coinflips/recent` List recent played table rounds without owner or fairness data. **Authentication:** None. This route is public. ## Response `200` returns an array of objects with: - `id` · string · **required** - `round` · integer · **required** - `assetSymbol` · string · **required** - `atomicDecimals` · integer (0–36) · **required** - `stakeAtomic` · string (atomic integer) · **required** — Positive base-10 integer in the asset’s atomic unit. - `side` · `"cow"` · `"milk"` · **required** - `won` · boolean · **required** - `playedAt` · string · **required** Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/coinflips/recent' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips/recent' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/coinflips/recent', timeout=30) data = res.json() ``` ```json [ { "id": "468325", "round": 4, "assetSymbol": "ETH", "atomicDecimals": 18, "stakeAtomic": "8770301491165766", "side": "milk", "won": false, "playedAt": "2026-11-03T20:21:00.236Z" }, { "id": "468321", "round": 3, "assetSymbol": "ETH", "atomicDecimals": 18, "stakeAtomic": "4385150745582883", "side": "milk", "won": true, "playedAt": "2026-11-03T20:20:52.736Z" } ] ``` --- Source: https://docs.wagyu.xyz/api-reference/get-recent-coinflip-rounds · Built from the live Wagyu API on 2026-11-04. # Get coinflip terms > Read which coinflip pool assets are stakeable right now, with their minimum, fee and odds `GET /v2/coinflips/terms` Read which coinflip pool assets are stakeable right now, with their minimum, fee and odds. **Authentication:** None. This route is public. ## Response `200` returns an object with: - `assets` · array of object · **required** - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `symbol` · string · **required** - `chainId` · integer · **required** — Non-negative integer chain identifier. - `decimals` · integer (0–36) · **required** - `available` · boolean · **required** - `minAtomic` · string (atomic integer) or null · **required** — Positive base-10 integer in the asset’s atomic unit. - `feePercent` · number or null · **required** - `edgePercent` · number or null · **required** - `winChancePercent` · number or null · **required** - `maxPayoutUsd` · number Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/coinflips/terms' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips/terms' ); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/coinflips/terms', timeout=30) data = res.json() ``` ```json { "assets": [ { "asset": "xmr", "symbol": "XMR", "chainId": 0, "decimals": 12, "available": true, "minAtomic": "15626709171", "feePercent": 0, "edgePercent": 2, "winChancePercent": 49, "maxPayoutUsd": 1000000 }, { "asset": "btc", "symbol": "BTC", "chainId": 20000000000001, "decimals": 8, "available": true, "minAtomic": "12755", "feePercent": 0, "edgePercent": 2, "winChancePercent": 49, "maxPayoutUsd": 1000000 } ] } ``` --- Source: https://docs.wagyu.xyz/api-reference/get-coinflip-terms · Built from the live Wagyu API on 2026-11-04. # Create a coinflip table > Create a coinflip-table order: stake one asset, flip after confirmation, a win pays the same asset (supply your own sessionId only with a valid integrator key) `POST /v2/coinflips` Create a coinflip-table order: stake one asset, flip after confirmation, a win pays the same asset (supply your own sessionId only with a valid integrator key). **Authentication:** None required. Optional: [integrator key](https://docs.wagyu.xyz/authentication.md) in `X-Integrator-Key`. ## Request body - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `toAddress` · string — Same-chain native address the balance is paid to. Optional at open: name it at cash-out instead. - `sessionId` · string (pattern `^[0-9a-f-]{16,64}$`) — Optional session credential for an integrator to group its own orders. Requires a valid integrator API key. - `refundAddress` · string (max 256) — Refund destination. Its chain-specific validity is checked by the engine. ## Response `200` returns an object with: - `orderId` · string · **required** - `sessionId` · string · **required** - `product` · `"coinflip"` · **required** - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `maxPayoutUsd` · number - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - **kind = "awaiting_deposit"** - **kind = "processing"** - **kind = "action_required"** - **kind = "paused"** - **kind = "completed"** - **kind = "refunded"** - **kind = "expired"** - **kind = "failed"** - `destination` · string - `depositAddress` · string · **required** - `depositAddressForms` · array of object - `kind` · `"shielded"` · `"transparent"` · **required** - `address` · string · **required** - `expiresAt` · string · **required** - `minAtomic` · string · **required** — Smallest accepted stake, in atomic units of the asset. - `feePercent` · number · **required** — Intake fee percent skimmed from the stake before the flip. - `edgePercent` · number · **required** — House band percent; the win chance per side is (100 − edge) / 2. Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl -X POST 'https://api-beta.wagyu.xyz/v2/coinflips' \ -H 'content-type: application/json' \ -d '{ "asset": "xmr", "toAddress": "" }' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips', { method: 'POST', headers: {"content-type":"application/json"}, body: JSON.stringify({ "asset": "xmr", "toAddress": "" }), }); const data = await res.json(); ``` ```python import requests res = requests.post('https://api-beta.wagyu.xyz/v2/coinflips', json={ "asset": "xmr", "toAddress": "" }, timeout=30) data = res.json() ``` _No response is captured for this route: calling it creates or changes a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/create-coinflip-order · Built from the live Wagyu API on 2026-11-04. # Read a coinflip table > Read a coinflip-table order with an owner session or destination proof `GET /v2/coinflips/{id}` Read a coinflip-table order with an owner session or destination proof. **Authentication:** Required: the order’s owner session in `X-Session-ID`, or the destination proof `?verify=` (read-only). ## Parameters | Name | In | Type | Required | Description | | --- | --- | --- | --- | --- | | `id` | path | string (pattern `^[A-Za-z0-9:_-]{1,128}$`) | Yes | Public order identifier. Not a credential: every read still requires the owner session or the destination proof. | ## Response `200` returns an object with: - `orderId` · string · **required** - `product` · `"coinflip"` · **required** - `status` · `"awaiting_deposit"` · `"awaiting_xmr1"` · `"awaiting_trx1"` · `"awaiting_zec1"` · `"processing"` · `"completed"` · `"failed"` · `"expired"` · `"refunded"` · `"needs_review"` · **required** - `asset` · `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` · **required** — Coinflip-table pool asset key, never a display symbol. - `direction` · `"deposit"` · `"withdraw"` — deposit mints the wrapped asset from a native-coin deposit; withdraw returns the native coin against the wrapped asset. - `chainId` · integer or null · **required** — Non-negative integer chain identifier. - `toAddress` · string or null · **required** - `depositAddress` · string · **required** - `createdAt` · string or null · **required** - `updatedAt` · string or null · **required** - `fromChainId` · integer or null — Non-negative integer chain identifier. - `depositChainId` · integer or null — Non-negative integer chain identifier. - `fromToken` · string - `depositToken` · string - `fromTokenSymbol` · string - `depositTokenSymbol` · string - `fromTokenDecimals` · integer (0–36) - `depositTokenDecimals` · integer (0–36) - `fromAmount` · string - `depositAmount` · string - `toChainId` · integer or null — Non-negative integer chain identifier. - `toToken` · string - `toTokenSymbol` · string - `toTokenDecimals` · integer (0–36) - `expectedOutput` · string - `depositTxHash` · string or null - `receivingTxHash` · string or null - `sessionId` · string or null - `refundAddress` · string or null - `refundRequestedAt` · string or null - `expiresAt` · string - `amountUsd` · number - `bonusStage` · `"none"` · `"coinflip"` - `coinflipRequested` · boolean - `fundingProvider` · `"privy"` or null - `integratorFeeUsd` · number or null - `customerState` · one of the variants below · **required** — Authoritative customer display/action state. Clients must not infer lifecycle from status or resource presence. - **kind = "awaiting_deposit"** - **kind = "processing"** - **kind = "action_required"** - **kind = "paused"** - **kind = "completed"** - **kind = "refunded"** - **kind = "expired"** - **kind = "failed"** - `confirmations` · number - `requiredConfirmations` · number - `depositObserved` · boolean - `errorMessage` · string or null · **required** - `actualOutput` · string — What the customer received, in atomic units of `deliveredToken` when present, otherwise of `toToken`. Only on completed orders. - `deliveredToken` · object — Present only when the order completed in a different asset than `toToken`; `actualOutput` is then denominated in this token. - `chainId` · integer · **required** — Non-negative integer chain identifier. - `token` · string · **required** - `symbol` · string · **required** - `decimals` · integer (0–36) · **required** - `coinflipLost` · boolean · **required** - `hasReview` · boolean · **required** - `refundRecovery` · object or null - `kind` · `"wrong_chain"` · `"source"` · `"table_deposit"` · **required** - `phase` · `"address_required"` · `"requested"` · `"in_progress"` · **required** - `chainId` · integer · **required** — Non-negative integer chain identifier. - `asset` · object · **required** - _Nested fields: see `openapi.json`._ - `amountAtomic` · string · **required** - `requestedAt` · string or null · **required** - `suggestedAddress` · string — An address the order already has on file for this chain (for table_deposit, the table's payout address), offered as the prefill while phase is address_required. An offer only: nothing is sent to it until it is submitted. - `destination` · object — Where the refund goes once that is decided (phase requested or in_progress). source is customer when someone submitted the address, sender when the refund returns to the wallet the deposit came from without anyone having to submit one. - _Nested fields: see `openapi.json`._ - `rewards` · object - `status` · `"pending"` · `"earned"` · `"not_eligible"` · **required** - `wagyuEarned` · number · **required** - `wagyuBonusEarned` · number · **required** - `wagyuCompensation` · number - `wagyuTotalEarned` · number · **required** - `policyKey` · string or null · **required** - `maxPayoutUsd` · number - `destination` · string - `depositAddressForms` · array of object - `kind` · `"shielded"` · `"transparent"` · **required** - `address` · string · **required** - `coinflip` · object or null - `eligible` · boolean · **required** - `accepted` · boolean or null · **required** - `seedHash` · string · **required** - `clientSeed` · string · **required** - `assetSymbol` · string - `assetKey` · `"xmr"` · `"trx"` · `"zec"` or `"xmr"` · `"btc"` · `"sol"` · `"eth"` · `"zec"` — Asset a coinflip was staked in: a table pool asset or a bridge asset. - `result` · number - `won` · boolean - `serverSeed` · string - `resolvedAt` · string - `side` · `"cow"` · `"milk"` or null - `currentRound` · number - `currentMultiplier` · number - `finalMultiplier` · number or null - `finalWon` · boolean or null - `rounds` · array of object - _Nested fields: see `openapi.json`._ - `policy` · object - _Nested fields: see `openapi.json`._ - `decisionDeadline` · string - `mode` · `"session"` - `balanceAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `creditedInAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `wageredAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `minBetAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `maxBetAtomic` · string (pattern `^0*[0-9]+$`) — Non-negative base-10 integer in the asset’s atomic unit. - `wagyuPoints` · number - `refusal` · `"not_a_positive_amount"` · `"above_balance"` · `"below_minimum"` · `"below_payout_minimum"` · `"above_exposure_cap"` · `"limits_unavailable"` - `pendingTopUp` · object - _Nested fields: see `openapi.json`._ Errors use the [standard error envelope](https://docs.wagyu.xyz/actions-and-retries.md#the-error-envelope): branch on `code`, never on the message. ## Example ```bash curl 'https://api-beta.wagyu.xyz/v2/coinflips/' \ -H 'x-session-id: ' ``` ```javascript const res = await fetch('https://api-beta.wagyu.xyz/v2/coinflips/', { headers: {"x-session-id":""}, }); const data = await res.json(); ``` ```python import requests res = requests.get('https://api-beta.wagyu.xyz/v2/coinflips/', headers={"x-session-id":""}, timeout=30) data = res.json() ``` _No response is captured for this route: it needs a real order. The response fields above come from the live contract._ --- Source: https://docs.wagyu.xyz/api-reference/get-coinflip-order · Built from the live Wagyu API on 2026-11-04.