MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / new

Method new

web3/src/lib.rs:28–31  ·  view source on GitHub ↗
(url: &str)

Source from the content-addressed store, hash-verified

26
27impl Web3 {
28 pub fn new(url: &str) -> Result<Self> {
29 let client = Web3::get_client(url)?;
30 Ok(Self { client })
31 }
32
33 /// Create a new HTTP JSON-RPC client with given url.
34 fn get_client(url: &str) -> Result<HttpClient> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected