# Function: get() (/nqtr/index/namespaces/RegisteredCommitments/functions/get)



\> **get**(`id`): [`CommitmentInterface`](/nqtr/index/interfaces/CommitmentInterface) | `undefined`

Defined in: [src/registries/RegisteredCommitments.ts:41](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/registries/RegisteredCommitments.ts#L41)

Get a commitment by its id.

## Parameters [#parameters]

### id [#id]

`string`

The id of the commitment.

## Returns [#returns]

[`CommitmentInterface`](/nqtr/index/interfaces/CommitmentInterface) | `undefined`

The commitment or undefined if not found.
