10. Blockchain Data Services
The previous chapter explained how the blockchain stores state data in block-based databases. The data is organized into a tree structure, and each block has a timestamp. This structure makes it easy to add new data (new blocks) and almost impossible to delete or change anything in old blocks, hence securing the blockchain data. However, while you can easily list each block’s content (i.e., transactions), it is hard to get longitudinal or aggregated views of the blockchain state. As a result, it is hard to search the blockchain data based on an address or specific actions performed by an address. Yet, many blockchain applications require the capability to search and analyze blockchain data.
A common design pattern ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access