Method Signature
Parameters
Wallet
required
The wallet to sign with
TypedDataDomain
required
EIP-712 domain separator (name, version, chainId, verifyingContract)
Record<string, TypedDataField[]>
required
Type definitions for the data structure
Record<string, unknown>
required
The actual data to sign
Returns
Returns the signature as a hex string.Examples
ERC-20 Permit (Gasless Approval)
- TypeScript
NFT Minting Signature
EIP-712 signatures are human-readable in wallet UIs, showing users exactly
what they’re signing.
Related Methods
Sign Message
Sign raw messages
Create Wallet
Create new wallet