# iso-filecoin

> Isomorphic filecoin abstractions for RPC, signatures, address, token and wallet

Latest version **7.4.7** (published 2025-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install iso-filecoin
pnpm add iso-filecoin
yarn add iso-filecoin
bun add iso-filecoin
```

## Health

**Score 65/100 (B)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.4.7 |
| Published | 2025-11-12 |
| First published | 2023-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 12 |
| Unpacked size | 916.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | Hugo Dias |
| Maintainers | hugomrdias |
| Keywords | token, filecoin, crypto, wallet |

## Links

- npm: https://www.npmjs.com/package/iso-filecoin
- Repository: https://github.com/hugomrdias/filecoin
- Homepage: https://github.com/hugomrdias/filecoin/tree/main/packages/iso-filecoin
- Issues: https://github.com/hugomrdias/filecoin/issues
- npm.io page: https://npm.io/package/iso-filecoin

## Dependencies (12)

- [zod](https://npm.io/package/zod.md) ^4.1.12
- [iso-kv](https://npm.io/package/iso-kv.md) ^3.1.1
- [abitype](https://npm.io/package/abitype.md) ^1.1.1
- [iso-web](https://npm.io/package/iso-web.md) ^1.4.3
- [iso-base](https://npm.io/package/iso-base.md) ^4.2.1
- [@scure/bip32](https://npm.io/package/@scure/bip32.md) ^1.7.0
- [@scure/bip39](https://npm.io/package/@scure/bip39.md) ^1.6.0
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.3.1
- [@noble/curves](https://npm.io/package/@noble/curves.md) ^1.9.6
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^2.0.1
- [@ipld/dag-cbor](https://npm.io/package/@ipld/dag-cbor.md) ^9.2.4
- [@ledgerhq/errors](https://npm.io/package/@ledgerhq/errors.md) ^6.27.0

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 7.4.7 (latest) — 2025-11-12
- 7.4.6 — 2025-11-12
- 7.4.5 — 2025-10-14
- 7.4.4 — 2025-08-20
- 7.4.3 — 2025-08-13
- 7.4.2 — 2025-08-13
- 7.4.1 — 2025-08-13
- 7.4.0 — 2025-07-30
- 7.3.0 — 2025-07-28
- 7.2.2 — 2025-04-11
- 7.2.0 — 2025-04-04
- 7.1.3 — 2025-03-26
- 7.1.2 — 2025-03-18
- 7.1.1 — 2025-03-13
- 7.1.0 — 2025-02-25
- … 37 more at https://npm.io/package/iso-filecoin/versions

## README

# iso-filecoin

[![npm (scoped)](https://img.shields.io/npm/v/iso-filecoin.svg)](https://www.npmjs.com/package/iso-filecoin)
[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/fission-codes/filecoin/iso-filecoin.yml)](https://github.com/fission-codes/filecoin/actions/workflows/iso-filecoin.yml)

Filecoin Javascript Standard Library. Used by the [Metamask Filecoin Wallet](https://github.com/filecoin-project/filsnap) and [Ledger Live Filecoin app](https://www.ledger.com/coin/wallet/filecoin).

## Install

```bash
pnpm install iso-filecoin
```

## Usage

```js
import { Token } from 'iso-filecoin/token'
import * as Wallet  from 'iso-filecoin/wallet'

Token.fromFIL(1).toPicoFIL().toString() // '1000000000000'

const mnemonic = Wallet.generateMnemonic()
const seed = Wallet.mnemonicToSeed(mnemonic)
const account = Wallet.accountFromSeed(
    seed,
    'SECP256K1',
    "m/44'/461'/0'/0/0"
)
const account = Wallet.accountFromMnemonic(
    mnemonic,
    'SECP256K1',
    "m/44'/461'/0'/0/0"
)

const address = account.address.toString() 
//  'f17levgrkmq7jeloew44ixqokvl4qdozvmacidp7i'
```

## Docs

Check [docs website](https://filecoin.hugomrdias.dev)

## Contributing

Read contributing [guidelines](../../.github/CONTRIBUTING.md).

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/hugomrdias/filecoin)

## License

[MIT](../../license) © [Hugo Dias](http://hugodias.me)

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