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:ActiveContract lifts the useful fields out of the ledger’s nesting:
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.