Decode and analyze a PSBT (base64)
diamond.btc-intel.workers.dev/api/x402/psbt_decode
Decode and analyze a PSBT (base64): inputs, outputs, fee and fee rate when the input data is present, estimated vsize, signatures still missing and the next step. Nothing is signed or broadcast.
GET
https://diamond.btc-intel.workers.dev/api/x402/psbt_decodeUptime100% 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://diamond.btc-intel.workers.dev/api/x402/psbt_decode?psbt=cHNidP8B...");
console.log(await res.json());Example input
{
"psbt": "cHNidP8B..."
}