Skip to content

infertux/bitcoin-prober

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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+

About

Gather information from any remote Bitcoin node

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors