Module: utils/byte_serialize_params
argSerializerConstructor()
argSerializerConstructor(arbProvider): (params) => Promise< Uint8Array >
// to use:
const mySerializeParamsFunction = argSerializerConstructor('rpcurl');
mySerializeParamsFunction(['4', '5', '6']);
Parameters
Parameter | Type |
---|---|
arbProvider | Provider |
Returns
(params): Promise< Uint8Array >
Parameters
Parameter Type params
PrimativeOrPrimativeArray
[]Returns
Promise
\<Uint8Array
>Source
Source
arbitrum-sdk/src/lib/utils/byte_serialize_params.ts:101
serializeParams()
serializeParams(params, addressToIndex = ...): Promise< Uint8Array >
Parameters
Parameter | Type | Description |
---|---|---|
params | PrimativeOrPrimativeArray [] | array of serializable types to |
addressToIndex | (address ) => Promise \< number > | optional getter of address index registered in table |
Returns
Promise
\< Uint8Array
>