Solana x402 preflight
solana_x402_preflightCan this payer settle this x402 payment requirement right now? When to use: After an x402 server answered 402 with a Solana exact requirement: to check, before signing, that this payer can settle that exact requirement to that recipient now. Prefer another tool: For a transfer that is not an x402 requirement (use /v1/solana/transfer-readiness), or once the payment has settled (use /v1/solana/payment/verify). Example: solana_x402_preflight {"asset":"2b1kV6DkPAnxd5ixfnxCpjxmKwqjjaYmCZfHsFu24GXo","amount":"1000000","pay_to":"29d2S7vB453rNYFdR5Ycwt7y9haRT5fwVwL9zTmBhfV2","payer":"6vk7icY2FzdMTzMGE4aNRSzovanAmS7xsv9uHwj4YuzY"} Paid: 0.02904 USDC or 0.0242 EURC per call on Solana mainnet, VAT included. With prepaid credits, debit per call: 0.02 EUR-denominated units (approx 50 calls per bundle) or 0.024 USD-denominated units (approx 34 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": "solana_x402_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | Mint of the x402 requirement: the token the payment moves (base58, 32 bytes); `SOL` is not accepted, because an x402 SVM `exact` payment is always a token transfer | |
| payer | Yes | Wallet that would pay: Solana wallet address: a base58 string that decodes to exactly 32 bytes | |
| amount | Yes | Amount the requirement asks for, in the mint's base units (not UI units): a whole number of digits, at most 18446744073709551615 | |
| pay_to | Yes | Wallet the requirement pays (not its token account): Solana wallet address: a base58 string that decodes to exactly 32 bytes |