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

We are phasing out the legacy Hedera Consensus Service (HCS) mirror node endpoints. The APIs have transitioned from the legacy hcs.

<env>.mirrornode.hedera.com:5600 endpoints to the new <env>.mirrornode.hedera.com:443 endpoints.

For more details, please read our blog post announcement.

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

Requests for the public mainnet mirror node are throttled at 100 requests per second (rps). This may change in the future depending upon performance or security considerations. At this time, no authentication is required.

Community-supported mirror node information can be found here:

pageNetwork 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"))

Concurrent Subscription Limit A single client can make a maximum of 5 concurrent subscription calls per connection.

Subscribe to a topic

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

pageGet topic messages

Last updated