MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / call

Method call

fendermint/rpc/src/query.rs:58–70  ·  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

56
57 /// Run a message in a read-only fashion.
58 async fn call(
59 &self,
60 message: Message,
61 height: FvmQueryHeight,
62 ) -> anyhow::Result<QueryResponse<ExecTxResult>> {
63 let res = self
64 .perform(FvmQuery::Call(Box::new(message)), height)
65 .await
66 .context("call query failed")?;
67 let height = res.height;
68 let value = extract(res, parse_exec_tx_result)?;
69 Ok(QueryResponse { height, value })
70 }
71
72 /// Estimate the gas limit of a message.
73 async fn estimate_gas(

Callers 1

fevm_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