Options for signing an EVM typed data message.

interface SignTypedDataOptions {
    address: `0x${string}`;
    domain: EIP712Domain;
    idempotencyKey?: string;
    message: EIP712MessageMessage;
    primaryType: string;
    types: EIP712Types;
}

Properties

address: `0x${string}`

The address of the account.

domain: EIP712Domain

The domain of the message.

idempotencyKey?: string

The idempotency key.

The message to sign. The structure of this message must match the primaryType struct in the types object.

primaryType: string

The primary type of the message. This is the name of the struct in the types object that is the root of the message.

The types of the message.