Decode a transaction
apexfaucet.xyz/api/x402/tx-explain
Decode a transaction: send ?chain=base|arc&tx=0x... and get its event logs decoded (every ERC-20 and NFT transfer typed, with from, to and amount), the function called, success or failure, gas in USD and one plain-English sentence of what happened. What did this transaction do? Pass ?chain=base|arc&tx=0x...
GET
https://apexfaucet.xyz/api/x402/tx-explainUptime100% 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://apexfaucet.xyz/api/x402/tx-explain?tx=0x9a18b87c915e29108380d397a5c112f7ec77d432341c7821dd3b3a81ed1ceb09&chain=base");
console.log(await res.json());Example input
{
"tx": "0x9a18b87c915e29108380d397a5c112f7ec77d432341c7821dd3b3a81ed1ceb09",
"chain": "base"
}