@infinitescroll/streams-js

0.0.1-alpha.10 • Public • Published

filecoin-message

Travis CI

Install

npm i @openworklabs/filecoin-message

Usage

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

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

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 @infinitescroll/streams-js

Weekly Downloads

1

Version

0.0.1-alpha.10

License

(Apache-2.0 OR MIT)

Unpacked Size

38.1 kB

Total Files

28

Last publish

Collaborators

  • schwartzz8990