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

Method create_http_client

etc/systems/src/rpc.rs:225–227  ·  view source on GitHub ↗

Create a jsonrpsee HTTP client.

(url: &str)

Source from the content-addressed store, hash-verified

223
224 /// Create a jsonrpsee HTTP client.
225 fn create_http_client(url: &str) -> Result<HttpClient> {
226 HttpClientBuilder::default().build(url).wrap_err("Failed to create HTTP client")
227 }
228
229 /// Get the current block number on L1.
230 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