Skip to content
Fourohtwo

Check an x402 endpoint before paying it

tolca.tonbot.ca/v1/payment-check

Check an x402 endpoint before paying it: is this x402 seller safe to pay? Send the seller's URL (or its 402). One call screens the payTo wallet against OFAC SDN crypto addresses, checks official USDC on its network (13 networks incl. Base, Solana, Polygon, Arbitrum) and compares price and payTo with the seller's Coinbase Bazaar listing. Returns allow / review / block, invoice hash and Ed25519-sign

BaseSolanaAnswering
POSThttps://tolca.tonbot.ca/v1/payment-check

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://tolca.tonbot.ca/v1/payment-check", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"requirements":{"amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"eip155:8453","payTo":"0x1111111111111111111111111111111111111111","resource":"https://tolca.tonbot.ca/v1/sanctions-check","scheme":"exact"}}),
});
console.log(await res.json());

Example input

{
  "requirements": {
    "amount": "10000",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "network": "eip155:8453",
    "payTo": "0x1111111111111111111111111111111111111111",
    "resource": "https://tolca.tonbot.ca/v1/sanctions-check",
    "scheme": "exact"
  }
}

More from Tolca