The EIP-712 domain separator fields (name, version, chainId,
verifyingContract, salt). Every field is optional; the domain
separator is built from exactly those present.
The struct instance to sign, keyed by the field names of primaryType.
The struct definitions referenced by primaryType, each an ordered
list of { name, type } fields.
EIP-712 typed structured data, in the same shape a wallet receives from an
eth_signTypedData_v4request. Pass it to Salt.signTypedData to have a Salt account sign it.Remarks
primaryTypemust name one of the structs declared in types, andmessagemust be an instance of that struct. DeclaringEIP712Domainintypesis optional — it is inferred from the fields present on domain when omitted.Example