AnvilForkMetadata
Documentation for eth_defi.provider.anvil.AnvilForkMetadata Python class.
- class AnvilForkMetadata
Bases:
objectMetadata for a locally running Anvil JSON-RPC endpoint.
This metadata lets later
Web3objects created from only the local Anvil URL still report which upstream fork RPC providers Anvil was configured to use.- Variables
chain_id – Chain id reported by the local Anvil instance after startup.
upstream_rpc_urls – Original upstream RPC URLs passed to Anvil fork mode. If Anvil was started as a standalone local backend, this is empty.
fork_block_number – Explicit fork block used for Anvil, if any.
effective_fork_url – URL passed to Anvil as
--fork-url. With multiple upstreams this can be a local failover proxy URL instead of one of the upstream RPC URLs.
Attributes summary
chain_idupstream_rpc_urlsfork_block_numbereffective_fork_urlMethods summary
__init__(chain_id, upstream_rpc_urls, ...)