Audit Off-Chain EIP-712 Typed-Data Signature Payload
audit_eip712_signature_payloadAudits EIP-712 typed-data payloads before signing to detect risky allowances, spoofed domains, dangerous expirations, and zero-consideration drains.
Instructions
Audits off-chain eth_signTypedData_v4 JSON objects or strings (Permit, DAI Permit, PermitSingle, PermitBatch, PermitTransferFrom, Seaport OrderComponents, Circle USDC EIP-3009 TransferWithAuthorization / x402, ForwardRequest, SafeTx) before signing. Computes EIP-712 domainSeparator and flags unlimited allowances, Seaport zero-consideration NFT/token drains, DELEGATECALL meta-txs, multi-month/infinite signature expirations, and domain chainId/contract spoofing.
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": {
"typedData": "<typedData>"
},
"name": "audit_eip712_signature_payload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| typedData | Yes | eth_signTypedData_v4 JSON object (or serialized JSON string) containing domain, types, primaryType, and message. | |
| expectedChainId | No | Optional expected EVM chainId to catch cross-chain domain spoofing. | |
| expectedMaxAmount | No | Optional maximum expected raw token amount (decimal or 0x hex) to guard against over-billing. | |
| expectedRecipient | No | Optional expected 0x recipient for EIP-3009 / x402 TransferWithAuthorization checks. | |
| referenceTimestamp | No | Optional Unix timestamp in seconds for deterministic deadline checks. | |
| expectedVerifyingContract | No | Optional expected 0x verifyingContract address. |