1

May I connect to any bitcoin core node, for example, this node 119.23.63.114:8333 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?

3

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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