toXMR API
Quote, create and track swaps to and from Monero with plain HTTP and JSON. There is no account and no API key, and the same 764 coins as the website are available.
Quick start
Get a live quote for 0.01 BTC to XMR:
curl "https://toxmr.com/api/v1/quote?from=btc&to=xmr&amount=0.01" Create the swap with the Monero address that should receive the coins:
curl -X POST https://toxmr.com/api/v1/swaps \
-H "Content-Type: application/json" \
-d '{"from":"btc","to":"xmr","amount":"0.01","address":"YOUR_XMR_ADDRESS"}' The reply holds a one-time deposit address. Send exactly deposit.amount BTC to deposit.address, then follow the swap with its ID:
curl https://toxmr.com/api/v1/swaps/SWAP_ID
The basics
- Base URL:
https://toxmr.com/api/v1 - Requests and replies are JSON. Send POST bodies with
Content-Type: application/json. - Every reply has
"ok": trueorfalse. A failed call also haserror, a short code, andmessage, a sentence you can show to a person. - Coins are named by ticker from
/coins, such asbtc,usdttrc20orxmr. Every swap has XMR on one side. - Amounts are decimal numbers. Send them as strings, like
"0.01", to keep every digit. Times are ISO 8601 in UTC. - Rates follow the market until your deposit is converted. Fees are already in the estimate, so there is no separate charge.
- Any website can call the API from the browser. No cookies are used.
Limits
| Endpoint | Per IP address |
|---|---|
GET /coins | 60 per minute |
GET /quote | 60 per minute |
GET /validate | 60 per minute |
POST /swaps | 12 per 10 minutes, shared with the swap form |
GET /swaps/{id} | 120 per minute |
Over the limit you get status 429 with a Retry-After header. If you need more, write to us through the contact form.
List coins
GET /coins returns every coin with its network, whether it can be swapped to XMR or bought with XMR, and whether its addresses use a memo or destination tag. The list changes when coins are added or removed, so read it again every few hours instead of hard-coding it.
{
"ok": true,
"counts": {
"toXmr": 764,
"fromXmr": 766
},
"xmr": {
"ticker": "xmr",
"symbol": "XMR",
"name": "Monero",
"label": "XMR",
"network": "Monero",
"contract": null,
"memo": null
},
"coins": [
{
"ticker": "usdttrc20",
"symbol": "USDT",
"name": "Tether (TRC20)",
"label": "USDT (TRC20)",
"network": "Tron",
"contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
"memo": null,
"toXmr": true,
"fromXmr": true,
"pages": {
"toXmr": "https://toxmr.com/usdttrc20-to-xmr",
"fromXmr": "https://toxmr.com/xmr-to-usdttrc20"
}
}
]
} Only one coin is shown here; the real list has all of them.
Get a quote
GET /quote?from=btc&to=xmr&amount=0.01
| Parameter | Meaning |
|---|---|
from | Ticker of the coin you send. Required. |
to | Ticker of the coin you get. Required. |
amount | Amount you send. Optional; without it a typical amount is quoted. |
{
"ok": true,
"from": "btc",
"to": "xmr",
"amount": 0.01,
"estimate": 1.13194,
"rate": 113.194,
"min": 0.00018461,
"max": null,
"eta": "10 to 60 minutes",
"rateType": "floating",
"feesIncluded": true,
"quotedAt": "2026-11-26T09:30:00Z"
} estimate is what you get for amount right now. min and max are the limits for this pair; max is null when there is none. An amount outside them returns status 422 with error: "amount_out_of_range" and the limits filled in.
Check an address
GET /validate?coin=xmr&address=... tells you whether an address is valid for that coin and network before you create a swap.
{ "ok": true, "coin": "xmr", "valid": false, "message": "That is not a valid XMR address." }
Create a swap
POST /swaps with a JSON body:
| Field | Meaning |
|---|---|
from, to | Tickers, one of them xmr. Required. |
amount | Amount of from you will send. Required. |
address | Address that receives the to coin. Required. |
extraId | Memo or destination tag for that address, if it needs one. |
noExtraId | true when the coin can take a memo but this address does not use one. |
refundAddress | Optional address on the from coin. If the swap cannot finish, the coins go back here without a support ticket. |
refundExtraId | Memo or tag for the refund address, if it needs one. |
A new swap returns status 201:
{
"ok": true,
"id": "a1b2c3d4e5f607",
"status": "waiting",
"from": "btc",
"to": "xmr",
"deposit": {
"coin": "btc",
"address": "bc1q-example-deposit-address",
"extraId": null,
"extraIdName": null,
"amount": 0.01
},
"payout": {
"coin": "xmr",
"address": "YOUR_XMR_ADDRESS",
"extraId": null,
"estimate": 1.13194
},
"refundAddress": null,
"rateType": "floating",
"statusUrl": "https://toxmr.com/tx/a1b2c3d4e5f607",
"api": "https://toxmr.com/api/v1/swaps/a1b2c3d4e5f607"
} - Send exactly
deposit.amounttodeposit.address, on the network of thefromcoin. - If
deposit.extraIdis set, the deposit must carry it as its memo or tag, or the coins cannot be matched to the swap. - Keep the
id. It is the only way to find the swap again; there is no account.statusUrlis a page you can give to a person. - Invalid fields return status 422 with an
errorsobject that names each field and what is wrong with it.
Follow a swap
GET /swaps/{id} returns the current state. Polling every 30 to 60 seconds is plenty, and you can stop once final is true.
{
"ok": true,
"id": "a1b2c3d4e5f607",
"status": "exchanging",
"statusText": "Exchanging",
"final": false,
"from": "btc",
"to": "xmr",
"amountSend": 0.01,
"amountSendFinal": true,
"amountReceive": 1.13,
"amountReceiveFinal": false,
"deposit": { "address": "bc1q-example-deposit-address", "extraId": null, "hash": "...", "explorer": "https://..." },
"payout": { "address": "YOUR_XMR_ADDRESS", "extraId": null, "hash": null, "explorer": null },
"refundAddress": null,
"createdAt": "2026-11-26T09:31:02Z",
"updatedAt": "2026-11-26T09:44:10Z",
"depositReceivedAt": "2026-11-26T09:42:55Z",
"validUntil": null,
"statusUrl": "https://toxmr.com/tx/a1b2c3d4e5f607"
} | status | What it means | Final |
|---|---|---|
new | Waiting for your deposit | No |
waiting | Waiting for your deposit | No |
confirming | Deposit received, confirming | No |
exchanging | Exchanging | No |
sending | Sending your coins | No |
finished | Done | Yes |
failed | Failed | Yes |
refunded | Refunded | Yes |
verifying | On hold | No |
expired | Expired | Yes |
verifying means the deposit was flagged by the automatic screening described in the AML policy. Send the swap ID through the contact form and we will say what is needed. amountReceiveFinal turns true when the payout amount is known exactly.
Errors
| Status | error | When |
|---|---|---|
| 400 | missing_pair, invalid_amount, missing_input, invalid_json | A parameter is missing or malformed |
| 404 | unknown_pair, not_found | The pair or the swap does not exist |
| 405 | method_not_allowed | Wrong HTTP method for the endpoint |
| 409 | pair_unavailable | The pair is paused for now |
| 422 | amount_out_of_range, invalid_input | The amount is outside the limits, or a field of a new swap is wrong |
| 429 | rate_limited | Too many requests; wait for Retry-After seconds |
| 502 | quote_unavailable, check_unavailable, swap_failed, status_unavailable | The exchange did not answer; try again shortly |
Memos and destination tags
Some coins, such as XRP, XLM and TON, send to an address plus a memo or destination tag. In /coins these coins have a memo object with its name. When you buy such a coin with XMR and the address belongs to an exchange account, pass the memo the exchange gave you as extraId. A personal wallet usually needs none; then set noExtraId: true so the swap is not refused for a missing memo.
Connect an AI assistant (MCP)
toXMR also runs an MCP server, the standard way for AI assistants to use outside tools. An assistant connected to it can find coins, quote a swap, check an address, create the swap and follow it, with the same checks and limits as this API. There is no key or sign-in.
- Server URL:
https://toxmr.com/mcp(Streamable HTTP) - Claude: open Settings, then Connectors, choose Add custom connector and paste the URL.
- Claude Code:
claude mcp add --transport http toxmr https://toxmr.com/mcp - Cursor and other clients that read an
mcpServersfile:
{
"mcpServers": {
"toxmr": { "url": "https://toxmr.com/mcp" }
}
} | Tool | What it does |
|---|---|
list_coins | Finds coins by ticker, name or network, such as "usdt" or "solana" |
get_quote | Live estimate, minimum and usual time |
validate_address | Checks an address for a coin and network |
create_swap | Creates a swap and returns its deposit address, amount and any memo |
get_swap_status | Status, amounts and transaction hashes |
The server never moves coins. create_swap only returns a deposit address; the person sends the coins from their own wallet when they decide to.
For AI assistants and agents
- OpenAPI description of every endpoint, for tools and agents.
- llms.txt with a short summary of toXMR, and llms-full.txt with the details.
- An assistant should show the person the deposit address, amount and any memo before they send anything, and should never send funds without their go-ahead.
Terms
Swaps made through the API follow the same rules as swaps on the website, including the Terms of Service, the AML policy and the refund policy. The API keeps nothing about you beyond what a swap on the website does; the Privacy Policy explains what that is. Traffic that harms the service may be blocked.