Git Product home page Git Product logo

node-cmd's Introduction

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

node-cmd's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.