Get DEX Quote
get_dex_quoteGet a live XRP to RLUSD conversion quote via the XRPL DEX.
Instructions
Get a live XRP to RLUSD conversion quote via the XRPL DEX.
Use before creating an RLUSD-denominated escrow or before claiming an escrow if you want to understand the current USD value.
Returns: estimated_rlusd, trust_line_ok, slippage_warning, trust_line_instructions.
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": {
"xrp_amount": "<xrp_amount>",
"worker_address": "<worker_address>"
},
"name": "get_dex_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xrp_amount | Yes | Amount of XRP to get a conversion quote for. | |
| worker_address | Yes | Your XRPL wallet address (r...). Also used to check whether your RLUSD trustline is active. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||