Docs
chromia.com

Function

getTransactionRid

  • getTransactionRid(
        tx: RawGtx | GTX,
        merkleHashVersionSource: MerkleHashVersionSource,
    ): Buffer

    Computes the transaction rid of the provided RawGtx

    Parameters

    • tx: RawGtx | GTX

      the tx to compute the rid for

    • merkleHashVersionSource: MerkleHashVersionSource

      the source to use to get the merkle hash version from, or the merkle hash version itself

    Returns Buffer