The current FVM network version.
(data: JsonRpcData<C>)
| 78 | |
| 79 | /// The current FVM network version. |
| 80 | pub async fn protocol_version<C>(data: JsonRpcData<C>) -> JsonRpcResult<String> |
| 81 | where |
| 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. |
nothing calls this directly
no test coverage detected