Pre-execution calldata check
api.pacta.wtf/v1/x402/calldata-sim
Pre-execution calldata check: decodes the selector (unwrapping TimelockController schedule / execute (batch), Safe execTransaction and multicall), classifies each action (upgrade, role / ownership, Safe config, delay, pause, funds) and returns a deterministic risk verdict against the live delays of the targets.
POST
https://api.pacta.wtf/v1/x402/calldata-simUptime100% 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://api.pacta.wtf/v1/x402/calldata-sim", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"type":"object","anyOf":[{"required":["address"]},{"required":["target"]}],"required":["chain"],"properties":{"data":{"type":"string","pattern":"^0x([0-9a-fA-F]{2})*$","maxLength":3002,"description":"Calldata to check (default 0x8da5cb5b, owner(), when neither data nor calldata is given)"},"chain":{"enum":["ethereum","base"],"type":"string"},"target":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}),
});
console.log(await res.json());Example input
{"type":"object","anyOf":[{"required":["address"]},{"required":["target"]}],"required":["chain"],"properties":{"data":{"type":"string","pattern":"^0x([0-9a-fA-F]{2})*$","maxLength":3002,"description":"Calldata to check (default 0x8da5cb5b, owner(), when neither data nor calldata is given)"},"chain":{"enum":["ethereum","base"],"type":"string"},"target":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}