SpendPreflight
api.spendpreflight.com/v1/books/receipt
SpendPreflight — trust and verification tools for stablecoin payments, built for AI agents and the people who run them. USDC Payment Receipt: locate a native Base USDC transfer by transaction hash, or recipient, exact amount and past time window. Returns a signed observation, confirmations, OFAC flags and printable HTML. Ambiguous matches fail without charge. No custody or transaction signing. Not
POST
https://api.spendpreflight.com/v1/books/receiptUptime100% 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://api.spendpreflight.com/v1/books/receipt", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"tx_hash":"0x9ede68ce1d33fd5d49d402d11de3127710102235ac5bdf020344345dfeb8ce4f"}),
});
console.log(await res.json());Example input
{
"tx_hash": "0x9ede68ce1d33fd5d49d402d11de3127710102235ac5bdf020344345dfeb8ce4f"
}