Skip to main content

Wagyu API

Base URL: https://api.wagyu.xyz

Services

ServiceDescriptionAuthentication
Swap APICross-chain swaps (XMR ↔ any token)Public (API key optional)
Bridge APIDirect XMR ↔ XMR1 conversionPublic

Public Rates Feed

  • Endpoint: GET https://api.wagyu.xyz/rates.xml
  • Format: XML
  • Source: Wagyu backend quote simulation (not third-party comparison feeds)

Authentication

Both APIs are public and do not require authentication for basic usage.

API keys are only needed if you want to collect integrator fees on swaps made through your integration.

# Without API key (public)
curl -X POST https://api.wagyu.xyz/v1/quote \
-H "Content-Type: application/json" \
-d '{ ... }'

# With API key (to collect fees)
curl -X POST https://api.wagyu.xyz/v1/quote \
-H "Content-Type: application/json" \
-H "X-API-KEY: wg_your_api_key_here" \
-d '{ ... }'

To obtain an API key for fee collection:

  1. Visit wagyu.xyz/api
  2. Connect your wallet
  3. Create a new API key
  4. Configure your fee settings

Integrator Fees

When creating an API key, you can configure a fee percentage (0-5%) that will be collected on every swap made with your key.

SettingDescription
fee_percentYour fee as a percentage (0-5%)
fee_addressEVM address to receive fees
fee_address_solSolana address to receive fees
fee_address_btcBitcoin address to receive fees (optional)

Fee Collection:

  • Fees are automatically deducted from user deposits
  • Collected in the deposited token (native or ERC20/SPL)
  • Sent directly to your configured address
  • Tracked in your dashboard with full analytics

Rate Limits

Request TypeLimit
Order creation5/min
Quotes60/min
All other endpoints50/min

Higher limits available on request.

Error Handling

All errors return a JSON object:

{
"error": "Description of the error"
}
CodeDescription
400Invalid request parameters
401Missing or invalid API key
404Order not found
429Rate limit exceeded
500Internal server error

Minimums

RouteMinimum
EVM → Any$20
Solana → Any$20
Bitcoin → Any$40
XMR → Any$25
Any → XMR$25