Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/infertux/bitcoin-prober

Gather information from any remote Bitcoin node
https://github.com/infertux/bitcoin-prober

bch bchd bitcoin btc nmap scanner tcp-client

Last synced: 18 days ago
JSON representation

Gather information from any remote Bitcoin node

Awesome Lists containing this project

README

        

# bitcoin-prober

This is a simple program that sends a `version` message to a given `host:port` and outputs details about the remote BCH/BTC node.

Here are some example outputs:

```
$ ./bitcoin-prober --help
Usage of ./bitcoin-prober:
-address string
Address to probe
-network string
Network (BCH or BTC) (default "BCH")
-verbose
Be verbose

$ ./bitcoin-prober --address bch.imaginary.cash
Resolved bch.imaginary.cash to 67.223.119.97:8333
Probing 67.223.119.97:8333 on the BCH network...
UserAgent: /Bitcoin Cash Node:27.0.0(EB32.0)/
Services: SFNodeNetwork|SFNodeBloom|SFNodeBitcoinCash|SFNodeNetworkLimited
ProtocolVersion: 70016
LastBlock: 824264
RelayTx: true

$ ./bitcoin-prober --network BTC --address 141.105.69.133:8333
Probing 141.105.69.133:8333 on the BTC network...
141.105.69.133 is located in RU
UserAgent: /Satoshi:0.18.0/
Services: SFNodeNetwork|SFNodeBloom|SFNodeWitness|SFNodeNetworkLimited
ProtocolVersion: 70015
LastBlock: 584885
RelayTx: true
```

_This was quickly hacked together, improvements are welcome!_

## License

AGPLv3+