# @zondax/ledger-filecoin

> Node API for the Filecoin App (Ledger Nano S+, X, Stax and Flex)

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

## Install

```sh
npm install @zondax/ledger-filecoin
pnpm add @zondax/ledger-filecoin
yarn add @zondax/ledger-filecoin
bun add @zondax/ledger-filecoin
```

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2026-09-15 |
| First published | 2020-01-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 32.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Author | Zondax AG |
| Maintainers | jleni, emmanuel-zondax |
| Keywords | Zondax, Ledger, Typescript, Javascript, Filecoin |

## Links

- npm: https://www.npmjs.com/package/@zondax/ledger-filecoin
- Repository: https://github.com/Zondax/ledger-filecoin-js
- Issues: https://github.com/Zondax/ledger-filecoin-js/issues
- npm.io page: https://npm.io/package/@zondax/ledger-filecoin

## Dependencies (2)

- [varint](https://npm.io/package/varint.md) ^6.0.0
- [@zondax/ledger-js](https://npm.io/package/@zondax/ledger-js.md) ^2.1.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 4.0.0 (latest) — 2026-09-15
- 0.12.0-beta.1 (beta) — 2023-03-09
- 3.0.11 — 2026-07-30
- 3.0.9 — 2026-06-18
- 3.0.8 — 2026-06-01
- 3.0.7 — 2026-01-29
- 3.0.6 — 2025-12-05
- 3.0.5 — 2025-12-02
- 3.0.4 — 2025-11-13
- 3.0.3 — 2025-11-13
- 3.0.2 — 2025-08-26
- 3.0.1 — 2025-08-21
- 3.0.0 — 2025-07-15
- 3.0.0-beta — 2025-07-14
- 2.1.1-beta — 2025-07-11
- … 19 more at https://npm.io/package/@zondax/ledger-filecoin/versions

## README

# @zondax/ledger-filecoin

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![npm version](https://badge.fury.io/js/%40zondax%2Fledger-filecoin.svg)](https://badge.fury.io/js/%40zondax%2Fledger-filecoin)

This package provides a basic client library to communicate with the Filecoin App running in a Ledger Nano S+/X, Flex and Stax

We recommend using the npmjs package to receive updates/fixes.

## Transports

`FilecoinApp` accepts any transport that can send an APDU: a legacy `Transport` from
`@ledgerhq/hw-transport`, or a [Device Management Kit](https://www.ledger.com/blog-dmk-rollout)
session wrapped in `DMKTransport` from `@zondax/ledger-js`.

```ts
const app = new FilecoinApp(transport)
```

### Breaking change: the transport type parameter

The class is now generic in its transport -- `FilecoinApp<T extends LedgerTransport = LedgerTransport>`
-- so that `app.transport` keeps the type you constructed it with. `T` is inferred from the
constructor argument, so `new FilecoinApp(transport)` is unaffected.

Writing the type yourself is not. The bare form falls back to the `LedgerTransport` default,
which describes `send` and nothing else, so hw-transport members reached through it
(`close`, `exchange`, `on`) stop typechecking. Name the transport type to keep them:

```diff
-let app: FilecoinApp
+let app: FilecoinApp<Transport>
```

## Development

### Available Scripts

```bash
# Build the project
pnpm build

# Format code and sort package.json
pnpm format

# Check formatting
pnpm format:check

# Run linter
pnpm lint

# Fix linting issues
pnpm lint:fix

# Run tests (builds first)
pnpm test

# Check for dependency updates
pnpm upgrade
```

## Notes

Use `pnpm install` to avoid issues.

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