May I connect to any bitcoin core node, for example, this node using telnet and get its mempool transactions or even broadcast some transaction?

I've read that section https://bitcoin.org/en/developer-reference#mempool but can somebody give an example?

2 Answers 2


No, you cannot use telnet. You will need to use a software that can speak the Bitcoin Peer-to-Peer protocol. There is no easy command line way to do this with the typical utilities, you need to have your own software. Note that you cannot just send the message to the node, you will need to perform the connection handshake as well.

You can use the Python Bitcoin library to write a python script that does what you need.

For sending a raw transaction over the P2P network, you can use the submittx tool.


I've been working on this lately: You can use https://github.com/dev7ba/mempoolcp if you have two nodes and wants to transfer all transactions from one to the other.

If you want to download a mempool from other people you can use https://github.com/dev7ba/mempool-client which downloads the mempool used in https://mempoolexplorer.com (managed and hosted by me). Also you can setup your own server to download your mempool: https://github.com/dev7ba/mempool-server

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.