eip712.hash
eip712.hashCompute the EIP-712 typed-data digest plus domain separator, struct hash, and encodeType from domain, types, primaryType, and message. Matches what wallets sign, including the x402 USDC transferWithAuthorization authorization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | Yes | Typed-data types, excluding EIP712Domain. | |
| domain | Yes | EIP-712 domain: name, version, chainId, verifyingContract, salt. | |
| message | Yes | The message values. | |
| primaryType | Yes | The primary struct type to hash. |