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

Method ipld

fendermint/rpc/src/query.rs:34–40  ·  view source on GitHub ↗

Query the contents of a CID from the IPLD store.

(&self, cid: &Cid, height: FvmQueryHeight)

Source from the content-addressed store, hash-verified

32pub trait QueryClient: Sync {
33 /// Query the contents of a CID from the IPLD store.
34 async fn ipld(&self, cid: &Cid, height: FvmQueryHeight) -> anyhow::Result<Option<Vec<u8>>> {
35 let res = self
36 .perform(FvmQuery::Ipld(*cid), height)
37 .await
38 .context("ipld query failed")?;
39 extract_opt(res, |res| Ok(res.value))
40 }
41
42 /// Query the the state of an actor.
43 async fn actor_state(

Callers 3

get_codeFunction · 0.80
queryFunction · 0.80
getMethod · 0.80

Implementers 1

client.rsfendermint/rpc/src/client.rs

Calls 3

extract_optFunction · 0.85
contextMethod · 0.80
performMethod · 0.45

Tested by

no test coverage detected