Skip to content

nsvrn/node-cmd

Repository files navigation

node-cmd


Command line tool that aggregates information from the Bitcoin RPC.

Setup

  1. Don't trust, verify: audit the code thoroughly.
  2. Clone and install requirements:
    git clone https://github.com/ns-xvrn/node-cmd.git &&
    cd node-cmd &&
    pip install -r requirements.txt
  1. You can add an alias in your .bashrc and run source .bashrc:

alias nodecmd="python3 /path/to/node-cmd/node_cmd.py"

  1. The first time your run it, it will automatically copy settings.conf.sample and open settings.conf in vim,
    make sure to setup the RPC settings correctly.
    Thereafter you can edit conf using nodecmd settings command when needed.

info - live view (auto-refreshes)

NOTE: only price fetch is a non Bitcoin rpc fetch, you can disable it in settings.conf with enable_price_fetch=0

nodecmd or nodecmd info

alt info

chainstate (utxo summary)

alt chainstate

wallets summary

alt wallets

unspent (wallet utxos)

alt unspent

fees (estimatesmartfees for target n blocks)

alt fees

rpc calls:

  • RPC calls ref
  • Passes through RPC calls and returns the json response as-is
  • Pass multiple parameters as comma-separated string (strings in double quotes, numerics without quotes)
  • Example 1: nodecmd rpc -method=getblockchaininfo
  • Example 2: nodecmd rpc -rpcwallet=test -method=getwalletinfo
  • Example 3: nodecmd rpc -method=estimatesmartfee -params=1
  • Example 4: nodecmd rpc -method=getmempoolentry -params="9b0b033ddd5ebe5f6a78cedb2432e33d2e739ff04d59278017298564391272fb"

alt rpc

About

Bitcoin node command line stats via RPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages