Command line tool that aggregates information from the Bitcoin RPC.
- Don't trust, verify: audit the code thoroughly.
- Clone and install requirements:
git clone https://github.com/ns-xvrn/node-cmd.git &&
cd node-cmd &&
pip install -r requirements.txt
- You can add an alias in your
.bashrc
and runsource .bashrc
:
alias nodecmd="python3 /path/to/node-cmd/node_cmd.py"
- The first time your run it, it will automatically copy
settings.conf.sample
and opensettings.conf
invim
,
make sure to setup the RPC settings correctly.
Thereafter you can edit conf usingnodecmd settings
command when needed.
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
- 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"