XRPL x402 preflight
xrpl_x402_preflightCan this payer settle this x402 payment requirement right now? When to use: After an x402 server answered 402 with an XRPL exact requirement: to check, before signing, that this payer can settle that exact requirement to that recipient now. Prefer another tool: For a payment that is not an x402 requirement (use /v1/xrpl/payment-readiness), or once the payment has settled (use /v1/xrpl/payment/verify). Example: xrpl_x402_preflight {"asset":"XRP","amount":"10000000","pay_to":"rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq","payer":"rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"} Paid: 0.04356 USDC or 0.0363 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.03 EUR-denominated units (approx 33 calls per bundle) or 0.036 USD-denominated units (approx 22 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": {
"asset": "<asset>",
"amount": "<amount>",
"pay_to": "<pay_to>",
"payer": "<payer>"
},
"name": "xrpl_x402_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Asset of the x402 requirement: XRP, or the currency code of an issued asset (3 characters, case-sensitive, or 40 hexadecimal characters) whose issuer goes in issuer. Standard codes are case-sensitive: `usd` and `USD` are different tokens. | |
| payer | Yes | Wallet that would pay: valid classic XRPL address (r..., checksum verified) | |
| amount | Yes | Amount the requirement asks for: a whole number of drops for XRP, a positive decimal in token units for an issued asset | |
| issuer | No | Issuer of the asset (extra.issuer of the requirement): a valid classic XRPL address; required unless the asset is XRP | |
| pay_to | Yes | Account the requirement pays: valid classic XRPL address | |
| destination_tag | No | Destination tag the requirement states (extra.destinationTag): an integer from 0 to 4294967295; it is passed to the readiness check |