Get topic info
Constructor
Description
new ConsensusTopicInfoQuery()Method
Type
Description
Requirement
//Create the account info query
TopicInfoQuery query = new ConsensusTopicInfoQuery()
.setTopicId(newTopicId);
//Submit the query to a Hedera network
TopicInfo info = query.execute(client);
//Print the account key to the console
System.out.println(info);
//v1.3.2//Create the account info query
const query = new ConsensusTopicInfoQuery()
.setTopicId(newTopicId);
//Submit the query to a Hedera network
const info = await query.execute(client);
//Print the account key to the console
console.log(info);
//v1.4.4Last updated