Fees and reserve an XRPL transaction plan will cost, and whether an account can afford it.
tx_cost_planFees and reserve an XRPL transaction plan will cost, and whether an account can afford it. Use when: Before executing a set of XRPL transactions (trust lines, offers, escrows, checks, AMM deposit or create, payments, account deletion): how much XRP goes to fees and how much gets locked as reserve. Pass address to check whether that account's free balance covers it. Price: 0.002 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tx_cost_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | ||
| offers | No | ||
| address | No | ||
| escrows | No | ||
| payments | No | ||
| amm_create | No | ||
| trust_lines | No | ||
| amm_deposits | No | ||
| account_delete | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | Yes | ||
| plan | Yes | ||
| account | No | ||
| network | Yes | ||
| product | Yes | ||
| reserve | Yes | ||
| data_as_of | Yes | ||
| disclaimer | Yes | ||
| assumptions | No | ||
| transactions | Yes | ||
| source_ledger | No | ||
| total_recommended_drops | Yes |