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

    Parameters

    • abi: ModuleParam[]

      array of types to decode

    • calldata: string

      data to decode

    Returns ModuleData

    decoded data

    Example

    const decoded = decodeData(
    JSON.parse(module.metadata.initializeResultDataABI) as ModuleParam[],
    openActionSettings.initializeResultData
    );