# Avasis x402 Payment Verify (Base USDC)

> Avasis x402 Payment Verify (Base USDC) is a paid API for AI agents from agents.avasis.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-23).

Verifies whether an x402 USDC payment on Base (chain 8453) has settled on-chain, returning payer, payTo, amount, block, confirmations, and finality status.

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/base/payment-verify?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/avasis-x402-payment-verify-base-usdc-737f0b03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NXG6_T_hiUeVSTpJBeJ7h

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability avasis-x402-payment-verify-base-usdc-737f0b03
```

Example prompt: Can you verify whether my x402 USDC payment on Base actually settled? The transaction hash is 0x058bc61d196b9d6ea4cc15315711ef075a0c7e9a3224c19e3deb44eaa4f568ec — I expected it to go to 0x6264191d6dd5427435b5e829077842e130ef1fc8 for $0.02.

## When to prefer this

Use this endpoint when you need authoritative on-chain proof that an x402 USDC payment settled on Base (chain 8453), especially after receiving a PAYMENT-RESPONSE and wanting to verify it independently. Prefer this over trusting a seller's receipt or status page — it reads directly from chain events (AuthorizationUsed + adjacent USDC Transfer). Ideal for agentic payment flows that require settlement confirmation before delivering goods or services.

## Known failure modes

- Transaction hash not found on Base within wait window → 404, not charged
- Invalid tx hash format → 400 bad request
- from + nonce combination not found within lookback blocks → 404, not charged
- Network param set to non-Base chain → validation error
- wait exceeds 25 seconds → capped at max, may still return 404 if unsettled
- Malformed address or nonce hex → input validation error

## How this service works

x402 payment verify on Base (chain 8453, $0.02): tx hash (your PAYMENT-RESPONSE transaction) or from + nonce of the EIP-3009 authorization you signed -> settled yes/no from the chain (AuthorizationUsed + adjacent USDC Transfer): payer, payTo, amount, block, confirmations, safe/finalized, relayer label, fee, matches vs your expected payTo/amount. Phrases: x402 payment verify, did my payment settle, verify usdc payment, settlement proof. GET or POST. Not found -> 404, never charged.

## Output

Returns a JSON object with: settled boolean, verdict string (e.g. SETTLED), payer and payTo addresses, amount in decimal and raw units, block number and age, finality status (safe/finalized), gas fee in ETH and USD, matches object indicating whether payTo and amount matched expectations, plus contextual advice and chain metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "tx": {
       "type": "string",
       "description": "the settle transaction hash (0x + 64 hex): the `transaction` of your x402 PAYMENT-RESPONSE / settle receipt. Or pass from + nonce instead"
      },
      "from": {
       "type": "string",
       "description": "with nonce: the payer address of the EIP-3009 authorization you signed (payload.authorization.from)"
      },
      "wait": {
       "type": "integer",
       "maximum": 25,
       "minimum": 0,
       "description": "seconds to keep looking for the settle before answering (default 5, max 25; 0 = one read). Unknown after that -> 404, not charged"
      },
      "asset": {
       "type": "string",
       "description": "optional token contract (0x + 40 hex; default USDC on Base)"
      },
      "nonce": {
       "type": "string",
       "description": "with from: the 32-byte authorization nonce (payload.authorization.nonce, 0x + 64 hex)"
      },
      "payTo": {
       "type": "string",
       "description": "optional expected recipient (the 402's accepts[].payTo): sets matches.payTo"
      },
      "amount": {
       "type": "string",
       "description": "optional expected amount in atomic units (USDC: 20000 = $0.02, the accepts[].amount you paid) or a decimal with a dot (0.02): sets matches.amount"
      },
      "network": {
       "type": "string",
       "description": "optional; must be base / eip155:8453 (x402 USDC settles on Base)"
      },
      "lookback": {
       "type": "integer",
       "maximum": 150000,
       "minimum": 1000,
       "description": "for from + nonce: blocks to search back (default 50000, about 28 h on Base; max 150000)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "network",
      "found",
      "settled",
      "verdict",
      "headline",
      "matches",
    
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tx": {
   "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "nonce": 1689614,
   "status": "success",
   "eth_usd": 2265.28,
   "fee_eth": "0.00000086555958535",
   "fee_usd": 0.001961,
   "gas_used": 86474,
   "to_known": "USDC (Circle)",
   "l1_fee_eth": "0.00000000081958535"
  },
  "kind": "payment-verify",
  "note": "On-chain facts only (the same rule our own settle reconciler uses): AuthorizationUsed(authorizer, nonce) + its adjacent Transfer = that authorization's payment. A seller's receipt, status page or PAYMENT-RESPONSE is a claim; this is the chain.",
  "rail": "x402-payment-verify-1",
  "asset": {
   "known": "USDC (Circle)",
   "symbol": "USDC",
   "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
  },
  "block": {
   "hash": "0x1805f413f0d4032c819c6b0e5b8b8f485b0524faf2276a4199fb89309d0d1441",
   "age_s": 14133,
   "number": 53352110,
   "timestamp": 1793493567
  },
  "chain": "base",
  "found": true,
  "mined": true,
  "polls": 1,
  "reads": {
   "rpc": "fixture",
   "calls": 8
  },
  "advice": "final: book it",
  "lookup": "tx",
  "method": {
   "name": "transferWithAuthorization",
   "selector": "0xe3ee160e"
  },
  "matches": {
   "all": true,
   "asset": null,
   "payTo": true,
   "amount": true,
   "authorization": null
  },
  "network": "eip155:8453",
  "payment": {
   "asset": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "basis": "the EIP-3009 (AuthorizationUsed + adjacent Transfer) Transfer to payTo",
   "nonce": "0x7a7f161978b5f38c40a4d50fd28021cf0b9d0c10c2c50368059d0340d2b663a6",
   "payer": "0x8ec901f7e2710163387d70950f680f1ea2269d15",
   "amount": "0.002",
   "pay_to": "0x6264191d6dd5427435b5e829077842e130ef1fc8",
   "symbol": "USDC",
   "eip3009": true,
   "decimals": 6,
   "log_index": 55,
   "amount_raw": "2000"
  },
  "settled": true,
  "tx_hash": "0x058bc61d196b9d6ea4cc15315711ef075a0c7e9a3224c19e3deb44eaa4f568ec",
  "verdict": "SETTLED",
  "chain_id": 8453,
  "expected": {
   "from": null,
   "asset": null,
   "nonce": null,
   "payTo": "0x6264191d6dd5427435b5e829077842e130ef1fc8",
   "amount": "0.002",
   "amount_raw": "2000"
  },
  "finality": {
   "note": "Base: safe = the block is in a batch posted to Ethereum; finalized = that Ethereum block is finalized (~15-25 min). Undoing a safe block would need an Ethereum reorg.",
   "safe": true,
   "finalized": true,
   "safe_head": 53358056,
   "confirmations": 5991,
   "finalized_head": 53357536
  },
  "headline": "SETTLED on 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avasis-x402-payment-verify-base-usdc-737f0b03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.avasis.ai](https://www.zero.xyz/host/agents.avasis.ai/llms.txt)
