agent402.tools/api/contract-abi
Fetch the verified ABI for a contract address from an open verified-contract repository, plus a ready-to-use list of human-readable function signatures with their 4-byte selectors. Covers 8 EVM mainnets. Unverified contracts return a structured {verified:false} miss. Pair with /api/calldata-decode to decode transactions against this ABI.
POST
https://agent402.tools/api/contract-abiUptimeNot checked yet
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://agent402.tools/api/contract-abi", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","network":"base"}),
});
console.log(await res.json());Example input
{
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"network": "base"
}