Hedera Consensus Service gRPC API

The Hedera Consensus Service (HCS) gRPC API is a public mirror node managed by Hedera. It offers the ability to subscribe to HCS topics and receive messages for the topic subscribed.

Important Notice: Deprecation of the Insecure Hedera Consensus Service (HCS) Mirror Node Endpoints

HCS Mirror Node Endpoints: PREVIEWNET: previewnet.mirrornode.hedera.com:443 TESTNET: testnet.mirrornode.hedera.com:443 MAINNET: mainnet.mirrornode.hedera.com:443

Community-supported mirror node information can be found here:

Network Explorers and Tools

Build a Mirror Node Client

If you building your client with a predefined Hedera network (previewnet, testnet, mainnet), you do not need to define the mirror client as it is built in. If you would like to modify the mirror node client, you can use Client.<network>.setMirrorNetwork(<network>).

Java
// You will need to upgrade to v2.0.6 or higher
Client client = Client.forMainnet();
client.setMirrorNetwork(Collections.singletonList("mainnet.mirrornode.hedera.com:443"))

Subscribe to a topic

Please click the link below to see how you can subscribe to a topic.

Get topic messages

Last updated

Was this helpful?

#2871: HIP-423 long term scheduled transactions

Change request updated