Payment paths
xrpl_pathsMulti-hop payment paths and their source cost. When to use: Before a cross-currency or multi-hop payment: to see whether a route exists and how much the source would spend to deliver the amount. A call can take up to about 25 seconds and paths may be non-optimal. Prefer another tool: To check whether a direct payment can succeed (use /v1/xrpl/payment-readiness), or for the single-hop cost of a trade on one pair (use /v1/xrpl/slippage, which compares the order book and the AMM). Example: xrpl_paths {"source":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B","destination":"rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq","asset":"XRP","amount":"1"} Paid: 0.0726 USDC or 0.0605 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.05 EUR-denominated units (approx 20 calls per bundle) or 0.06 USD-denominated units (approx 13 calls per bundle).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"destination": "<destination>",
"asset": "<asset>",
"amount": "<amount>"
},
"name": "xrpl_paths"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset delivered: `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. | |
| amount | Yes | Positive decimal amount of asset the destination receives | |
| source | Yes | Sending account: valid classic XRPL address (r..., checksum verified) | |
| send_max | No | Most the source may spend, in send_max_asset; not with source_assets | |
| destination | Yes | Receiving account: valid classic XRPL address | |
| source_assets | No | Comma-separated assets the source may spend (1 to 4); not with send_max. Each asset: `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. | |
| send_max_asset | No | Asset of send_max; give it with send_max. `XRP`, or `CODE.issuer`: `CODE` is a 3-character standard code or 40 hexadecimal digits, and `issuer` is a classic XRPL address. Standard codes are case-sensitive: `usd` and `USD` are different tokens, so send the exact code. A standard code uses letters, digits or `?!@#$%^&*<>(){}[]|` and is never `XRP`; percent-encode the symbols in a URL (for example `%3F` for `?`). A 40-hex code is read in any case, and the 40-hex form of a standard code means that code. |