fast-wan-web3

1.0.3 • Public • Published

fast-wan-web3

This is a npm use to get the fast web3 provider.

const fastWeb3 = require('fast-wan-web3');

async function main() {
    //networkId 3 is testnet, 1 is mainnet
    let networkId = 3;
    await fastWeb3.init(networkId);
    let web3 = await fastWeb3.getWeb3();
    console.log(await web3.eth.getBlockNumber());
}

main();

Readme

Keywords

none

Package Sidebar

Install

npm i fast-wan-web3

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

10.8 kB

Total Files

10

Last publish

Collaborators

  • wanfans