@glif/filecoin-message
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

filecoin-message

Install

npm i @glif/filecoin-message

Usage

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
npm run test

License

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

Readme

Keywords

none

Package Sidebar

Install

npm i @glif/filecoin-message

Weekly Downloads

1,019

Version

3.0.4

License

(Apache-2.0 OR MIT)

Unpacked Size

136 kB

Total Files

12

Last publish

Collaborators

  • schwartzz8990
  • bret
  • glifbot