Check a Base transaction BEFORE your agent signs it
agichainai-notary.aslanklc04.workers.dev/tx-check
Check a Base transaction BEFORE your agent signs it: it is run from your own wallet address in simulation and returns ALLOW / WARN / BLOCK with balance changes (ETH, tokens), approvals given and why: approvals or NFT operator rights to a plain wallet, unlimited approvals to unknown contracts, sends to the token contract or a never-used address, calls that pay and receive nothing, reverts, and your
POST
https://agichainai-notary.aslanklc04.workers.dev/tx-checkUptime100% 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
// 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://agichainai-notary.aslanklc04.workers.dev/tx-check", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"data":"0x095ea7b3","from":"0x0000000000000000000000000000000000000001","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}),
});
console.log(await res.json());Example input
{
"data": "0x095ea7b3",
"from": "0x0000000000000000000000000000000000000001",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}