Get HCS topic messages endpoint
GET /v2/hcs/topic/{topicId}/message
GET
/v2/hcs/topic/{topicId}/message
Retrieve a paginated list of messages from an HCS topic.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” topicId
required
string
Topic UUID
Query Parameters
Section titled “Query Parameters ” page[number]
number
Page number (starts at 1)
Example
1
page[size]
number
Items per page
Example
10
Header Parameters
Section titled “Header Parameters ” X-API-Key
string
API Key
X-API-Secret
string
API Secret
Responses
Section titled “ Responses ”The requested HCS topic messages.
object
items
required
List of messages
Array<object>
object
id
required
The Message Id
string
topicId
required
The topic UUID
string
message
The message published on Hedera Consensus Service topic
string
url
The link to the network message
string
event
required
The name of the event
string
transactionId
A transaction id from saved topic message
string
page
required
The default pagination
object
number
required
The current page number.
number
1
size
required
The number of items per page.
number
10
totalPages
required
The total number of pages available.
number
100
totalCount
required
The total number of items available.
number
1000
hasNext
required
Indicates whether there is a next page available.
boolean
true
hasPrev
required
Indicates whether there is a previous page available.
boolean
true