• Encode an array of values into a DataHexString according to the provided ABI.

    Parameters

    Returns Data

    encoded calldata

    Example

    const encoded = encodeData(
    JSON.parse(module.metadata.processCalldataABI) as ModuleParam[],
    [ 'value1', 'value2' ]
    );