Skip to content
Fourohtwo

Tiered payment receipt (tier 2)

api.truthbear.co/pay/tier2

Tiered payment receipt (tier 2): pay once with x402 and get back a short-lived receipt token that /pay/verify checks for you. The tier is fixed by the path - you do not send it. Optional ?ref= carries your own opaque reference, such as a query hash, straight through to the receipt. This mints a receipt rather than returning data, so there is no lookup that can come back empty. $0.03 per call.

BaseSolanaUnchecked
GEThttps://api.truthbear.co/pay/tier2

UptimeNot checked yet

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://api.truthbear.co/pay/tier2?ref=optional+-+opaque+reference+such+as+a+query+hash&tier=optional+-+ignored%3B+fixed+to+2+by+this+path");
console.log(await res.json());

Example input

{
  "ref": "optional - opaque reference such as a query hash",
  "tier": "optional - ignored; fixed to 2 by this path"
}

More from Truth Bear