@eulerbeats/eulerbeats-cli
v0.0.7
Published
A command-line tool to query the EulerBeats smart contract system
Downloads
10
Keywords
Readme
eulerbeats-cli
EulerBeats CLI is a command-line tool to query the Eulerbeats smart contract system.
This tool uses the Ethereum mainnet as its data source. We try to include at least one public json rpc url as part of the cli, so everything might just work for you, but if it doesn't...
We recommend getting a free account from Infura or Alchemy to get a reliable provider if you don't already have one. See the Ethereum Nodes site for an up-to-date list of nodes that are available.
Some commands allow you to get the state of the blockchain at a certain point in time (for example, all print holders at a specific block number). These may require what is called an archive node, so you'll need to ensure the node you are using has this capability. Alchemy includes this in their free plan.
Join the #dev channel on our Discord server for updates, tips & tricks and more.
Quickstart
Globally
$ npm install -g @eulerbeats/eulerbeats-cli
$ eb-cli
Locally
$ npm install @eulerbeats/eulerbeats-cli
$ npx eb-cli
JSON RPC Configuration
Internally the program does one of the following:
- Look for a URL passed via
--rpc
. - Look at the environment variable
PROVIDER_URL
(you can use a.env
file in the root of this project, which is git-ignored). - Fallback to a hardcoded, unreliable, public provider url.
Development
We would love to have your helping hand on eulerbeats-cli! Please see CONTRIBUTING.md for more information on what we're looking for and how to get started.