https://github.com/zachstruck/bitcoin-handshake
A simple test program to connect to a Bitcoin node
https://github.com/zachstruck/bitcoin-handshake
Last synced: 7 days ago
JSON representation
A simple test program to connect to a Bitcoin node
- Host: GitHub
- URL: https://github.com/zachstruck/bitcoin-handshake
- Owner: zachstruck
- Created: 2024-06-10T08:39:40.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-10T08:39:45.000Z (about 2 years ago)
- Last Synced: 2025-06-20T11:10:54.612Z (about 1 year ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```sh
cargo r --release -- --ip-address --port
```
### Command to Display Help
There is a basic help:
```sh
cargo r --release -- --help
```
## How to Verify Handshake
### Example Command
This Bitcoin node seemed reliable during my testing:
```sh
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:
```text
successful handshake
```