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

Method actor_state

fendermint/rpc/src/query.rs:53–65  ·  view source on GitHub ↗

Query the the state of an actor.

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

Source from the content-addressed store, hash-verified

51
52 /// Query the the state of an actor.
53 async fn actor_state(
54 &self,
55 address: &Address,
56 height: FvmQueryHeight,
57 ) -> anyhow::Result<QueryResponse<Option<(ActorID, ActorState)>>> {
58 let res = self
59 .perform(FvmQuery::ActorState(*address), height)
60 .await
61 .context("actor state query failed")?;
62 let height = res.height;
63 let value = extract_actor_state(res)?;
64 Ok(QueryResponse { height, value })
65 }
66
67 /// Run a message in a read-only fashion.
68 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