# getTransactionRid · FT4 TypeScript client · Chromia Docs (concept)

> getTransactionRid(
    tx: RawGtx | GTX,
    merkleHashVersionSource: MerkleHashVersionSource ,
): Buffer Computes the transaction rid of the provided RawG

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/utils.getTransactionRid/

Function

# getTransactionRid

* ```signature
  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](https://docs.chromia.com/pages/ft4-ts-client/types/utils.MerkleHashVersionSource/)

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

  #### Returns Buffer

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/utils.getTransactionRid.html)Generated API reference, mirrored from the live docs
