List ledger entries
list_ledgerLists all signed compute-usage receipts stored in the local ledger, in insertion order, for inspection or export. Read-only and safe to call repeatedly.
Instructions
Lists every signed usage receipt recorded in the local ComputeLedger ledger, in insertion order. Call this to inspect or export local compute-usage history, e.g. before running verify_ledger, or to summarize usage across providers. Nothing must exist beforehand; a missing or empty ledger returns an empty list, not an error.
Side effects: read-only, reads the local ledger file but never writes to it, makes no network calls, and is fully idempotent and safe to call repeatedly.
Parameters: local (optional bool, default false) - true reads ./.computeledger/ledger.jsonl in the current directory instead of ~/.computeledger/ledger.jsonl in the home directory. Equivalent CLI: computeledger ledger list --json (add --local to match local=true).
Returns a JSON array of full signed receipt objects, each with the same shape record_usage returns (version, id, timestamp, provider, hardware, usage, command, prevHash, publicKey, hash, signature). Feed any single entry into verify_receipt, or call verify_ledger to check the whole chain at once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | No | Use the current directory's .computeledger instead of the home directory |