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

Function protocol_version

fendermint/eth/api/src/apis/eth.rs:80–87  ·  view source on GitHub ↗

The current FVM network version.

(data: JsonRpcData<C>)

Source from the content-addressed store, hash-verified

78
79/// The current FVM network version.
80pub async fn protocol_version<C>(data: JsonRpcData<C>) -> JsonRpcResult<String>
81where
82 C: Client + Sync + Send,
83{
84 let res = data.client.state_params(FvmQueryHeight::default()).await?;
85 let version: u32 = res.value.network_version.into();
86 Ok(version.to_string())
87}
88
89/// Returns a fee per gas that is an estimate of how much you can pay as a
90/// priority fee, or 'tip', to get a transaction included in the current block.

Callers

nothing calls this directly

Calls 2

to_stringMethod · 0.80
state_paramsMethod · 0.45

Tested by

no test coverage detected