Book a free call

What Is Hedera Hashgraph, and How Does It Work?

Hedera Hashgraph is a public ledger that settles transactions in seconds using a hashgraph, not a chain of blocks. Learn how it works and what you can build on it.

Hertiv engineering teamReviewed by a senior engineer
6 min read
What Is Hedera Hashgraph, and How Does It Work?
On this page

Short answer

Hedera Hashgraph is a public distributed ledger that records transactions on a hashgraph, a graph of events linked by hashes, instead of a chain of blocks. Nodes share new events by gossip, then work out the order with virtual voting, so agreement is fast and fees stay low. Its native coin, HBAR, pays the network fees.

What is Hedera Hashgraph?

Hedera Hashgraph is a public distributed ledger that records transactions on a hashgraph rather than a chain of blocks. In a hashgraph, each event links to two earlier events, so the ledger grows as a branching graph instead of a single line of blocks. There is no mining, and no race to add the next block.

The network is governed by a council of global organisations that run consensus nodes and vote on network decisions. Anyone can build applications on Hedera and hold HBAR, while the council keeps the network stable and the software open for developers.

AspectHedera hashgraphPublic blockchain
StructureGraph of linked eventsChain of blocks
ConsensusGossip plus virtual votingMining or staking
FinalitySecondsMinutes on many chains
FeesSet in US dollars, paid in HBARVaries with demand
Energy useLow, no miningHigher for proof-of-work chains

The table shows the main differences at a glance. The rest of this guide explains how the hashgraph reaches agreement, what you can build on it, and what it costs to use.

How does a hashgraph reach agreement?

A hashgraph reaches agreement through gossip and virtual voting. Each node picks another node at random, shares what it knows, and receives what the other node knows. After a few rounds, every node holds the same set of events, and each node can work out the order on its own.

Virtual voting means the nodes do not send votes across the network. Because every node has the same history, each one can calculate how the others would vote, and the result is the same as if a vote had taken place. This is what makes agreement fast: the network spends its time sharing events, not counting votes.

Each event also carries a timestamp agreed by the network, so the order of events is fixed and fair. A transaction submitted earlier cannot be pushed behind a later one by a node that wants to favour it. That fair ordering is one of the reasons applications that need a trusted record choose a hashgraph. For the general idea of a ledger, see what is blockchain.

What can you build on Hedera?

Hedera offers four main building blocks, and most applications use one or two of them. The token service creates and moves tokens without writing a smart contract. The smart contract service runs contracts written for the Ethereum Virtual Machine, so Solidity code can run on Hedera. The consensus service orders messages and records them with a trusted timestamp. The file service stores small files on the ledger.

Tokens are the most common starting point. A team can create a token for loyalty points, a certificate, or a share in a fund, then move it between accounts with a simple call. The consensus service fits audit trails: an application sends a record of an event, and the ledger returns proof of the order and the time.

Smart contracts handle the cases where a rule must run on the ledger itself, such as an escrow that releases funds when both sides sign. They are the right tool when the ledger must enforce a condition, not just record that something happened.

Pick the simplest service that does the job. A certificate that only needs proof of issue is a token, not a contract. A payment that must wait for two signatures is a contract. Starting simple keeps fees low and the design easy to explain.

How do HBAR and fees work?

HBAR is Hedera's native coin, and it pays the network fees. Every transaction, token creation and contract call costs a small fee, and the fee is set in US dollars, so the amount of HBAR changes with the coin's price. That design keeps the cost of using the network predictable in the currency most teams budget in.

HBAR also secures the network through staking. Holders can stake their HBAR to a node, and the node earns rewards for taking part in consensus. Accounts need a small amount of HBAR to pay fees, so a new user or a new application must hold some before it can transact. Teams usually keep a fee budget in HBAR and top it up on a schedule, rather than buying large amounts at once.

Fees are low compared with many public chains, but they are not zero. A design that sends a transaction for every small event can still add up. The usual fix is to batch events into one consensus message, or to record only the events that need proof, and keep the rest off the ledger.

Example (hypothetical): checking 200 certificates

Example (hypothetical): a university issues 200 digital certificates and must check each one when an employer asks. Checking by hand takes 10 minutes per certificate, because staff must open the student record, confirm the course, and write back to the employer.

By hand, 200 certificates at 10 minutes each is 2,000 minutes, about 33 hours of staff time. With each certificate issued as a token on Hedera, the check becomes a ledger lookup that takes 30 seconds per certificate: 200 at 30 seconds is 100 minutes, under 2 hours. The saving is about 31 hours for one batch of certificates.

The saving comes from the lookup, not from the ledger alone. The university still needs a record of who earned the certificate and what it covers. What changes is that the employer can check the token itself, so the university answers fewer verification requests. A token service guide, such as how to create tokens with the Hedera Consensus Service, shows the pieces involved.

What are the common mistakes?

The most common mistakes come from treating Hedera like Ethereum. The services are different, the fee model is different, and the way ordering works is different. A design copied from a chain of blocks often pays for work it does not need.

  • Writing a smart contract for a job a token can do
  • Assuming fees are zero because they are small
  • Sending one transaction per small event instead of batching
  • Skipping key management, then losing access to an account
  • Testing only on the testnet and forgetting mainnet fees
  • Ignoring the council model when explaining who runs the network
  • Recording data on the ledger that should stay private

How to start building on Hedera

Start with one small flow on the testnet, where fees are free and mistakes cost nothing. A token transfer or a single consensus message is enough to learn the tools and the fee model before you commit to a design.

  1. Read the Hedera docs and pick one service: tokens, consensus, contracts or files.
  2. Create a testnet account and take test HBAR from the faucet.
  3. Build the smallest flow that proves the idea, such as issuing one token.
  4. Measure the fee per call and work out the monthly cost at real volume.
  5. Move to mainnet with a small fee budget and a key backup plan.

Smart contracts on Hedera follow the same patterns as on other chains, so how smart contracts work is a useful read before you write your first contract.

If you need help with the build, blockchain development covers ledger work end to end, from the first token to a production deployment.

Key takeaways

  • A hashgraph links events in a graph, not a chain of blocks.
  • Gossip plus virtual voting gives fast finality without mining.
  • HBAR pays fees that are set in US dollars.
  • Tokens, smart contracts and timestamping are the main building blocks.
  • Start on the testnet and measure fees before going live.

Frequently asked questions

Is Hedera a blockchain?

No, in the strict sense. Hedera is a public distributed ledger built on a hashgraph, a graph of events, rather than a chain of blocks. It records the same kind of data as a blockchain, but the structure and the way nodes agree are different.

What is HBAR used for?

HBAR is Hedera's native coin. It pays network fees for transactions, token creation and smart contract calls, and it secures the network through staking. Fees are set in US dollars, so the HBAR amount moves with the coin's price.

How fast is Hedera?

Transactions reach finality in seconds, because nodes agree through gossip and virtual voting instead of waiting for blocks to be mined or confirmed. Exact speed depends on network load and the type of transaction.

Who runs Hedera?

Hedera is governed by a council of global organisations that run consensus nodes and vote on network decisions. The council model is meant to keep the network stable while the software stays open for anyone to build on.

Can I run a smart contract on Hedera?

Yes. Hedera runs smart contracts that work with the Ethereum Virtual Machine, so contracts written in Solidity can run there. The contract still pays fees in HBAR, and the fees are set in US dollars.

What is the Hedera Consensus Service?

It is a service that takes messages from an application, orders them, and records the order with a trusted timestamp on the ledger. It is used for audit trails, event logs and proof that a record existed at a certain time.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: blockchain systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building on Hedera or another ledger and want help? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Blockchain Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call