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 ...

Get Building Blockchain Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.