install_api_call_counter_middleware_on_provider

Documentation for eth_defi.chain.install_api_call_counter_middleware_on_provider function.

install_api_call_counter_middleware_on_provider(provider)[source]

Install API call counter middleware on a specific API provider.

Allows per-provider API call counting when using complex provider setups.

See also

Returns

Counter object with columns per RPC endpoint and “total”

Parameters

provider (web3.providers.base.JSONBaseProvider) –

Return type

collections.Counter