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

Method actor_state

fendermint/rpc/src/query.rs:43–55  ·  view source on GitHub ↗

Query the the state of an actor.

(
        &self,
        address: &Address,
        height: FvmQueryHeight,
    )

Source from the content-addressed store, hash-verified

41
42 /// Query the the state of an actor.
43 async fn actor_state(
44 &self,
45 address: &Address,
46 height: FvmQueryHeight,
47 ) -> anyhow::Result<QueryResponse<Option<(ActorID, ActorState)>>> {
48 let res = self
49 .perform(FvmQuery::ActorState(*address), height)
50 .await
51 .context("actor state query failed")?;
52 let height = res.height;
53 let value = extract_actor_state(res)?;
54 Ok(QueryResponse { height, value })
55 }
56
57 /// Run a message in a read-only fashion.
58 async fn call(

Callers 3

sequenceFunction · 0.45
actor_idFunction · 0.45
sequenceFunction · 0.45

Implementers 1

client.rsfendermint/rpc/src/client.rs

Calls 4

ActorStateClass · 0.85
extract_actor_stateFunction · 0.85
contextMethod · 0.80
performMethod · 0.45

Tested by

no test coverage detected