Hedera Consensus Service gRPC API

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

HCS Mirror Node Endpoints: hcs.testnet.mirrornode.hedera.com:5600 hcs.mainnet.mirrornode.hedera.com:5600

Community supported mirror node information can be found here:

Build a Mirror Node Client

V2
V1
V2

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 client, you can use Client.<network>.setMirrorNetwork(network).

V1

Constructor

Description

new MirrorClient(<endpoint>)

Initializes the MirrorClient object

Java
final MirrorClient mirrorClient = new MirrorClient(MIRROR_NODE_ADDRESS);
JavaScript
const mirrorClient = new MirrorClient(mirrorNodeAddress);

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.