Skip to content

Conversation

@manishdait
Copy link
Contributor

This pull request introduces the TopicRepository interface and its implementation for interacting with the Mirror Node REST API to query topic information and messages.

Key Features Implemented:

  • findTopicById()
  • getMessaages()
  • getMessageBySequenceNumber()

Closes: #166

Signed-off-by: Manish Dait <daitmanish88@gmail.com>
Signed-off-by: Manish Dait <daitmanish88@gmail.com>

@NonNull
default JSON queryTopicById(TopicId topicId) throws HieroException {
System.out.println("/api/v1/topics/" + topicId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove the System.out.println ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Manish Dait <daitmanish88@gmail.com>
@hendrikebbers hendrikebbers merged commit 20ff854 into OpenElements:main Apr 10, 2025
3 of 4 checks passed
@manishdait manishdait deleted the topic-repository branch April 11, 2025 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide TopicRepository to query Information about Topic and TopicMessages

2 participants