<p>I came across <a href="https://ultraconfig.com.au/blog/introduction-to-the-bitcoin-network-protocol-using-python-and-tcp-sockets/" rel="nofollow noreferrer">this resource</a> that can be potentially used to send messages to nodes.</p>
<p>How would I go about sending addr messages to nodes?
Is there a built in utility that I could use(bitcoin-cli) or do I have to resort writing a script?</p>

CC BY-SA 4.0
2022-08-29T12:12:38.077Z
Not sure I understand the question. If you run a full node (e.g. Bitcoin Core) you will send addr messages to nodes by default and help them find other peers (part of the P2P protocol). What exactly do you want to do beyond this? You want to send them specific addr messages at the time of your choosing or you want to experiment with your own script?
Michael Folkson
CC BY-SA 4.0
2022-08-29T12:50:30.677Z
I am trying to experiment with my own script to actually see how the buckets are populated with and without the use of an asmap.
Vinay Shetty
CC BY-SA 4.0
2022-08-29T12:58:34.290Z
Ah ok, cool. Afaik there isn't any built in utility. You'll have to write a script to send additional addr messages that Core wouldn't send.
Michael Folkson
<bitcoin-core><bitcoin-core-development><bitcoin-cli><p2p>
Sending addr messages to nodes
Vinay Shetty
# Sending addr messages to nodes

(Asked by: username_0 on 2022-08-29)

I came across [this resource](https://ultraconfig.com.au/blog/introduction-to-the-bitcoin-network-protocol-using-python-and-tcp-sockets/) that can be potentially used to send messages to nodes.

How would I go about sending addr messages to nodes?
Is there a built in utility that I could use(bitcoin-cli) or do I have to resort writing a script?

**Tags:** bitcoin-core, bitcoin-core-development, bitcoin-cli, p2p

> **Comments:**
> **username_1**: Not sure I understand the question. If you run a full node (e.g. Bitcoin Core) you will send addr messages to nodes by default and help them find other peers (part of the P2P protocol). What exactly do you want to do beyond this? You want to send them specific addr messages at the time of your choosing or you want to experiment with your own script?  
> **username_0**: I am trying to experiment with my own script to actually see how the buckets are populated with and without the use of an asmap.  
> **username_1**: Ah ok, cool. Afaik there isn't any built in utility. You'll have to write a script to send additional addr messages that Core wouldn't send.  

---

## 0 answers

