Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the output of the Java example for HCS #7

Open
SimiHunjan opened this issue Oct 5, 2024 · 0 comments
Open

Update the output of the Java example for HCS #7

SimiHunjan opened this issue Oct 5, 2024 · 0 comments

Comments

@SimiHunjan
Copy link

In JS we have:

🏁 Hello Future World - HCS Topic - start …
Read .env file
Using account: 0.0.1455

🟣 Creating new HCS topic …
β†ͺ️ file:///workspace/hello-future-world-js/hcs/script-hcs-topic.js:46:16
The topic create transaction ID: [email protected]
topicId: 0.0.4951245

🟣 Publish message to HCS topic …
β†ͺ️ file:///workspace/hello-future-world-js/hcs/script-hcs-topic.js:71:16
The message submit create transaction ID: [email protected]
topicMsgSeqNum: 1

🟣 View the topic on HashScan …
β†ͺ️ file:///workspace/hello-future-world-js/hcs/script-hcs-topic.js:109:16
Paste URL in browser:
https://hashscan.io/testnet/topic/0.0.4951245

🟣 Get topic data from the Hedera Mirror Node …
β†ͺ️ file:///workspace/hello-future-world-js/hcs/script-hcs-topic.js:120:16
The topic Hedera Mirror Node API URL:
https://testnet.mirrornode.hedera.com/api/v1/topics/0.0.4951245/messages?encoding=base64&limit=5&order=asc&sequencenumber=1
Number of messages retrieved from this topic: 1
Messages retrieved from this topic: [ '#1: Hello HCS!' ]

πŸŽ‰ Hello Future World - HCS Topic - complete …

In Java we have:
🏁 Hello Future World - HCS Topic - start
Using account: 0.0.1455
🟣 Creating new HCS topic
The topic create transaction ID: [email protected]
Topic ID:0.0.4951237
🟣 Publish message to HCS topic
The topic message submit transaction ID: [email protected]
Topic Message Sequence Number:1
🟣 View the topic on HashScan
Topic Hashscan URL:
https://hashscan.io/testnet/topic/0.0.4951237
Get topic data from the Hedera Mirror Node
The topic Hedera Mirror Node API URL:
https://testnet.mirrornode.hedera.com/api/v1/topics/0.0.4951237/messages?encoding=base64&limit=5&order=asc&sequencenumber=1
Number of messages retrieved from this topic: 1
Messages retrieved from this topic: [#1: Hello HCS!]
πŸŽ‰ Hello Future World - HCS Topic - complete

Missing:

  • ... after the step name i.e. 🟣 Creating new HCS topic should be 🟣 Creating new HCS topic...

Everything else looks good I think.

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

No branches or pull requests

1 participant