What's the difference between hashtx and rawtx in ZeroMQ of bitcoind? I'm trying to use ZeroMQ integration feature from bitcoind.

According to docs it supports four topic:


hashtx
hashblock
rawblock
rawtx


Sadly, they are not very well documented.

So, what is the difference between raw/hash topics?
After some investigation, I found out that RAW topics actually include entire body of transaction/block descriptor.

See, Raw Transactions.

Actually, you could explore the transaction descriptor content in JSON format by first converting binary data to HEX-string and then by pasting it to the blockchain.info tool or by using RPC call of bitcoind: decoderawtransaction.