Docs / Money

The ledger

Every deposit, open, close, liquidation, settlement and withdrawal is an event with an id. Each minute the keeper batches the new events, stores the batch JSON and posts one Memo transaction signed by the keeper key:

verdict v1 <batchId> <count> sha256:<hash>

To check a batch:

curl -s https://<site>/api/ledger/<batchId> | sha256sum

and compare the result with the hash in the Memo on Solscan. The JSON is served byte for byte as it was hashed. Fill events carry the source book used for the price.