How are txs stored in a block?

+2 votes
How do a MultiChain blockchain stores txs in its blocks? Does it store it like a Merkle Tree (as in Bitcoin) or as just as a list? In particular, if I want to query the blockchain to check whether a certain tx exists, what should I do?
asked May 8, 2018 by TinfoilHat

1 Answer

+1 vote
 
Best answer

MultiChain stores transactions in blocks in the same was as bitcoin – as a concatenated list after the block header, and with a merkle root of the transaction tree inside the block header.

Any MultiChain node that hasn't had its txindex runtime parameter changed from the default of 1 will let you query for transactions directly using the getrawtransaction API.

answered May 9, 2018 by MultiChain
selected May 15, 2018 by TinfoilHat
...