Wagyu developer docs
Build private swaps into Monero
One public HTTP API to quote, create and track cross-chain swaps into and out of XMR, bridge XMR to Hyperliquid as HXMR, and hand the whole flow to an AI agent. No key needed to start.
Quote 0.01 BTC → XMR. Try it now: no key, no account.
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"}'11chains in the catalog
16,572tokens you can send
$1.52Bswapped, all time
5,432orders, all time
Live from the API, read when this page was built (24 Nov 2026, 15:11 UTC).
#Start here
QuickstartQuote, create and track a swap in four calls.API keys and feesGet a key in two minutes and earn 0–5% on every order you send.MCP serverGive Claude, Cursor or any MCP client a swap tool.Bridge XMR to HXMRMove XMR to Hyperliquid as HXMR and back.Chains and tokensEvery chain, chain id, minimum and token value, live.API referenceEvery route, generated from the live contract.
#How a swap works
- Pick the two assets. Each asset is a
chainIdplus a token value from the catalog (Chains and tokens). - Quote.
POST /v2/swaps/quotereturns what the user would receive. It is an estimate, not a deposit instruction. - Create the order.
POST /v2/swapsreturns a deposit address, the exact amount to send, a deadline, anorderIdand a privatesessionId. - Track it. Poll
GET /v2/swaps/{id}with the session, or listen on a WebSocket, until the order iscompleted,refunded,failedorexpired.
The user sends funds from their own wallet. Nothing moves until that deposit arrives. The quickstart 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. - Show the funding instruction, not the quote. After creating an order, display its
depositAddress,depositAmountandexpiresAtexactly as returned. - Never retry order creation automatically. There is no idempotency key: a second
POST /v2/swapsafter a timeout can create a second order. - Keep the
sessionIdprivate. It is the only credential that can read or act on an order. Send it in theX-Session-IDheader, never in a URL. - Drive your screen from
customerState. It says what the user sees and may do next.statusis the coarse outcome. See Order lifecycle.
#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, also mirrored at /openapi.json |
| AsyncAPI 3.0 (WebSockets) | /v2/asyncapi, also at /asyncapi.json |
| MCP server for agents | https://mcp.wagyu.xyz (guide) |
| Get an API key | wagyu.xyz/api, self-serve (guide) |
| Support | t.me/wagyu_support |