This is a command line tool built using Node.js and the Infura API.
This app was built to be used as a global module but you can also clone it and run it locally (npm run dev
) for testing.
Please raise issues for suggested improvements or bugs. :)
Version 2 was upgraded to have a more interactive interface for the cli.
- You will need to set up an API key with Infura. Go to infura.io and follow steps to set up your account.
npm install -g blockx
Initialize the app with Infura:
Configure .env
file with this command:
bex init [YOUR_API_KEY]
// or
bex i [YOUR_API_KEY]
Run the application:
bex run
// or
bex r
Then follow the prompts to get the information you want.
- You will need to set up an API key with Infura. Go to infura.io and follow steps to set up your account.
npm install -g blockx
- Configure
.env
file with this command:
bex --init [YOUR_API_KEY]
// e.g.
bex --init 1a1a1a1a1a1a1a1a1a1a1a1a1a1a1
- Run the program:
bex [options]
npm test
to lint and test the app
bex -l
// or
bex --latest
bex --start [startingBlockNumber] --end [endingBlockNumber]
// e.g.
bex --start 6008149 --end 6008153
// you can also only denote a start block and the end block will default to the latest on the Ethereum blockchain
bex --start 6008149
bex --help
- upgrade/fix testing
- performance upgrades