> For AI agents: the documentation index is at https://sdk.nimbusprivacy.xyz/llms.txt, and every page is available as Markdown at its URL with .md appended.

# Tokens (/reference/tokens)

[Tokens](https://sdk.nimbusprivacy.xyz/helpers/tokens) shows where a token's decimals come from, and how to format amounts and
show names and logos.

## findMintByIdentifier

Use it to name the token of a history item. A history item names its token by a 32-byte value
derived from the mint address, not by the address itself.

```ts
function findMintByIdentifier(
  sdk: NimbusSdk,
  args: { readonly mintIdentifier: Uint8Array },
): NimbusMint | undefined;
```

Finds the preset mint a note or an intent names by its mint identifier, such as a
`HistoryPage` entry's `note.mintIdentifier`.

**Parameters**

| Parameter | Type                                                                                                                                | Description                                                                               |
| --------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| `sdk`     | `NimbusSdk`                                                                                                                         | The loaded SDK, whose preset lists the mints.                                             |
| `args`    | `{ /** The mint identifier, a 32-byte little-endian field element, as a note carries it. */ readonly mintIdentifier: Uint8Array; }` | The mint identifier, its 32-byte little-endian field encoding as the note store keeps it. |

**Returns**

`NimbusMint | undefined`

The mint, with its address, token program and decimals; none when the preset lists no
mint with that identifier.

**Throws**

[`NimbusSdkError`](https://sdk.nimbusprivacy.xyz/reference/errors#nimbussdkerror) with reason `"misconfigured"` when `mintIdentifier` is shorter
than 32 bytes.

**Example**

```ts
import { findMintByIdentifier } from "@umbra/nimbus-solana-web";
import type { HistoryPage, NimbusSdk } from "@umbra/nimbus-solana-web";

declare const sdk: NimbusSdk;
declare const page: HistoryPage;
for (const item of page.items) {
  for (const received of item.received) {
    const mint = findMintByIdentifier(sdk, { mintIdentifier: received.note.mintIdentifier });
    console.log(received.note.amount, mint?.decimals);
  }
}
```

Generated from the TSDoc in `sdks/typescript/nimbus-solana-web/src/mints.ts`.


Last updated 21 October 2026
