Pre-execution Safety Check
pacta_check_preflightRun a one-call pre-execution safety check on a contract before an agent interacts, returning a control-plane verdict, 0–100 risk score, proxy/admin details, and pause, blacklist, or upgrade risks.
Instructions
Gateway tool (requires PACTA_X402_URL; x402 $0.01 Base USDC when metered). One-call pre-execution safety check of a contract before an agent interacts with it: verdict (IMMUTABLE_NO_ADMIN / TIMELOCK_PROTECTED / ZERO_DELAY_TIMELOCK_RISK / MULTISIG_NO_TIMELOCK / INSTANT_EOA_ADMIN_RISK / UNCLASSIFIED_CONTRACT_CONTROLLER / UNDEPLOYED_OR_EOA), 0-100 risk score, proxy + implementation, controller kind, zero-delay upgradeability, pause / blacklist / upgrade capabilities, pinned block. Free during the launch (the live gateway answers $0, no payment); x402 price applies only if metering is switched on.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"address": "<address>"
},
"name": "pacta_check_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Block to pin: "latest" (default), a decimal block number or 0x-hex. | |
| chain | Yes | ||
| nonce | No | 0x-prefixed 32-byte hex nonce. | |
| payer | No | 0x payer address for 402 EIP-712 typedData. | |
| address | Yes | ||
| x402Version | No | Preferred x402 version for the 402 challenge (default 1). Both are validated under the same pins. | |
| caller_agent | No | Identifier of the calling AI agent, IDE, or framework (e.g. 'claude-code', 'cursor', 'windsurf', 'coinbase-agentkit', 'elizaos', 'langchain', 'chatgpt', 'gemini', 'custom-agent'). Optional attribution (omitted = 'unspecified'). Lowercase slug only; never include personal names, emails, or secrets. | |
| caller_purpose | No | Optional: operational workflow context for this pre-execution check (closed enum). | |
| requester_role | No | Optional: high-level role category of the requester or system running this check (closed enum; no personal data). | |
| xPaymentHeader | No | Base64 x402 v1 X-PAYMENT header (network base). | |
| validBeforeSeconds | No | TTL for the 402 typedData; clamped to the validated challenge's maxTimeoutSeconds. | |
| paymentSignatureHeader | No | Base64 x402 v2 PAYMENT-SIGNATURE header (network eip155:8453). Send this OR xPaymentHeader, not both. |