Skip to main content
A contract that keeps a value in persistent storage under the symbol COUNTER stores it in its own ledger entry. The snippets below build the ledger key for that entry. Pass the result in the keys array of getLedgerEntries.
The increment example contract keeps COUNTER in instance storage. Instance data is not a separate ledger entry. It lives in the contract instance entry, which Retrieve a contract code ledger entry shows how to look up.