Socket
Socket
Sign inDemoInstall

@glif/filecoin-message

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glif/filecoin-message

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


Version published
Weekly downloads
886
decreased by-26.96%
Maintainers
3
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 11 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc