Get topic messages
Subscribe to a topic ID's messages from a mirror node. You will receive all messages for the specified topic or within the defined start and end time.
Query Fees
Please see the transaction and query fees table for base transaction fee
Please use the Hedera fee estimator to estimate your query fee cost
Constructor | Description |
---|---|
| Initializes the MirrorConsensusTopicQuery object |
Methods
Method | Type | Description | Requirement |
---|---|---|---|
| TopicId | The topic ID to subscribe to | Required |
| Instant | The time to start subscribing to a topic's messages | Optional |
| Instant | The time to stop subscribing to a topic's messages | Optional |
| long | The number of messages to return | Optional |
| MirrorClient, Consumer <MirrorConsensusTopicResponse>, Consumer<Throwable> | Subscribe and get the messages for a topic | Required |
Last updated