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

Method request

crates/execution/rpc/src/sequencer.rs:133–149  ·  view source on GitHub ↗

Sends a [`alloy_rpc_client::RpcCall`] request to the sequencer endpoint.

(
        &self,
        method: &str,
        params: Params,
    )

Source from the content-addressed store, hash-verified

131
132 /// Sends a [`alloy_rpc_client::RpcCall`] request to the sequencer endpoint.
133 pub async fn request<Params: RpcSend, Resp: RpcRecv>(
134 &self,
135 method: &str,
136 params: Params,
137 ) -> Result<Resp, SequencerClientError> {
138 let resp =
139 self.client().request::<Params, Resp>(method.to_string(), params).await.inspect_err(
140 |err| {
141 warn!(
142 target: "rpc::sequencer",
143 %err,
144 "HTTP request to sequencer failed",
145 );
146 },
147 )?;
148 Ok(resp)
149 }
150
151 /// Forwards a transaction to the sequencer endpoint.
152 pub async fn forward_raw_transaction(&self, tx: &[u8]) -> Result<B256, SequencerClientError> {

Callers 15

meter_bundleMethod · 0.45
prefetch_block_innerMethod · 0.45
handle_hint_innerFunction · 0.45
trie_node_by_hashMethod · 0.45
header_by_hashMethod · 0.45
submit_range_proofMethod · 0.45
handle_requestFunction · 0.45
proveMethod · 0.45

Calls 1

clientMethod · 0.45