# @glif/filecoin-message

> The Filecoin message type, used to transfer tokens and make state changes.

Latest version **4.0.0** (published 2025-04-25) · (Apache-2.0 OR MIT) license · 0 weekly downloads

## Install

```sh
npm install @glif/filecoin-message
pnpm add @glif/filecoin-message
yarn add @glif/filecoin-message
bun add @glif/filecoin-message
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2025-04-25 |
| First published | 2020-10-05 |
| Weekly downloads | 0 |
| License | (Apache-2.0 OR MIT) |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 122.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Infinite Scroll <squad@infinitescroll.org> (https://infinitescroll.org) |
| Maintainers | schwartzz8990, bret, glifbot |

## Links

- npm: https://www.npmjs.com/package/@glif/filecoin-message
- Repository: https://github.com/glifio/modules/tree/primary/packages/filecoin-message
- npm.io page: https://npm.io/package/@glif/filecoin-message

## Dependencies (4)

- [uint8arrays](https://npm.io/package/uint8arrays.md) ^3.1.1
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.0
- [multiformats](https://npm.io/package/multiformats.md) ^9.6.5
- [@glif/filecoin-address](https://npm.io/package/@glif/filecoin-address.md) ^4.0.0

## Recent versions

- 4.0.0 (latest) — 2025-04-25
- 3.0.12 — 2024-08-22
- 3.0.7 — 2024-06-25
- 3.0.6 — 2024-06-13
- 3.0.5 — 2024-05-09
- 3.0.4 — 2024-02-29
- 3.0.2 — 2024-02-06
- 3.0.1 — 2024-02-06
- 3.0.0 — 2024-01-15
- 2.0.44 — 2023-03-11
- 2.0.43 — 2023-03-11
- 2.0.42 — 2023-03-11
- 2.0.37 — 2023-02-14
- 2.0.36 — 2023-02-13
- 2.0.35 — 2023-02-09
- … 51 more at https://npm.io/package/@glif/filecoin-message/versions

## README

# filecoin-message

## :warning: UNMAINTAINED PACKAGE :warning:

This package is no longer maintained. We highly recommend looking for alternative solutions.

--- 

## Install

`npm i @glif/filecoin-message`

## Usage

```js
const Message = require('@glif/filecoin-message')
const BigNumber = require('bignumber.js')

const message = new Message({
  to: 't03832874859695014541',
  from: 't1pyfq7dg6sq65acyomqvzvbgwni4zllglqffw5dy',
  nonce: 1,
  value: new BigNumber('1000000000'),
  method: 0,
  params: ''
})

const messageForSerialization = await message.toSerializeableType()
const messageForLotus = message.toLotusType()
```

## Test

`npm i`<br/>
`npm run test`

## License

This repository is dual-licensed under Apache 2.0 and MIT terms.

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