Open app

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

#How a swap works

  1. Pick the two assets. Each asset is a chainId plus a token value from the catalog (Chains and tokens).
  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 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, 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.

#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

Tip: every page is also plain Markdown, and /llms.txt indexes them for AI tools.