MCPcopy Create free account
hub / github.com/base/base / create_http_client

Method create_http_client

etc/systems/src/rpc.rs:53–55  ·  view source on GitHub ↗

Create a jsonrpsee HTTP client.

(url: &str)

Source from the content-addressed store, hash-verified

51
52 /// Create a jsonrpsee HTTP client.
53 fn create_http_client(url: &str) -> Result<HttpClient> {
54 HttpClientBuilder::default().build(url).wrap_err("Failed to create HTTP client")
55 }
56
57 /// Get the current block number on L1.
58 pub async fn l1_block_number(&self) -> Result<u64> {

Callers

nothing calls this directly

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected