Skip to content

whodaniel/eulerbeats-cli

 
 

Repository files navigation

eulerbeats-cli

npm package

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:

  1. Look for a URL passed via --rpc.
  2. Look at the environment variable PROVIDER_URL (you can use a .env file in the root of this project, which is git-ignored).
  3. 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.

Publishing

Build app to dist/

$ npm build

Publish app to npm (includes dist/)

$ npm publish

About

A command-line tool for EulerBeats

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.9%
  • JavaScript 4.1%