Post
Topic
Board Bitcoin Technical Support
Merits 5 from 2 users
Re: How do I find the information of the Bitcoin protocol version
by
pooya87
on 28/04/2024, 04:51:55 UTC
⭐ Merited by ABCbits (3) ,hugeblack (2)
I want to broadcast Bitcoin transactions using python's socket library.
If that's all you want to do, you need not concern yourself with the protocol version. The process is like it's always been:
1. Open socket and connect to the peer using its IP address and port
2. Perform handshare (Send version, receive version and verack, send verack)
3. Push your tx in a tx message

The three message types and their structures on explained in the link you shared.
https://developer.bitcoin.org/reference/p2p_networking.html#version
https://developer.bitcoin.org/reference/p2p_networking.html#verack
https://developer.bitcoin.org/reference/p2p_networking.html#tx

FWIW protocol version 70016 introduced wtxid-based relay and nodes that have that version support this feature.