Skip to content

decodeTypedData

decodeTypedData(data, options?): Promise<DecodedOperation>

Defined in: packages/sdk/src/decode/decodeTypedData.ts:219

Decode EIP-712 typed data. Domain and domainSeparator bindings go through matchContext. With no descriptor, fields come from the message.

TypedDataInput

DecodeOptions

Promise<DecodedOperation>

InvalidInputError INVALID_TYPED_DATA when domain, types, primaryType, or message is missing, and INVALID_CHAIN_ID or INVALID_ADDRESS when those fields are present but not usable.