HCS-20 auditable pointsPoints ledgers anyone can recompute

HCS-20 keeps a points ledger on a Hedera Consensus Service topic. Every deploy, mint, transfer and burn is a public message, so anyone can recompute balances. Teams use it for loyalty programs, game leaderboards and community rewards when a full token would be too much.

RATIONALE

Why HCS-20?

A full token is more than most non-financial points programs need. HCS-20 points are not tokens, so there are no liquidity pools or exchange listings to think about, only a public ledger of points.

Each operation is a JSON message on a topic. Anyone with access to a mirror node can audit the whole history.

Public Auditability

Every mint, burn, and transfer is recorded in the consensus stream. Anyone can verify the total supply and holder balances.

No Liquidity Issues

Since they aren't native tokens, there's no expectation of liquidity pools or exchange listings. That suits closed-loop loyalty programs.

Flexible Control

Use a private topic with a submit key for centralized control (gaming, admin) or a public topic for decentralized minting.

OPERATION

Two Modes.

Private Mode

Submit Key

The topic has a submit key. Only the owner can post messages.

  • Centralized Control (Game Server)
  • High Throughput
  • Spam Proof

Public Mode

No Submit Key

The topic is open. Anyone can post. Indexers validate the "Payer Account" to ensure only the owner of points can move them.

  • Decentralized Minting
  • Community Driven
  • Requires Strict Indexing
JSON SCHEMA

The messages.

Deploy

deploy.json
$ cat deploy.json | jq .
{
"p": "hcs-20",
"op": "deploy",
"name": "Points",
"tick": "pts",
"max": "1000000",
"lim": "1000"
}

Mint

mint.json
$ cat mint.json | jq .
{
"p": "hcs-20",
"op": "mint",
"tick": "pts",
"amt": "1000",
"to": "0.0.123456"
}

Transfer

transfer.json
$ cat transfer.json | jq .
{
"p": "hcs-20",
"op": "transfer",
"tick": "pts",
"amt": "500",
"from": "0.0.123456",
"to": "0.0.987654"
}

Consensus Ordering

The state is calculated by replaying these messages in order. Valid transfers require sufficient balance. Valid mints must respect the `max` supply and `lim` per transaction.

Without writing code.

The Turtle Moon HCS App lets you deploy, mint and transfer HCS-20 points without writing code.

HCS-20 questions

Full details are in the HCS-20 specification.

What is HCS-20?

HCS-20 is a Hedera Consensus Service standard for auditable points. Points are deployed, minted, transferred and burned by posting JSON messages to a topic, and balances come from reading those messages in consensus order.

Are HCS-20 points tokens?

No. HCS-20 points are not Hedera Token Service tokens. They exist only as messages on a topic, which suits loyalty, game and contribution points that need to be easy to audit.

What operations does HCS-20 support?

Deploy creates a point with a tick, a maximum supply and an optional per-mint limit. Mint adds points to an account, transfer moves them between accounts and burn removes them. A separate register operation lists a topic in the public HCS-20 topic registry.

What is the difference between private and public HCS-20 topics?

A private topic has a submit key, so only the key holder can post, and every transfer written there counts as authorized. A public topic has no submit key. Anyone can post there, but a transfer only counts when the account paying for it is the account the points leave.

How are HCS-20 balances calculated?

An indexer replays the topic in consensus timestamp order. Mints add to the recipient. Transfers move points when the sender has enough, and burns remove them. A mint that would pass the max supply or the per-mint limit is skipped. Anyone who replays the same messages gets the same balances.

Is there a shared public topic for HCS-20?

Yes. The specification proposes topic 0.0.4350190 as the main public topic so indexers can read public points from one place. Projects can still create their own topics.