Type alias TypedMessage<T>

TypedMessage<T>: {
    domain: {
        chainId?: number;
        name?: string;
        salt?: ArrayBuffer;
        verifyingContract?: string;
        version?: string;
    };
    message: Record<string, unknown>;
    primaryType: keyof T;
    types: T;
}

This is the message format used for signTypeData, for all versions except V1.

Type Parameters

  • T extends MessageTypes

    The custom types used by this message.

Type declaration

  • domain: {
        chainId?: number;
        name?: string;
        salt?: ArrayBuffer;
        verifyingContract?: string;
        version?: string;
    }
    • Optional chainId?: number
    • Optional name?: string
    • Optional salt?: ArrayBuffer
    • Optional verifyingContract?: string
    • Optional version?: string
  • message: Record<string, unknown>
  • primaryType: keyof T
  • types: T