Skip to main content

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)

NFT Minting Signature

EIP-712 signatures are human-readable in wallet UIs, showing users exactly what they’re signing.
Always verify the domain matches the expected contract. Malicious domains can trick users into signing harmful transactions.

Sign Message

Sign raw messages

Create Wallet

Create new wallet