Function ethers_providers::is_local_endpoint
source · Expand description
Returns true if the endpoint is local
Example
use ethers_providers::is_local_endpoint;
assert!(is_local_endpoint("http://localhost:8545"));
assert!(is_local_endpoint("http://127.0.0.1:8545"));