verify_archive_node
Documentation for eth_defi.provider.broken_provider.verify_archive_node function.
- verify_archive_node(rpc_url, chain_name)
Verify RPC providers and filter out broken ones.
Parses the space-separated multi-RPC configuration line and tests each endpoint individually. Checks that each provider can serve both block 1 and the latest block. Broken providers are logged at ERROR level and filtered out; the scan continues with working providers only.
- Parameters
- Returns
Tuple of (filtered RPC URL with only working providers, latest block number)
- Raises
RuntimeError – If all providers fail verification
- Return type