# Gig Finance Tools - USDC Payment Verifier

> Gig Finance Tools - USDC Payment Verifier is a paid API for AI agents from safe-weekly-spend-api-production.gigfinancetools.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Verifies that a specific Base mainnet USDC transaction meets given conditions (recipient, sender, amount, timing, confirmations) and returns detailed on-chain validation results.

## Facts

- Endpoint: POST https://safe-weekly-spend-api-production.gigfinancetools.workers.dev/v1/verify-payment?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gig-finance-tools-usdc-payment-verifier-04ecef0a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MKU7uzmLyMSmrCi0Bo9ls

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 gig-finance-tools-usdc-payment-verifier-04ecef0a -d '<json body>'
```

Example prompt: Can you verify that transaction 0x3d1e4e56befea9d5dcd3963ad73f6d428ad8ea57d15eb821249846d3626ea891 on Base sent at least 0.01 USDC to wallet 0xb238e4447bf953b5eec16c7d7e3e9c6e747b1cf3 with at least 1 confirmation?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call on-chain verification of a single Base USDC transaction without standing up your own blockchain node or RPC infrastructure. It is especially suited for x402 micropayment settlement checks, gig economy payment confirmation flows, and automated agent pipelines where a quick valid/invalid signal with structured reasons is sufficient. Prefer alternatives if you need multi-chain support, historical batch queries, or guaranteed SLA-backed RPC.

## Known failure modes

- Transaction hash not found on Base mainnet — returns valid: false with reason
- Recipient address mismatch — returns valid: false with 'payTo mismatch' reason
- Amount below minAmount — returns valid: false with amount reason
- Block timestamp outside notBefore/notAfter window — returns valid: false with timing reason
- Insufficient confirmations — returns valid: false with confirmations reason
- Malformed address or txHash pattern — likely 400 input validation error
- Public RPC timeout or unavailability — service error response

## How this service works

Pay-per-call finance tools for US gig workers, paid in USDC on Base via x402. Not tax or financial advice.

## Output

Returns a JSON object with a 'valid' boolean, the confirmed USDC transfer amount, sender and recipient addresses, block number and hash, number of confirmations, a 'final' flag, x402 settlement detection details (method, nonce, facilitator, confidence), a list of any failed validation reasons, and a disclaimer about best-effort RPC usage.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "payTo": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Expected USDC recipient"
  },
  "payer": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{40}$",
   "description": "Optional expected sender (USDC Transfer from)"
  },
  "txHash": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "description": "Base mainnet transaction hash"
  },
  "notAfter": {
   "type": "string",
   "format": "date-time",
   "description": "Optional ISO 8601; block time must be at or before"
  },
  "minAmount": {
   "type": "string",
   "pattern": "^(0|[1-9][0-9]{0,14})(\\.[0-9]{1,6})?$",
   "description": "Minimum USDC (decimal string, up to 6 decimals), e.g. \"0.01\""
  },
  "notBefore": {
   "type": "string",
   "format": "date-time",
   "description": "Optional ISO 8601; block time must be at or after"
  },
  "minConfirmations": {
   "type": "integer",
   "maximum": 100000,
   "minimum": 0,
   "description": "Default 1"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0xb238e4447bf953b5eec16c7d7e3e9c6e747b1cf3",
  "tx": {
   "to": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "from": "0x4c934c63c786157fefd990945b25ea60a0fb0205"
  },
  "from": "0x171d8021b98c53dcbb3c9c30cbbbeb1b01850fca",
  "block": {
   "hash": "0xc82dab9f3520b43ccc0aede605c66b57c6a63ff2e9ba71e9e92000b281d7e08b",
   "number": 52687362
  },
  "final": true,
  "token": {
   "symbol": "USDC",
   "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
   "decimals": 6
  },
  "valid": true,
  "amount": "0.01",
  "source": {
   "rpc": "Base public RPC",
   "cached": false,
   "head_block": 52688362
  },
  "status": "confirmed",
  "txHash": "0x3d1e4e56befea9d5dcd3963ad73f6d428ad8ea57d15eb821249846d3626ea891",
  "checked": {
   "payTo": "0xb238e4447bf953b5eec16c7d7e3e9c6e747b1cf3",
   "payer": null,
   "notAfter": null,
   "minAmount": "0.01",
   "notBefore": null,
   "minConfirmations": 1
  },
  "network": "eip155:8453",
  "reasons": [],
  "timestamp": "2026-10-16T15:21:11.000Z",
  "transfers": [
   {
    "to": "0xb238e4447bf953b5eec16c7d7e3e9c6e747b1cf3",
    "from": "0x171d8021b98c53dcbb3c9c30cbbbeb1b01850fca",
    "amount": "0.01"
   }
  ],
  "disclaimer": "Best-effort on-chain check of a single Base transaction using a public RPC; not …(truncated)",
  "amount_units": "10000",
  "confirmations": 1001,
  "x402_settlement": {
   "nonce": "0x05d2feb2338cdf03ac1f946e421c0c0ef49259b283caec85d7ef3534f44b8474",
   "method": "transferWithAuthorization (EIP-3009)",
   "detected": true,
   "authorizer": "0x171d8021b98c53dcbb3c9c30cbbbeb1b01850fca",
   "confidence": "heuristic",
   "facilitator": "0x4c934c63c786157fefd990945b25ea60a0fb0205"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gig-finance-tools-usdc-payment-verifier-04ecef0a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from safe-weekly-spend-api-production.gigfinancetools.workers.dev](https://www.zero.xyz/host/safe-weekly-spend-api-production.gigfinancetools.workers.dev/llms.txt)
