user15064: How is it possible to get the latest transactions txid in real-time? I mean to implement something similar to what blockchain.info does on its homepage. How do they do it to get all transactions info that happens on the network? I'm talking about zero-confirmation transactions.
EDIT
I have found out the API getrawmempool. Does this answer the question? Does it contain all the real-time transactions in the network for the current live block?

user6693: blockchain.info offers a web socket for real time information about blocks and tranasactions.
Have a look at https://blockchain.info/it/api/api_websocket
-- UPDATE
to avoid relying on third party services, I would now suggest to use a bitcoin node with zmq

user7043: -walletnotify=<cmd>    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID), if you only care about wallet transaction.
If you want any TxID, I think that is not possible with the standard client. You could however program something yourself that listens for message passing between the Bitcoin software and the operating system, or you can fork the client of course.
In my opinion the layered approach is preferable, as it is more flexible and secure (although you have less possibilities). For the layered approach I see two possibilities:

The Wireshark option (i.e. hooking into the Windows networking implementation and filtering Bitcoin messages).
Create a SOCKS server and let the Bitcoin client connect to the network through it (using the -proxy option), and then log and process all passing messages.


15064: <p>How is it possible to get the latest transactions txid in real-time? I mean to implement something similar to what blockchain.info does on its homepage. How do they do it to get all transactions info that happens on the network? I'm talking about zero-confirmation transactions.</p>

<p><strong>EDIT</strong>
I have found out the API getrawmempool. Does this answer the question? Does it contain all the real-time transactions in the network for the current live block?</p>
 6693: <p>blockchain.info offers a web socket for real time information about blocks and tranasactions.
Have a look at <a href="https://blockchain.info/it/api/api_websocket" rel="nofollow noreferrer">https://blockchain.info/it/api/api_websocket</a></p>

<p>-- UPDATE</p>

<p>to avoid relying on third party services, I would now suggest to use a bitcoin node with zmq</p>
 7043: <p><code>-walletnotify=&lt;cmd&gt;    Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</code>, if you only care about wallet transaction.</p>

<p>If you want any TxID, I think that is not possible with the standard client. You could however program something yourself that listens for message passing between the Bitcoin software and the operating system, or you can fork the client of course.</p>

<p>In my opinion the layered approach is preferable, as it is more flexible and secure (although you have less possibilities). For the layered approach I see two possibilities:</p>

<ul>
<li>The Wireshark option (i.e. hooking into the Windows networking implementation and filtering Bitcoin messages).</li>
<li>Create a SOCKS server and let the Bitcoin client connect to the network through it (using the <code>-proxy</code> option), and then log and process all passing messages.</li>
</ul>
