credmark.cmf.model.ledger.LedgerQueryTrace
- class LedgerQueryTrace(**kwargs)[source]
Bases:
TraceTable,LedgerQueryMethods
as_describefieldQuery data from the table.
Attributes
BLOCK_HASHBLOCK_NUMBERBLOCK_TIMESTAMPCALL_TYPEERRORFROM_ADDRESSGASINPUTOUTPUTREWARD_TYPESTATUSTO_ADDRESSTRACE_ADDRESSTRACE_IDTRACE_TYPETRANSACTION_HASHTRANSACTION_INDEXTYPE_MAPPERVALUEaliasbigint_colsReturn the set of column names in the table.
Return the set of column names for the table.
table_key- property colnames: List[str]
Return the set of column names in the table. They can be used in the query.
- property columns: List[str]
Return the set of column names for the table. They will be used in the database.
For contract ledger tables, the set will include all contract-specific columns.
- select(columns=None, joins=None, where=None, group_by=None, order_by=None, limit=None, offset=None, aggregates=None, having=None, bigint_cols=None, analytics_mode=None, omit_group_by_columns=None)
Query data from the table.
- Parameters
columns (Optional[Union[list[str], list[credmark.cmf.types.ledger.ColumnField]]]) –
joins (Optional[list[Union[tuple[credmark.cmf.types.ledger.JoinType, credmark.cmf.types.ledger.LedgerTable, str], tuple[credmark.cmf.types.ledger.LedgerTable, str], tuple[credmark.cmf.types.ledger.JoinType, credmark.cmf.types.ledger.LedgerTable, credmark.cmf.types.ledger.ColumnField], tuple[credmark.cmf.types.ledger.LedgerTable, credmark.cmf.types.ledger.ColumnField]]]]) –
group_by (Optional[Union[list[str], list[credmark.cmf.types.ledger.ColumnField]]]) –
order_by (Optional[Union[str, ColumnField]]) –
- Return type