Skip to main content
w.ledger reads the Canton ledger through Walley’s authenticated proxy. It is 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 these calls go through is documented in the HTTP API, including how to call it without the SDK.
The proxy is for reads. All submissions go through w.transactions. See Transactions & Fees.