MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / call

Method call

fendermint/rpc/src/query.rs:68–80  ·  view source on GitHub ↗

Run a message in a read-only fashion.

(
        &self,
        message: Message,
        height: FvmQueryHeight,
    )

Source from the content-addressed store, hash-verified

66
67 /// Run a message in a read-only fashion.
68 async fn call(
69 &self,
70 message: Message,
71 height: FvmQueryHeight,
72 ) -> anyhow::Result<QueryResponse<response::DeliverTx>> {
73 let res = self
74 .perform(FvmQuery::Call(Box::new(message)), height)
75 .await
76 .context("call query failed")?;
77 let height = res.height;
78 let value = extract(res, parse_deliver_tx)?;
79 Ok(QueryResponse { height, value })
80 }
81
82 /// Estimate the gas limit of a message.
83 async fn estimate_gas(

Callers 3

fevm_callMethod · 0.45
os_get_callMethod · 0.45
blob_get_callMethod · 0.45

Implementers 1

client.rsfendermint/rpc/src/client.rs

Calls 3

extractFunction · 0.85
contextMethod · 0.80
performMethod · 0.45

Tested by

no test coverage detected