x402
permit2
eip712
witness_transfer
signature_transfer
allowance_permit
digest_recompute
eip2612_gas_sponsoring
mcp:recompute_x402_permit2_digest

X402 Permit2 Evidence Recomputer

Recomputes the Permit2 typed-data digest a payer's wallet signs for an x402 payment, for the three single-item message shapes the exact and upto schemes use: a witness transfer that binds the destination, an unwitnessed signature transfer, and an allowance permit. From caller-supplied domain and message fields it derives the domain separator, the struct hash and the digest, deriving each type hash at run time from the type string rather than carrying a transcribed constant, and it reports binding facts against a caller-supplied payment requirement: whether the spender is the pinned x402 proxy, whether the destination bound into the witness matches payTo, whether the token matches the asset, whether the chain matches the network, and whether the amount holds under the scheme rule, which is equality under exact and a ceiling under upto. It reports nonce facts in the right space, keeping the unordered bitmap decomposition of the transfer shapes apart from the sequential counter of the allowance shape, and it reports that an allowance expiration of zero lasts only the current block rather than never expiring. Signature bytes are classified without recovery: length class, whether s sits above half the curve order, the recovery byte form including the raw parity case an on-chain call cannot use, and the counterfactual wrapper marker. Signer recovery itself is handed off to art-591 in that node's exact input shape, and a sponsored approval leg is handed off to art-612 in its. Scope limits: it reads no chain, so nonce spend state, stored allowance, contract code and the current time are caller-declared inputs echoed back, and any absent input reports NOT_EVALUATED rather than a pass. It never originates, relays or submits a payment.

Tool URL: https://ainumbers.co/chaingraph/art-699-x402-permit2-evidence-recomputer.html AP2/Policy Mandate export: yes

post/v1/tools/recompute_x402_permit2_digest

Request

  • Base URL: https://ainumbers.co
  • URL: https://ainumbers.co/v1/tools/recompute_x402_permit2_digest
  • Auth: none declared

Request body

chainIdunknown required
deadlineunknown required
detailsunknown required
domainunknown required
eip2612GasSponsoringunknown required
fromunknown required
nonceunknown required
nonce_already_usedunknown required
now_unixunknown required
permittedunknown required
requirementunknown required
sigDeadlineunknown required
signatureunknown required
spenderunknown required
variantunknown required
verifyingContractunknown required
versionunknown required
witnessunknown required

Response

Successful tool execution result

allowance_expiryobject nullable required
digeststring nullable required
domain_separatorstring nullable required
domain_typehashstring required
errorsstring[] required
handoff_591object nullable required
handoff_612object nullable required
messageobject nullable required
nonce_factsobject nullable required
reasonsstring[] required
scope_notestring required
sponsored_approvalobject nullable required
struct_hashstring nullable required
type_stringstring nullable required
typehashstring nullable required
variant'permit_batch_transfer_from' | 'permit_single' | 'permit_transfer_from' | 'permit_witness_batch_v9' | 'x402_witness_transfer' | 'null' nullable required
verdict'DIGEST_RECOMPUTED' | 'INDETERMINATE' required
warningsstring[] required
windowobject nullable required
x402_bindingobject nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.