x402_challenge_check
Validate an x402 402 challenge (body, PAYMENT-REQUIRED header, accepts[] or /.well-known/x402): scheme, network, atomic amount, payTo checksum, USDC asset, EIP-712 extra.name/version, timeouts; optional expected payTo/network/amount. Paid: $0.02 USDC via x402.
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": {
"challenge": "<challenge>"
},
"name": "x402_challenge_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expect | No | optional {payTo, network, amount|atomic} | |
| challenge | Yes | 402 JSON (object or string) or base64 PAYMENT-REQUIRED header |