eth-chains-cli

Crates.ioeth-chains-cli
lib.rseth-chains-cli
version0.6.5
sourcesrc
created_at2023-03-25 06:16:57.059825
updated_at2024-01-22 01:54:06.774246
descriptionTool for querying ethereum-like chains' info
homepage
repositoryhttps://github.com/boundless-forest/eth-chains-cli
max_upload_size
id819953
size36,737
Bear Wang (boundless-forest)

documentation

README

Inspired by ethereum chains.

A simple tool for querying RPC, Token info of the Ethereum chains.

Install

cargo install eth-chains-cli

Usage

  • Get chain info by id
$ eth-chains-cli by-id --id 1

╭-----------------+-------------------------------------------------╮
| ITEMS           | VALUE                                           |
+===================================================================+
| CHAIN_NAME      | Ethereum Mainnet                                |
|-----------------+-------------------------------------------------|
| CHAIN_ID        | 1                                               |
|-----------------+-------------------------------------------------|
| NATIVE_CURRENCY | Ether                                           |
|-----------------+-------------------------------------------------|
| SYMBOL          | ETH                                             |
|-----------------+-------------------------------------------------|
| DECIMALS        | 18                                              |
|-----------------+-------------------------------------------------|
| NETWORK         | 1                                               |
|-----------------+-------------------------------------------------|
| INFO            | https://ethereum.org                            |
|-----------------+-------------------------------------------------|
| RPC             | https://mainnet.infura.io/v3/${INFURA_API_KEY}  |
|                 | wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY} |
|                 | https://api.mycryptoapi.com/eth                 |
|                 | https://cloudflare-eth.com                      |
|                 | https://ethereum.publicnode.com                 |
|                 | wss://ethereum.publicnode.com                   |
|                 | https://mainnet.gateway.tenderly.co             |
|                 | wss://mainnet.gateway.tenderly.co               |
|                 | https://rpc.blocknative.com/boost               |
|                 | https://rpc.flashbots.net                       |
|                 | https://rpc.flashbots.net/fast                  |
|                 | https://rpc.mevblocker.io                       |
|                 | https://rpc.mevblocker.io/fast                  |
|                 | https://rpc.mevblocker.io/noreverts             |
|                 | https://rpc.mevblocker.io/fullprivacy           |
|-----------------+-------------------------------------------------|
| FAUCETS         | None                                            |
|-----------------+-------------------------------------------------|
| EXPLORERS       | etherscan https://etherscan.io                  |
|                 | blockscout https://eth.blockscout.com           |
|                 | dexguru https://ethereum.dex.guru               |
|-----------------+-------------------------------------------------|
| FEATURES        | EIP155                                          |
|                 | EIP1559                                         |
╰-----------------+-------------------------------------------------╯
  • Get chain by name
$ eth-chains-cli by-name -n "Ethereum"

╭------------------------+----------------------╮
| Candidate Chain's Name | Candidate Chain's ID |
+===============================================+
| Ethereum Mainnet       | 1                    |
|------------------------+----------------------|
| Ethereum Classic       | 61                   |
|------------------------+----------------------|
| ethereum Fair          | 513100               |
╰------------------------+----------------------╯
  • Get all chains list
$ eth-chains-cli list

╭──────────────────────┬──────────┬───────────────────────┬────────┬──────────╮
│ CHAIN_NAME           ┆ CHAIN_ID ┆ NATIVE_CURRENCY       ┆ SYMBOL ┆ DECIMALS │
╞══════════════════════╪══════════╪═══════════════════════╪════════╪══════════╡
│ Ethereum Mainnet     ┆ 1        ┆ Ether                 ┆ ETH    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Expanse Network      ┆ 2        ┆ Expanse Network Ether ┆ EXP    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Ropsten              ┆ 3        ┆ Ropsten Ether         ┆ ETH    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Rinkeby              ┆ 4        ┆ Rinkeby Ether         ┆ ETH    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Goerli               ┆ 5        ┆ Goerli Ether          ┆ ETH    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Kotti Testnet        ┆ 6        ┆ Kotti Ether           ┆ KOT    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ ThaiChain            ┆ 7        ┆ ThaiChain Ether       ┆ TCH    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Ubiq                 ┆ 8        ┆ Ubiq Ether            ┆ UBQ    ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ Ubiq Network Testnet ┆ 9        ┆ Ubiq Testnet Ether    ┆ TUBQ   ┆ 18       │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌┤
│ OP Mainnet           ┆ 10       ┆ Ether                 ┆ ETH    ┆ 18       │
╰──────────────────────┴──────────┴───────────────────────┴────────┴──────────╯

.....
Commit count: 29

cargo fmt