I need to capture and store the raw transactions coming through my local full-node bitcoin instance. I read here that it is possible, but there is no mention of the particular RPC calls. I also see the raw transaction JSON-RPC API, but it is still not clear how to use this to periodically query the raw transactions.
It seems like bitcoin-sniffer (written in python) is what I am trying to do and need, and since I am using Java, it seems bitcoinj can actually listen for incoming transactions, but I don't see example codes on how to do this.
My question is, how do I use the HTTP POST JSON RPC API back to my local bitcoin instance to query for transactions? Is there a tutorial?
I'd imagine I would be running in a continuous thread and periodically query bitcoind (the daemon) for the latest batch of transactions. Is this possible?