What are topics?
In Syntropy's Data Layer (DL), a topic represents a specific stream of blockchain data made available for consumption by developers and applications. Topics are granular units that encapsulate different types of data within a blockchain network. Each topic is designed to cater to a particular aspect or event within the blockchain, enabling developers to access and process only the data they require, minimizing unnecessary data consumption and optimizing performance.
The example of a topic would be
syntropy.ethereum.tx - this would imply that the given data stream is provided by Syntropy, as a data provider and contains transactions that happened in the Ethereum network.
Let's dig deeper into Ethereum-based examples
In Syntropy's Data Layer, Ethereum data stream offers developers access to three specific topics, each catering to distinct aspects of the Ethereum blockchain. These topics enable developers to fine-tune their data consumption and focus only on the information relevant to their dApp's requirements, reducing unnecessary data usage and optimizing performance.
syntropy.ethereum.tx: This topic contains Ethereum chain transaction data. Developers can subscribe to this topic to gain real-time access to transactional activities occurring on the Ethereum blockchain. Whether it's monitoring token transfers, smart contract interactions, or any other transactions, this topic provides detailed insights into the movements and activities within the Ethereum network.
syntropy.ethereum.block: The second topic contains Ethereum chain block data. By subscribing to this topic, developers can access crucial information about individual blocks on the Ethereum blockchain. This data includes block headers, timestamps, block numbers, and other relevant details. Utilizing this topic, developers can closely track the block-level events and trends on the Ethereum blockchain.
syntropy.ethereum.header: The third topic provides access to Ethereum chain header data. Subscribing to this topic offers developers an overview of Ethereum blockchain headers, which include key metadata and information about blocks.
As a developer, you have the flexibility to choose the topics you want to subscribe to within the Ethereum data stream. This subscription-based approach allows you to tailor your data consumption to match your dApp's specific needs. By selecting relevant topics, you ensure that your application receives precisely the data it requires, enhancing efficiency, and optimizing resource usage.
For a more comprehensive understanding of each stream and its specific topics, we encourage you to explore the detailed documentation provided for each stream within the Developer Portal. In the documentation, you will find in-depth information about the available topics, their structures, and their potential use cases.