Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 796 Bytes

File metadata and controls

24 lines (17 loc) · 796 Bytes

HCS-27: Publish a Checkpoint

This example publishes an HCS-27 checkpoint message.

What it does

  1. Creates an HCS-27 checkpoint topic when HCS27_CHECKPOINT_TOPIC_ID is not set.
  2. Publishes an inline HCS-27 checkpoint to the topic.
  3. Publishes an overflow checkpoint that stores metadata via an hcs://1/... reference.
  4. Fetches the topic records, prints the HRL reference, and validates the checkpoint chain.

Run

export HEDERA_ACCOUNT_ID="0.0.xxxxx"
export HEDERA_PRIVATE_KEY="302..."
go run ./examples/hcs27-publish-checkpoint

Learn More