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

Method os_get_call

fendermint/rpc/src/query.rs:142–162  ·  view source on GitHub ↗
(
        &mut self,
        address: Address,
        params: GetParams,
        value: TokenAmount,
        gas_params: GasParams,
        height: FvmQueryHeight,
    )

Source from the content-addressed store, hash-verified

140 /// Get an object in a bucket without including a transaction on the blockchain.
141 #[cfg(feature = "ipc-storage")]
142 async fn os_get_call(
143 &mut self,
144 address: Address,
145 params: GetParams,
146 value: TokenAmount,
147 gas_params: GasParams,
148 height: FvmQueryHeight,
149 ) -> anyhow::Result<Option<Object>> {
150 let msg = MessageFactory::new(system::SYSTEM_ACTOR_ADDR, 0)
151 .os_get(address, params, value, gas_params)?;
152
153 let response = self.call(msg, height).await?;
154 if response.value.code.is_err() {
155 return Err(anyhow!("{}", response.value.info));
156 }
157
158 let return_data = decode_os_get(&response.value)
159 .context("error decoding data from deliver_tx in call")?;
160
161 Ok(return_data)
162 }
163
164 /// Get a blob from the blobs actor without including a transaction on the blockchain.
165 #[cfg(feature = "ipc-storage")]

Callers 2

os_getFunction · 0.80
query_objectFunction · 0.80

Implementers 1

client.rsfendermint/rpc/src/client.rs

Calls 4

decode_os_getFunction · 0.85
os_getMethod · 0.80
contextMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected