Skip to main content

get_http_provider

Function get_http_provider 

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

Constructs a provider using try_get_http_provider.

§Panics

Panics if the URL is invalid.

§Examples

use foundry_common::provider::get_http_provider;

let retry_provider = get_http_provider("http://localhost:8545");