81trust / 100

X402 Verify

by Verify x402 settlement in Security & trust

x402 APIPassing, checked 27 min ago

Confirm a USDC payment actually settled: given a tx hash (and network), returns whether it succeeded and the USDC transfers it contains (from, to, amount). Optionally check it paid a specific address at least a minimum amount. Read-only proof of payment.

GET https://agent402.tools/api/x402-verify

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
189 ms typical, 190 ms slowest 5%
Last check
27 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agent402.tools/api/x402-verify?hash=0x09f85fcf1844d85277b8cce528efc8d25c6df632b1fed1c8337f078901a69562&min=0.001&network=base"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fx402-verify
const res = await pay("https://agent402.tools/api/x402-verify?hash=0x09f85fcf1844d85277b8cce528efc8d25c6df632b1fed1c8337f078901a69562&min=0.001&network=base");
console.log(await res.json());

Example input

{
  "hash": "0x09f85fcf1844d85277b8cce528efc8d25c6df632b1fed1c8337f078901a69562",
  "min": 0.001,
  "network": "base"
}

Example output

{
  "hash": "0x09f85fcf1844d85277b8cce528efc8d25c6df632b1fed1c8337f078901a69562",
  "matched": true,
  "network": "base",
  "settled": true,
  "status": "success",
  "transfers": [
    {
      "from": "0x…",
      "to": "0x…",
      "usdc": "0.01"
    }
  ]
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
27 min agoPassed402334 ms$0.004
4 h agoPassed402190 ms$0.004
7 h agoPassed402189 ms$0.004
12 h agoPassed402186 ms$0.004