Function: encodeExtraData()
function encodeExtraData(data: Record<`0x${string}`, undefined | string | number | bigint>): `0x${string}`;Defined in: packages/boop-sdk/lib/boops.ts:33
Converts a record of extraData key-value pairs into a hex string. Each key-value pair is serialized with a 3-byte key, a 3-byte length prefix, and the value itself. The resulting hex string is prefixed with '0x'.
Parameters
data
Record<`0x${string}`, undefined | string | number | bigint>
Returns
`0x${string}`