{"uid":"cap_rN2dgC3a-u9NHgKU8nKl8","slug":"x402-agent-wallet-tools-permit-permit2-decoder-5e7212c4","name":"x402 Agent Wallet Tools – Permit/Permit2 Decoder","description":"A buyer-side control console for signature risk, EIP-712 review, transaction decoding, ERC20 allowance risk, Permit/Permit2 approvals, transaction simulation summaries, spend guard policy, receipt gate enforcement, and private-key boundaries.","url":"https://x402-wallet.558686.xyz/v1/tools/permit-permit2-decoder","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"ok":true,"tool":"permit-permit2-decoder","input":{"typedData":{"domain":{"name":"Permit2","chainId":8453},"message":{"amount":"1000000","spender":"0x4444444444444444444444444444444444444444"},"primaryType":"PermitSingle"}},"route":"/v1/tools/permit-permit2-decoder","result":{"domain":{},"family":"family_example","findings":[],"extracted":{},"riskLevel":"riskLevel_example"},"project":"x402-agent-wallet-tools","deterministic":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.013","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.013/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.013","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.013","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dNZLDkpzQ9zxMeXRhLd_F","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.013","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes and risk-analyzes EIP-712 typed data for Permit and Permit2 token approval signatures, extracting domain, spender, amount, and risk findings.","exampleAgentPrompt":"Before I sign this Permit2 request, can you decode and risk-check this EIP-712 typed data — domain is 'Permit2' on chainId 8453, primaryType is 'PermitSingle', spender is 0x4444444444444444444444444444444444444444, and amount is 1000000?","exampleUseCases":[{"title":"Pre-signature permit safety review","prompt":"I'm about to sign a Permit2 approval on Base — the domain is 'Permit2' with chainId 8453, it's a PermitSingle for spender 0xAbCd...1234 and amount 5000000. Decode it and tell me the risk level before I proceed."},{"title":"DeFi agent approval gate","prompt":"My DeFi agent wants to sign a PermitSingle on chainId 1 with spender 0xDEAD...BEEF and amount 999999999999 — decode the EIP-712 typed data and flag any high-risk findings so I can decide whether to allow it."},{"title":"Debugging a failed permit transaction","prompt":"I have a Permit2 typed data payload with primaryType PermitBatch on chainId 8453 that's behaving unexpectedly — can you decode it and extract the domain, spender addresses, amounts, and tell me if anything looks off?"}],"resultDescription":"Returns a JSON object with: the decoded domain fields, the permit family (e.g. Permit, Permit2, PermitSingle, PermitBatch), extracted structured fields (spender, amount, nonce, deadline), a list of risk findings (anomalies, suspicious spenders, excessive amounts), and an overall riskLevel classification. The result is deterministic for the same input.","failureModes":["Missing required domain.name or domain.chainId fields returns a validation error","Missing message.spender or message.amount returns an input schema error","Unrecognized primaryType may return empty family classification with limited findings","Malformed EIP-712 typed data object returns a parse error","Payment not included or insufficient returns HTTP 402"],"whenToPreferThis":"Use this endpoint when an AI agent or wallet needs to decode and risk-assess a Permit or Permit2 EIP-712 typed data payload before presenting it to a user for signing. It is the right choice when you need to extract human-readable fields (spender, amount, deadline) and a risk classification from a raw typed-data object, specifically for ERC20 token approval flows on EVM chains. Prefer this over generic EIP-712 decoders when you specifically need Permit/Permit2 family detection and risk findings.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:42.364Z","isFirstParty":false}