Function buildAuthTxHash

  • Build a transaction hash the same as Auth.tx_hash by GaMetaTx payload

    Parameters

    • transaction: `tx_${string}`

      tx-encoded transaction

    • options: { fee?: Int; gasPrice?: Int; onNode: Node } & ProtocolParametersOption

      Options

      • Optionalfee?: Int

        GaMetaTx fee, required in Ceres

      • OptionalgasPrice?: Int

        GaMetaTx gasPrice, required in Ceres

      • onNode: Node

        Node to use

      Transaction option to build a transaction against specific consensus parameters. buildTxAsync sets it to the parameters it requests from node, provide it to build a transaction offline for a node that doesn't run the protocol version the current SDK release was made for.

    Returns Promise<Buffer>

    Transaction hash