Skip to main content
w.ledger reads the Canton ledger through Walley’s authenticated proxy — the Python twin of the dApp SDK’s ledgerApi. Common reads are named methods so you don’t need to know ledger endpoints; a raw passthrough covers everything else. The SDK’s bearer token is attached automatically.

Active contracts

The read you’ll reach for most, typically to feed contract ids into your dApp’s commands:
Filter by template — both id forms work, the package-id form and the package-name form:
Each ActiveContract lifts the useful fields out of the ledger’s nesting:
By default the query runs as the client’s party at the current ledger end; override with party_id=, at_offset=, or verbose=True.

Other named reads

Raw passthrough

For anything the named methods don’t cover, forward requests directly — the path is the JSON Ledger API resource:
The proxy is for reads, all submissions go through w.transactions. See Transactions & Fees.