signum-smartc-testbed
    Preparing search index...

    Function asHexMessage

    • Converts an array of big integers into a hex string representation used to pass as messageHex sent to the contract (in TransactionObj) or as binary hex message attachment on real transactions.

      {
      blockheight: 2,
      amount: 5000_0000n,
      messageHex: asHexMessage([1n, 100n]),
      sender: 1000n,
      recipient: 2000n,
      }

      Parameters

      • args: bigint[]

        The array of big integers to convert.

      Returns string

      The hex string representation of the array of big integers.