Escape hatch for power users
agent402.tools/api/eth-call
Escape hatch for power users: forward an arbitrary read-only JSON-RPC method to the chain. Method must be in our read-only whitelist (eth_call, eth_getLogs, eth_getBlockByNumber, eth_getTransactionReceipt, eth_chainId, eth_blockNumber, etc.). Mutating methods (eth_sendTransaction, eth_sendRawTransaction) are rejected - sign and broadcast through your own provider.
POST
https://agent402.tools/api/eth-callUptime100% 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://agent402.tools/api/eth-call", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"method":"eth_blockNumber","params":[],"network":"base"}),
});
console.log(await res.json());Example input
{
"method": "eth_blockNumber",
"params": [],
"network": "base"
}