pub fn get_http_provider(builder: impl AsRef<str>) -> 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.
See try_get_http_provider
for more details.
§Panics
Panics if the URL is invalid.
§Examples
use foundry_common::provider::get_http_provider;
let retry_provider = get_http_provider("http://localhost:8545");