Skip to content
Fourohtwo

Use when an agent or seller must confirm a payment before delivering

1gateway.dev/v1/x402/verify

Use when an agent or seller must confirm a payment before delivering: checks a Base, Base Sepolia or Solana transaction for a USDC transfer to pay_to of at least amount. Input: tx (hash or signature), pay_to, network (default eip155:8453), optional amount in USDC. Output: JSON paid true/false, verdict, received, payers, block, time, confirmations. Bad formats refused before payment. Example: ?tx=0

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/x402/verify

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/x402/verify?amount=0.0045&network=eip155%3A8453&pay_to=0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1&tx=0xffbdcb7953401111c60d780212c77c6e01f82295cda8670a9e63a2574a01be32");
console.log(await res.json());

Example input

{
  "amount": "0.0045",
  "network": "eip155:8453",
  "pay_to": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
  "tx": "0xffbdcb7953401111c60d780212c77c6e01f82295cda8670a9e63a2574a01be32"
}