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": true or false. A failed call also has error, a short code, and message, a sentence you can show to a person.
  • Coins are named by ticker from /coins, such as btc, usdttrc20 or xmr. 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

EndpointPer IP address
GET /coins60 per minute
GET /quote60 per minute
GET /validate60 per minute
POST /swaps12 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

ParameterMeaning
fromTicker of the coin you send. Required.
toTicker of the coin you get. Required.
amountAmount 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:

FieldMeaning
from, toTickers, one of them xmr. Required.
amountAmount of from you will send. Required.
addressAddress that receives the to coin. Required.
extraIdMemo or destination tag for that address, if it needs one.
noExtraIdtrue when the coin can take a memo but this address does not use one.
refundAddressOptional address on the from coin. If the swap cannot finish, the coins go back here without a support ticket.
refundExtraIdMemo 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.amount to deposit.address, on the network of the from coin.
  • If deposit.extraId is 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. statusUrl is a page you can give to a person.
  • Invalid fields return status 422 with an errors object 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"
}
statusWhat it meansFinal
newWaiting for your depositNo
waitingWaiting for your depositNo
confirmingDeposit received, confirmingNo
exchangingExchangingNo
sendingSending your coinsNo
finishedDoneYes
failedFailedYes
refundedRefundedYes
verifyingOn holdNo
expiredExpiredYes

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

StatuserrorWhen
400missing_pair, invalid_amount, missing_input, invalid_jsonA parameter is missing or malformed
404unknown_pair, not_foundThe pair or the swap does not exist
405method_not_allowedWrong HTTP method for the endpoint
409pair_unavailableThe pair is paused for now
422amount_out_of_range, invalid_inputThe amount is outside the limits, or a field of a new swap is wrong
429rate_limitedToo many requests; wait for Retry-After seconds
502quote_unavailable, check_unavailable, swap_failed, status_unavailableThe 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 mcpServers file:
{
  "mcpServers": {
    "toxmr": { "url": "https://toxmr.com/mcp" }
  }
}
ToolWhat it does
list_coinsFinds coins by ticker, name or network, such as "usdt" or "solana"
get_quoteLive estimate, minimum and usual time
validate_addressChecks an address for a coin and network
create_swapCreates a swap and returns its deposit address, amount and any memo
get_swap_statusStatus, 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.