Use when an agent must tell a user what a transaction did
1gateway.dev/v1/onchain/tx/explain
Use when an agent must tell a user what a transaction did. Input: tx (Base hash or Solana signature), network=eip155:8453|solana (optional, inferred). Output: explanation (1-3 sentences; every number checked against the decoded facts, template fallback), facts: status, time, fee, from/to, called function (curated selector table), ERC-20 transfers, approvals, inferred swap (sent/received), Solana p
GET
https://1gateway.dev/v1/onchain/tx/explainUptime100% 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://1gateway.dev/v1/onchain/tx/explain?network=eip155%3A8453&tx=0xffbdcb7953401111c60d780212c77c6e01f82295cda8670a9e63a2574a01be32");
console.log(await res.json());Example input
{
"network": "eip155:8453",
"tx": "0xffbdcb7953401111c60d780212c77c6e01f82295cda8670a9e63a2574a01be32"
}