Skip to content

Returns the canonical type signature string for primaryType and all of its transitively-referenced struct types, in the order required by EIP-712 (primary…

encodeType(primaryType, types): string

Defined in: packages/bitbadgesjs-sdk/src/eip712/hash.ts:49

Returns the canonical type signature string for primaryType and all of its transitively-referenced struct types, in the order required by EIP-712 (primary first, then references sorted alphabetically by name).

Parameters

primaryType

string

types

EIP712Types

Returns

string

Edit this page on GitHub