Skip to content
Fourohtwo

fastx402.tools/x402-requirements-decode

Decode an x402 PAYMENT-REQUIRED header (base64 JSON) into readable payment options: network name, token, human amount for USDC, recipient and timeout. Use it to explain or check a 402 challenge before paying.

BaseAnswering
GEThttps://fastx402.tools/x402-requirements-decode

Uptime100% of 2 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://fastx402.tools/x402-requirements-decode");
console.log(await res.json());

Example input

{"header":"eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOiJQYXltZW50IHJlcXVpcmVkIiwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly9mYXN0eDQwMi50b29scy9kbnM/bmFtZT1leGFtcGxlLmNvbSIsImRlc2NyaXB0aW9uIjoiRE5TIGxvb2t1cCAoQSwgQUFBQSwgTVgsIFRYVCwgTlMsIENOQU1FLCBTT0EsIENBQSwgU1JWLCBQVFIpIHZpYSBETlMtb3Zlci1IVFRQUyIsIm1pbWVUeXBlIjoiYXBwbGljYXRpb24vanNvbiIsInNlcnZpY2VOYW1lIjoiRmFzdFg0MDIiLCJ0YWdzIjpbIkRldiJdfSwiYWNjZXB0cyI6W3sic2NoZ

More from FastX402 LabProvider status