Verify an x402 payment settlement on Base
verify_x402_settlementVerify an x402 payment receipt by checking the on-chain USDC transfer against expected recipient and amount. Provides a structured verdict on settlement validity.
Instructions
Given a tx hash, expected recipient, and expected USDC amount, returns a structured verdict on whether the on-chain USDC Transfer event actually matches the claimed settlement. Use to independently verify any x402 payment receipt.
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": {
"tx_hash": "<tx_hash>",
"expected_recipient": "<expected_recipient>",
"expected_amount_usdc": "<expected_amount_usdc>"
},
"name": "verify_x402_settlement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | Yes | 32-byte tx hash (0x-prefixed) | |
| expected_recipient | Yes | Expected payTo wallet (0x-prefixed, checksummed) | |
| expected_amount_usdc | Yes | Expected USDC amount, e.g. "0.02" or 0.02 |