provider.ankr

Documentation for eth_defi.provider.ankr Python module.

Ankr specific Web3.py functionality.

  • Ankr has issues with some JSON-RPC access patterns.

Warning

Ankr has different EVM state between calls and is very hard to work with. See eth_defi.provider.fallback.FallbackProvider for workarounds.

See also eth_defi.provider.broken_provider.

Functions

is_ankr(web3)

Are we connected to Ankr as a provider.

is_ankr(web3)

Are we connected to Ankr as a provider.

We use this function to detect and activate Ankr workarounds for their bugs and features.

Parameters

web3 (web3.main.Web3) –

Return type

bool