Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TypedMessage<T>

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

property

types - The custom types used by this message.

property

primaryType - The type of the message.

property

domain - Signing domain metadata. The signing domain is the intended context for the signature (e.g. the dapp, protocol, etc. that it's intended for). This data is used to construct the domain seperator of the message.

property

domain.name - The name of the signing domain.

property

domain.version - The current major version of the signing domain.

property

domain.chainId - The chain ID of the signing domain.

property

domain.verifyingContract - The address of the contract that can verify the signature.

property

domain.salt - A disambiguating salt for the protocol.

property

message - The message to be signed.

Type parameters

Hierarchy

  • TypedMessage

Index

Properties

domain

domain: { chainId?: number; name?: string; salt?: ArrayBuffer; verifyingContract?: string; version?: string }

Type declaration

  • Optional chainId?: number
  • Optional name?: string
  • Optional salt?: ArrayBuffer
  • Optional verifyingContract?: string
  • Optional version?: string

message

message: Record<string, unknown>

primaryType

primaryType: keyof T

types

types: T