credmark.cmf.model.ledger.Ledger

class Ledger[source]

Bases: object

Performs queries on ledger data.

Access an instance of this class from the model context using self.context.ledger.

Get a query handle by the name of the ledger table, for example context.ledger.Transaction or context.ledger.Contract. The query parameters are common to all query methods.

Methods

table

Returns a query handle for the given table name.

tables

Returns a list of tables in the ledger database.

Attributes

Block

Contract

Log

Receipt

Token

TokenBalance

TokenTransfer

Trace

Transaction

table(table_name)[source]

Returns a query handle for the given table name.

Parameters

table_name (str) –

Return type

LedgerQueryTable

tables()[source]

Returns a list of tables in the ledger database.

Return type

List[str]