4

Is there any way by which I can receive each and every Bitcoin transaction that takes place on the Bitcoin network(not only my own wallet's transactions)? Just the way Blockchain.info provides a transaction stream no matter who made them and to whom they are going?

Can txindex=1 helps in this regard too?

2

Jeff Garzik's PyNode will, by default, connect to a Bitcoin Core running on local host a as a full node and download each transaction your node relays to it. If you know Python, you can add extra triggers and post-processing to it.

Note, PyNode seems to be abandonware, and I think you currently need to hack it to get it to work with the latest versions of python-bitcoinlib. It may still work with an older version of python-bitcoinlib. You may also have better luck with PyNode2, a fork of the original PyNode.

  • Thanks. Is there a Java version of this sort available by any means? – Waqas Shah Jan 26 '15 at 12:32
  • BitcoinJ, the Java Bitcoin library, has a full node mode. – David A. Harding Jan 26 '15 at 14:23
  • Thanks a lot! You put me in the right direction. Though, I am assuming that I am going to be getting all the transactions that arrive on the Bitcoin network. Am I correct? Or will there be some transactions that I might not get? – Waqas Shah Jan 27 '15 at 4:26
  • It's easier to say what you won't receive: you likely won't receive non-standard transactions and you won't receive many double spends. You also likely won't receive transactions initially broadcast before your node comes online, unless those transactions were included in a block on the best block chain or rebroadcast. You should receive everything else, which is most legitimate transactions. – David A. Harding Jan 27 '15 at 4:35
0

Taking into account the P2P nature of the network, you are not exposed to all packets in the network.

Transactions are broadcasted and forwarded in the P2P network before they are enclosed in a winning block, There is always a chance your node will not receive a specific transaction.

It seems blockchain.info advertises transaction forwards it receives (it doesn't mean they receive everything).

Having many nodes in different geographical areas increases their chances to receive more.

If you are talking only about transactions in winning nodes on the block chain, then of course you can receive those.

  • Thanks for the reply! What do you mean by the winning node? And how will it be possible then to get the new transactions just as they arrive on the Bitcoin Network? I know that I can receive them once I have the block, but I want to receive them when they are added to that block, but that block has not yet been added to the blockchain! – Waqas Shah Jan 15 '15 at 13:03
  • Can you let me know of how I can receive the transactions that you mentioned at the end of your comment? – Waqas Shah Jan 26 '15 at 12:30

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.