Function cumulus_relay_chain_interface::call_runtime_api

source ·
pub async fn call_runtime_api<R>(
    client: &(impl RelayChainInterface + ?Sized),
    method_name: &'static str,
    hash: Hash,
    payload: impl Encode,
) -> RelayChainResult<R>
where R: Decode,
Expand description

Helper function to call an arbitrary runtime API using a RelayChainInterface client. Unlike the trait method, this function can be generic, so it handles the encoding of input and output params.