Skip to content
Fourohtwo

Bitcoin Merchant Payment Receipt

diamond.btc-intel.workers.dev/api/x402/payment_receipt

Bitcoin Merchant Payment Receipt: match one transaction's receiving output script and whole sats to your order minimum and confirmation threshold. Delivers a machine-readable receipt with original transaction bytes and an active-chain Merkle inclusion proof.

BaseAnswering
GEThttps://diamond.btc-intel.workers.dev/api/x402/payment_receipt

Uptime100% of 4 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://diamond.btc-intel.workers.dev/api/x402/payment_receipt?match=000000000000000000016405e083d74defc2c21a5bd228ab6bf4d14976436b09%3Aac36157d8145a55392a429ecc7018eca9670761b4a92416ce3194566f9bbbc9c%3Abc1qzt2cq2pnq9dudaalx237q8f9cfjjwz7wsm7f7a%3A2447022%3A6");
console.log(await res.json());

Example input

{
  "match": "000000000000000000016405e083d74defc2c21a5bd228ab6bf4d14976436b09:ac36157d8145a55392a429ecc7018eca9670761b4a92416ce3194566f9bbbc9c:bc1qzt2cq2pnq9dudaalx237q8f9cfjjwz7wsm7f7a:2447022:6"
}