Skip to main content

Module: utils/byte_serialize_params

argSerializerConstructor()

argSerializerConstructor(arbProvider): (params) => Promise< Uint8Array >

// to use:

const mySerializeParamsFunction = argSerializerConstructor('rpcurl');
mySerializeParamsFunction(['4', '5', '6']);

Parameters

ParameterType
arbProviderProvider

Returns

(params): Promise< Uint8Array >

Parameters

ParameterType
paramsPrimativeOrPrimativeArray[]

Returns

Promise\< Uint8Array >

Source

arbitrum-sdk/src/lib/utils/byte_serialize_params.ts:103

Source

arbitrum-sdk/src/lib/utils/byte_serialize_params.ts:101


serializeParams()

serializeParams(params, addressToIndex = ...): Promise< Uint8Array >

Parameters

ParameterTypeDescription
paramsPrimativeOrPrimativeArray[]array of serializable types to
addressToIndex(address) => Promise\< number >optional getter of address index registered in table

Returns

Promise\< Uint8Array >

Source

arbitrum-sdk/src/lib/utils/byte_serialize_params.ts:137