Hedera Mirror Node

The Hedera Consensus Service (HCS) is a gRPC API endpoint on the mirror node to stream HCS messages. It offers the ability to subscribe to HCS topics and receive messages for the topic subscribed to. API docs for the mirror nodes can be found here:

REST APIchevron-rightHedera Consensus Service gRPC APIchevron-right

Mainnet

The non-production public mainnet mirror node serves to help developers build their applications without having to run their own mirror node. For production-ready mainnet mirror nodes, please check out Arkhiaarrow-up-right, Dragonglassarrow-up-right, or Ledger Worksarrow-up-right. When building your Hedera client via SDK, you can use setMirrorNetwork() and enter the public mainnet mirror node endpoint. The gRPC API requires TLS. The following SDK versions support TLS:

  • Java: v2.0.6+

  • JavaScript: v2.0.23+

  • Go: v2.1.9+

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

Mainnet Mirror Node Endpoint: mainnet-public.mirrornode.hedera.com:443 REST API Mainnet Root Endpoint: https://mainnet-public.mirrornode.hedera.comarrow-up-right

Testnet

The endpoints provided below allow developers to access the testnet mirror node, which contains testnet transaction data.

circle-info

HCS Testnet Mirror Node Endpoint: testnet.mirrornode.hedera.com:443

REST API Testnet Root Endpoint: https://testnet.mirrornode.hedera.comarrow-up-right

Previewnet

The endpoints provided below allow developers to access the previewnet mirror node, which contains previewnet transaction data.

circle-info

HCS Previewnet Mirror Node Endpoint: previewnet.mirrornode.hedera.com:443

REST API Preview Testnet Root Endpoint: https://previewnet.mirrornode.hedera.comarrow-up-right

FAQ

chevron-rightHow is data stored in a Hedera Mirror Node? Is it a specific type of database, or does it use a unique data structure?hashtag

Hedera Mirror Nodes use PostgreSQL databases to store the transaction and event data organized in a structure that mirrors the Hedera Network. Once the mirror node receives record files from Hedera Consensus nodes, the data is validated and loaded into the database.

chevron-rightHow can I set up a Hedera Mirror Node? What are the hardware and software requirements?hashtag

Setting up a Hedera Mirror Node involves both hardware and software components. The requirements can be found here.

chevron-rightAre there costs associated with running a mirror node?hashtag

No, Hedera does not charge for running a mirror node. However, there are costs associated with purchasing the hardware, internet connection, and potential cloud service fees. The hardware and software requirements can be found here.

chevron-rightHow can I provide feedback or create an issue to log errors?hashtag

To provide feedback or log errors, please refer to the Contributing Guide and submit an issue in the Hedera Docs GitHub repositoryarrow-up-right.

Last updated