hypersync.utils
Documentation for eth_defi.hypersync.utils Python module.
Hypersync configuration utils.
Functions
|
Helper for scan-vaults and scan-prices scripts to configure Hypersync client from environment variables. |
Classes
HypersyncBackendConfig(hypersync_client: 'hypersync.HypersyncClient | None', hypersync_url: 'str | None', scan_backend: str) |
- class HypersyncBackendConfig
Bases:
objectHypersyncBackendConfig(hypersync_client: ‘hypersync.HypersyncClient | None’, hypersync_url: ‘str | None’, scan_backend: str)
- configure_hypersync_from_env(web3, hypersync_api_key=None)
Helper for scan-vaults and scan-prices scripts to configure Hypersync client from environment variables.
Some chains support HyperSync, others don’t - autodetect support
- Parameters
hypersync_api_key (str | None) – Use given API key, instead of reading from env.
web3 (web3.main.Web3) –
- Returns
A valid Hypersync config if the chain supports HyperSync
- Return type