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.
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 |