Skip to content

zachstruck/bitcoin-handshake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Handshake Test

This simple program performs a handshake with a Bitcoin node. It sends a version message, then waits to receive a version message as well as a verack message, and finally acknowledges this by sending its own verack message in return.

How to Run

Command to Execute Program

cargo r --release -- --ip-address <IP_ADDRESS> --port <PORT>

Command to Display Help

There is a basic help:

cargo r --release -- --help

How to Verify Handshake

Example Command

This Bitcoin node seemed reliable during my testing:

cargo r --release -- --ip-address 65.109.34.157

The program will default to port 8333.

Verification Message

If successfully connected and run, the program will print:

successful handshake

About

A simple test program to connect to a Bitcoin node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages