Terminal-based utilities for Bitcoin and forkcoin full nodes
- Python 96%
- Shell 3.3%
- Nix 0.7%
Get balances for arbitrary addresses in the blockchain
Testing:
$ test/test.py -e regtest
Example:
# Top 10 Bitcoin addresses by balance (see https://blockchair.com/bitcoin/addresses)
$ top10='
34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo
bc1qgdjqv0av3q56jvd82tkdjpy7gdp9ut8tlqmgrpmv24sq90ecnvqqjwvw97
1LQoWist8KkaUXSPKZHNvEyfrEkPHzSsCd
3LYJfcfHPXYJreMsASk2jkn69LWEYKzexb
3M219KR5vEneNb47ewrPfWyb5jQ2DjxRP6
bc1qazcm763858nkj2dj986etajv6wquslv8uxwczt
37XuVSEpWW4trkfmvWzegTHQt7BdktSKUs
1FeexV6bAHb8ybZjqQMjJrcCrHGW9sb6uF
bc1qa5wkgaew2dkv56kfvj49j0av5nml45x9ek9hz6
3Kzh9qAqVWQhEsfQz7zEQL1EuSx5tyNLNS'
# Compact summary:
$ mmnode-addrbal --tabular $top10
# Full output:
$ mmnode-addrbal $top10
|
||
|---|---|---|
| cmds | ||
| mmgen_node_tools | ||
| test | ||
| LICENSE | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.md | ||
| setup.cfg | ||
MMGen Node Tools
Helper utilities for Bitcoin and forkcoin full nodes.
Requires modules from the MMGen online/offline cryptocurrency wallet.
Currently tested on Linux only. Some scripts may not work under Windows/MSYS2.
Install:
First, install MMGen.
Then,
$ git clone https://github.com/mmgen/mmgen-node-tools
$ cd mmgen-node-tools
$ python3 -m build --no-isolation
$ python3 -m pip install --user dist/*.whl
Also make sure that ~/.local/bin is in PATH.
Test:
NOTE: the tests require that the MMGen and MMGen Node Tools repositories be located in the same directory.
$ test/init.sh
$ test/test-release.sh -A # BTC-only testing
$ test/test-release.sh # Full testing
Forum | PGP Public Key | Donate: 15TLdmi5NYLdqmtCqczUs5pBPkJDXRs83w