Encode an array of values into a DataHexString according to the provided ABI.
array of types to encode
array of data to encode
encoded calldata
const encoded = encodeData( JSON.parse(module.metadata.processCalldataABI) as ModuleParam[], [ 'value1', 'value2' ]); Copy
const encoded = encodeData( JSON.parse(module.metadata.processCalldataABI) as ModuleParam[], [ 'value1', 'value2' ]);
Encode an array of values into a DataHexString according to the provided ABI.