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 phase column.

Parameters
Returns

Multi-table plain-text report.

Return type

str