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

Method provider

crates/execution/runner/src/test_utils/node.rs:154–158  ·  view source on GitHub ↗

Create an HTTP provider pointed at the node's public RPC endpoint.

(&self)

Source from the content-addressed store, hash-verified

152
153 /// Create an HTTP provider pointed at the node's public RPC endpoint.
154 pub fn provider(&self) -> Result<RootProvider<Base>> {
155 let url = format!("http://{}", self.http_api_addr);
156 let client = RpcClient::builder().http(url.parse()?);
157 Ok(RootProvider::<Base>::new(client))
158 }
159
160 /// HTTP RPC address for the local node.
161 pub const fn http_addr(&self) -> SocketAddr {

Callers 15

applyMethod · 0.45
fcu_unsafe_benchesFunction · 0.45
launch_add_onsMethod · 0.45
newMethod · 0.45
runMethod · 0.45
spawn_sync_taskMethod · 0.45
checkMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
install_proofs_historyFunction · 0.45
execute_blockFunction · 0.45
commit_block_to_databaseFunction · 0.45

Calls 1

parseMethod · 0.45