# AgentOracle Payment Settlement Verifier

> AgentOracle Payment Settlement Verifier is a paid API for AI agents from aiagentoracle.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Verifies a payment transaction recorded by AgentOracle and returns its on-chain confirmation state, amount, payer, recipient, route, and timestamp on Base.

## Facts

- Endpoint: GET https://aiagentoracle.ai/api/v1/settlement/:hash
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentoracle-payment-settlement-verifier-66a2951d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JL7wMit4Zd35yXaYJsNek

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 agentoracle-payment-settlement-verifier-66a2951d
```

Example prompt: Can you verify the AgentOracle payment transaction 0x3a2f1b...e94d and tell me whether it's confirmed on-chain, who paid, how much, and how many block confirmations it has?

## When to prefer this

Use this endpoint when you need to verify a specific payment transaction that was previously recorded by AgentOracle on Base, especially in autonomous agent workflows where payment confirmation is required before proceeding. It is ideal for post-payment audits, dispute resolution, and settlement verification for x402-protocol payments. Prefer this over generic blockchain explorers when you need AgentOracle's recorded metadata (route, recorded status, USD amount) alongside the raw on-chain state.

## Known failure modes

- Invalid or malformed txHash (not matching 0x + 64 hex chars) returns a validation error
- Transaction hash not found in AgentOracle records returns a 404 or empty result
- On-chain state may return 'unavailable' if the Base RPC is temporarily unreachable
- Transaction may be in 'pending' state if not yet mined or confirmed
- Payment to this API endpoint itself may fail if USDC balance is insufficient (x402 protocol)

## How this service works

AgentOracle: verify a payment transaction recorded by AgentOracle and check its Base receipt confirmation state. Returns recorded amount, payer, recipient, route, timestamp, and confirmed, pending, reverted, or temporarily unavailable on-chain state.

## Output

Returns a JSON object containing the transaction hash, payer address, recipient address, amount in atomic units and USD, asset type, network, payment route, recorded timestamp, recorded status, and an on-chain object with state (confirmed, pending, reverted, or unavailable), block number, confirmation count, check timestamp, and an optional reason field.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "txHash"
     ],
     "properties": {
      "txHash": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{64}$"
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "txHash",
      "payer",
      "recipient",
      "amountAtomic",
      "amountUsd",
      "asset",
      "network",
      "route",
      "recordedStatus",
      "recordedAt",
      "onchain",
      "limitation"
     ],
     "properties": {
      "asset": {
       "type": "string"
      },
      "payer": {
       "type": [
        "string",
        "null"
       ]
      },
      "route": {
       "type": "string"
      },
      "txHash": {
       "type": "string"
      },
      "network": {
       "type": "string"
      },
      "onchain": {
       "type": "object",
       "required": [
        "state",
        "blockNumber",
        "confirmations",
        "checkedAt",
        "reason"
       ],
       "properties": {
        "state": {
         "enum": [
          "confirmed",
          "pending",
          "reverted",
          "unavailable"
         ],
         "type": "string"
        },
        "reason": {
         "type": [
          "string",
          "null"
         ]
        },
        "checkedAt": {
         "type": "string",
         "format": "date-time"
        },
        "blockNumber": {
         "type": [
          "string",
          "null"
         ]
        },
        "confirmations": {
         "type": [
          "integer",
          "null"
         ]
        }
       }
      },
      "amountUsd": {
       "type": "number"
      },
      "recipient": {
       "type": "string"
      },
      "limitation": {
       "type": "string"
      },
      "recordedAt": {
       "type": "string",
       "format": "date-time"
      
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentoracle-payment-settlement-verifier-66a2951d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aiagentoracle.ai](https://www.zero.xyz/host/aiagentoracle.ai/llms.txt)
