foundry_common::provider

Function try_get_http_provider

Source
pub fn try_get_http_provider(builder: impl AsRef<str>) -> Result<RetryProvider>
Expand description

Constructs a provider with a 100 millisecond interval poll if it’s a localhost URL (most likely an anvil or other dev node) and with the default, or 7 second otherwise.