Topics
Last updated
Was this helpful?
Last updated
Was this helpful?
The Topics endpoints in the Hedera Mirror Node REST API allows developers to query topics and messages. These endpoints are crucial for retrieving topic details, message history, and tracking consensus events on the network.
The following endpoints are available for the Topics object:
Endpoint
Description
GET /api/v1/topics/{id}/messages
Retrieves messages for a specific topic by ID.
GET /api/v1/topics/{id}/messages/{sequence_number}
Fetches a specific message from a topic using sequence number.
GET /api/v1/topics/{id}/messages/{consensusTimestamp}
Retrieves a topic message by consensus timestamp.
GET /api/v1/topics/{topicid}
Retrieves the topic details for the given topic ID.
consensus_timestamp
The consensus timestamp of the message in seconds.nanoseconds
topic_id
The ID of the topic the message was submitted to
payer_account_id
The account ID that paid for the transaction to submit the message
message
The content of the message
running_hash
The new running hash of the topic that received the message
sequence_number
The sequence number of the message relative to all other messages for the same topic