Check that an x402 endpoint's 402 challenge is well-formed before paying it
selectarank_preflightValidate an x402 endpoint's 402 challenge before paying, ensuring the payment requirements are well-formed.
Instructions
Check that an x402 endpoint's 402 challenge is well-formed before paying it. Paid x402 endpoint: 0.010000 USDC per call on Base (GET /v1/preflight). With EVM_PRIVATE_KEY set the call is paid automatically; otherwise the 402 payment requirements are returned.
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": {
"url": "<url>"
},
"name": "selectarank_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https URL (port 443, public host) of the x402 endpoint to check |