# @dfinity/ledger-icrc

> A library for interfacing with ICRC ledgers on the Internet Computer.

Latest version **8.0.0** (published 2026-09-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @dfinity/ledger-icrc
pnpm add @dfinity/ledger-icrc
yarn add @dfinity/ledger-icrc
bun add @dfinity/ledger-icrc
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.0.0 |
| Published | 2026-09-22 |
| First published | 2023-10-02 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 81 |
| Maintainers | dayyildiz, antonioventilii-dfinity, npm-dfinity-org, dfn_wndlng, ielashi, dfn-it-owner |
| Keywords | internet computer, internet-computer, ic, dfinity, Ledger, ICRC-1 ledger, token |

## Links

- npm: https://www.npmjs.com/package/@dfinity/ledger-icrc
- Repository: https://github.com/dfinity/icp-js-canisters
- Homepage: https://github.com/dfinity/icp-js-canisters#readme
- Issues: https://github.com/dfinity/icp-js-canisters
- npm.io page: https://npm.io/package/@dfinity/ledger-icrc

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 8.0.0 (latest) — 2026-09-22
- 7.1.0-next-2026-04-21.1 (next) — 2026-04-21
- 7.0.0-beta-2025-12-18 (beta) — 2025-12-18
- 7.1.0-next-2026-04-21 — 2026-04-21
- 7.1.0-next-2026-04-20 — 2026-04-20
- 7.1.0-next-2026-02-18 — 2026-02-18
- 7.1.0-next-2026-02-11 — 2026-02-11
- 7.1.0-next-2026-01-16 — 2026-01-16
- 7.1.0-next-2026-01-12 — 2026-01-12
- 7.1.0-next-2026-01-09 — 2026-01-09
- 7.1.0-next-2025-12-30 — 2025-12-30
- 7.1.0-next-2025-12-19 — 2025-12-19
- 7.1.0 — 2025-12-19
- 7.0.0-next-2025-12-18.1 — 2025-12-18
- 7.0.0-next-2025-12-18 — 2025-12-18
- … 500 more at https://npm.io/package/@dfinity/ledger-icrc/versions

## README

# ledger-icrc-js

A library for interfacing with [ICRC ledger](https://github.com/dfinity/ic/tree/master/rs/rosetta-api/icrc1) on the Internet Computer.

[![npm version](https://img.shields.io/npm/v/@dfinity/ledger-icrc.svg?logo=npm)](https://www.npmjs.com/package/@dfinity/ledger-icrc) [![GitHub license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

> [!TIP]
> Still using `@dfinity/ledger-icrc`? Upgrade to [`@icp-sdk/canisters/ledger/icrc`](https://js.icp.build/canisters/latest/upgrading/v1/)!

## Table of contents

- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [Resources](#resources)

## Installation

You can use `ledger-icrc-js` by installing it in your project.

```bash
npm i @dfinity/ledger-icrc
```

The bundle needs peer dependencies, be sure that following resources are available in your project as well.

```bash
npm i @icp-sdk/core @dfinity/utils
```

## Usage

The features are available through the class `IcrcLedgerCanister`. It has to be instantiated with a canister ID.

e.g. fetching a token metadata.

```ts
import { IcrcLedgerCanister } from "@dfinity/ledger-icrc";
import { createAgent } from "@dfinity/utils";

const agent = await createAgent({
  identity,
  host: HOST,
});

const { metadata } = IcrcLedgerCanister.create({
  agent,
  canisterId: MY_LEDGER_CANISTER_ID,
});

const data = await metadata({});
```

## Documentation

You can find the API docs [here](https://js.icp.build/canisters/latest/api/ledger/icrc/).

## Resources

- [Ledger & Tokenization Working Group Standards](https://github.com/dfinity/ICRC-1/)
- [ICRC-1 Ledger](https://github.com/dfinity/ic/tree/master/rs/rosetta-api/icrc1)

---
_Source: https://npm.io/package/@dfinity/ledger-icrc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
