format_rpc_usage_report
Documentation for eth_defi.provider.rpcdb.format_rpc_usage_report function.
- format_rpc_usage_report(database, chain, cycle_started, cycle_number)
Format current-cycle and daily JSON-RPC usage for one chain.
The formatter is output-system agnostic: scanners may print the returned text, log it, or embed it in another report. Daily rows keep lead discovery and price scanning separate through their
phasecolumn.- Parameters
database (eth_defi.provider.rpcdb.RPCUsageDatabase) – Open tracking database.
chain (int) – EVM chain id to report.
cycle_started (datetime.date) – UTC date of the current logical cycle.
cycle_number (int) – Current persistent cycle number.
- Returns
Multi-table plain-text report.
- Return type