Function getContractDatablock

  • Extracts a variables value as hexadecimal string from a contract's machine data

    This is a generic function to extract arbitrary data from a contract. It's recommended to use the ContractDataView class instead

    Parameters

    • contract: Contract

      The contract

    • position: number

      The variables position

    • length: number = 16

      The length of data to be extracted

    Returns string

    The value as hexadecimal string (already considering endianness)