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

> deriveNonce(
    blockchainRid: BufferId,
    operation: Operation,
    authDescriptorCounter: number,
    merkleHashVersionSource: MerkleHashVersionSource

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

Function

# deriveNonce

* ```signature
  deriveNonce(
      blockchainRid: BufferId,
      operation: Operation,
      authDescriptorCounter: number,
      merkleHashVersionSource: MerkleHashVersionSource,
  ): string
  ```

  Derives the nonce resulting nonce from the provided information

  #### Parameters

  + blockchainRid: BufferId

    the rid of the blockchain where the nonce is used
  + operation: Operation

    what operation the nonce will be used with
  + authDescriptorCounter: number

    current counter of the auth descriptor that will be used to authenticate the operation
  + 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 string

  the computed nonce value

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