Skip to main content

Function: toChainDto

toChainDto(message): Record<string, unknown>

Reduces an EIP-712 approval message to the DTO the chain actually receives: drops the signing envelope (signature, prefix, types, domain) and transport metadata (trace).

Parameters​

ParameterType
messageRecord<string, unknown>

Returns​

Record<string, unknown>