Mint and configure tokens and accounts.
-
Devs
- TOOLING
- RESOURCES
-
Use cases
- Built on Hedera
Verifiable timestamping and ordering of events for any application or permissioned blockchain framework.
Enterprises and industry consortia building applications using industry-standard development environments or permissioned blockchain and distributed ledger frameworks, such as Hyperledger Fabric or R3 Corda, gain the benefits of privacy, low cost, and flexibility of development. But when used standalone, these applications and their associated networks remain siloed from one another, require complex and centralized configuration to achieve transaction ordering, and lack the fundamental element of public trust that is central to Web 3.0.
The Hedera Consensus Service (HCS) acts as a trust layer for any application or permissioned network and allows for the creation of an immutable and verifiable log of messages. Application messages are submitted to the Hedera network for consensus, given a trusted timestamp, and fairly ordered. Use HCS to track assets across a supply chain, create auditable logs of events in an advertising platform, or even use it as a decentralized ordering service.
Combine the trust of Hedera’s public network with the privacy of a permissioned blockchain framework. Build applications that require privacy for sensitive data, public trust, and auditability.
Take advantage of Hedera’s high transaction throughout, fast finality, trusted timestamps, and security. Build decentralized applications never before possible.
A single HCS message costs $0.0001 USD, whether you’re using it standalone or in conjunction with a permissioned blockchain. You only pay for messages you submit.
Build using any development language or the most ubiquitous permissioned blockchain frameworks. Set up your environment and submit your first message in no time.
Business and consumer applications today rely on expensive intermediaries to facilitate trust between parties for sharing data, transacting value, and meeting regulatory compliance.
Hedera Consensus Service (HCS) delivers decentralized trust for any new or existing application, across nearly every industry. Applications which benefit most from HCS require high-throughput, trusted timestamps and ordering, and fast finality. HCS also allows you to encrypt the content of sensitive messages for additional privacy.
Ian Mullins
Founder and CEO
John Jaeger
CEO
Bryan Gross
Principal Product Manager
A topic is created to manage the stream of messages for one application, such as a market where people bid on products.
When an event happens – like a bid – it can be sent as an encrypted message to the topic.
All of the messages are put into consensus order by the Hedera mainnet. A mirrornet can then send the messages for a particular topic to the application for processing.
When an audit needs to be conducted, previous messages can be checked, along with a state proof that ensures they have not been falsified.
Use the Hedera Consensus Service API to start building applications which take advantage of the high-throughput, fair ordering, and fast finality of Hedera Hashgraph.
const { ConsensusTopicCreateTransaction } = require("@hashgraph/sdk");
const transactionId = await new ConsensusTopicCreateTransaction()
.setMessage("Hello Hedera Consensus Service!")
.setMaxTransactionFee( new Hbar(10))
.execute(HederaClient);
const transactionReceipt = await transactionId.getReceipt(HederaClient);
console.log(transactionReceipt);
const { ConsensusSubmitMessage } = require("@hashgraph/sdk");
const transactionId = await new ConsensusSubmitMessage()
.setMessage("Hello decentralized messaging on Hedera Hashgraph!")
.setMaxTransactionFee( new Hbar(1))
.execute(HederaClient);
const transactionReceipt = await transactionId.getReceipt(HederaClient);
console.log(transactionReceipt);
const { MirrorConsensusTopicQuery } = require("@hashgraph/sdk");
new MirrorConensusTopicQuery()
.setTopicId("0.0.123456789")
.subscribe(MirrorNode, (message) => {
console.log("Received message from our mirror node subscription:", message.toString());
console.log("timestamp:", message.getTimestamp());
console.log("runningHash:", message.getRunningHash());
console.log("topicId:", message.getTopicId());
console.log("sequenceNumber:", message.getSequenceNumber());
});
Topics make it simple to organize transactions, so each application only receives the messages it needs.
Messages are put into consensus order and given a timestamp by the Hedera network, with cryptographic proofs, so they are as trustworthy as the full Hedera network.
Messages are cryptographically tied together with a running hash to provide an auditable, tamper-proof log of history.
Message processing and storage are kept outside the Hedera network. This allows higher speed and scalability.
The high speed and good scaling ensure low, micropayment fees on par with Hedera Cryptocurrency.
The Hedera Consensus Service ensures speed and security are kept on the ledger while storage is kept off-ledger. Choose to keep everything, nothing, or anything in between.
From ideation to building your application, check out these Hedera Consensus Service resources to help you along your journey.
The Hedera Consensus Service synchronizes the fair order of messages for distributed systems without relying on a centralized clock.
An open source demo of payment settlement tracking with Hedera Consensus Service.
The Pluggable HCS Lab demonstrates the ability of a Hyperledger Fabric network to connect to the Hedera Consensus Service running on a publicly accessible testnet.
This library provides an implementation of a Notary Service for the Corda distributed ledger platform using the Hedera Consensus Service (HCS).
In this tutorial, you will create a Hyperledger Fabric network that leverages the Hedera Consensus Service Fabric plug-in to use Hedera Hashgraph as the ordering service via the first-network sample.
This demo marries Corda with Hedera via the Hedera Consensus Service, providing double-spend checks by submitting transaction spends to HCS and ordering them with other spends on the same network.