Real cost of moving value between two XRPL assets at a given size.
corridor_quoteReal cost of moving value between two XRPL assets at a given size. Use when: You need to know how much arrives (or how much to send) when paying across XRPL assets: effective rate versus mid, slippage at size, issuer transfer fee, AMM fee, network fee and the route taken. Price: 0.005 RLUSD per call, or the equivalent in XRP, paid on the XRP Ledger with x402 (the first call returns the payment requirements).
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": {
"send": "<send>",
"receive": "<receive>",
"amount": "<amount>"
},
"name": "corridor_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| send | Yes | ||
| side | No | ||
| amount | Yes | ||
| receive | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | No | ||
| legs | No | ||
| path | No | ||
| send | Yes | ||
| side | Yes | ||
| filled | Yes | ||
| network | Yes | ||
| product | Yes | ||
| receive | Yes | ||
| mid_rate | No | ||
| warnings | Yes | ||
| data_as_of | Yes | ||
| disclaimer | Yes | ||
| amm_fee_bps | No | ||
| limitations | No | ||
| slippage_bps | No | ||
| source_ledger | No | ||
| effective_rate | Yes | ||
| transfer_fee_bps | No | ||
| network_fee_drops | No |