Skip to main content
This example connects to the Stellar History Archive and initializes a checkpoint change reader with ingest.NewCheckpointChangeReader to read ledger entry changes from a history archive snapshot occurring at a given checkpoint ledger. It iterates over the ledger changes, processing different entry types such as Account, ClaimableBalance, Trustline, and Offer, using the ingest.Change structure. The code tracks statistics in an entriesInfo struct, counting the total entries and specific types.
Sample Response: