Necessary Pigeonholing Mechanism
Have ideas to improve npm?Join in the discussion! »

filecoin-chaininfo

1.0.4 • Public • Published

Filecoin ChainInfo

Install

npm i filecoin-chaininfo

Usage

const { FilecoinChainInfo } = require('filecoin-chaininfo');
let filecoinChainInfo = new FilecoinChainInfo('lotus.api', 'lotus.token');

filecoinChainInfo.GetMessages(261000 /*start block*/, 261020 /*end block*/, async (messages) => {
  for (const msg of messages) {
    if (msg.receipt.ExitCode == 0) {
      // ...
      console.log(msg);
    }
  }
});

Keywords

none

Install

npm i filecoin-chaininfo

DownloadsWeekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

5.75 kB

Total Files

5

Last publish

Collaborators

  • avatar