Verify Base transaction by hash
ontarioprotocol.com/api/x402/base/tx-check
Verify Base transaction by hash: status, block, timestamp and confirmations, with USDC and ERC-20 Transfers decoded (token, from, to, amount; up to 100 listed, transfers_total gives the full count), any EIP-3009 authorization used, and match flags for an expected payTo and amount, so an x402 payment receipt or PAYMENT-RESPONSE can be checked as settled. Required: hash. $0.002 USDC on Base. Transac
GET
https://ontarioprotocol.com/api/x402/base/tx-checkUptime100% of 3 checks 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://ontarioprotocol.com/api/x402/base/tx-check?expected_amount=500000&expected_to=0xa2d72aBF2C5e939fdDCA4156B74dE482e03CA3ec&hash=0xfe14a1712c65c815f1f056cb6b2fbe0f72b2b44eee0990bab5ece2914d7a0883");
console.log(await res.json());Example input
{
"expected_amount": "500000",
"expected_to": "0xa2d72aBF2C5e939fdDCA4156B74dE482e03CA3ec",
"hash": "0xfe14a1712c65c815f1f056cb6b2fbe0f72b2b44eee0990bab5ece2914d7a0883"
}