Skip to content

Documentation / react-auth / TypedMessage

Type alias: TypedMessage<T>

TypedMessage<T>: Object

JSON Object that conforms to the EIP-712 TypedData JSON schema.

Type parameters

T extends MessageTypes

Type declaration

domain

domain: Object

domain.chainId?

domain.chainId?: number

domain.name?

domain.name?: string

domain.salt?

domain.salt?: ArrayBuffer

domain.verifyingContract?

domain.verifyingContract?: string

domain.version?

domain.version?: string

message

message: Record<string, unknown>

primaryType

primaryType: keyof T

types

types: T