decode_runtime_api_response_with_info

Function decode_runtime_api_response_with_info 

Source
pub fn decode_runtime_api_response_with_info<'scale, 'resolver, V>(
    cursor: &mut &'scale [u8],
    runtime_api_info: &RuntimeApiInfo<'_, <V::TypeResolver as TypeResolver>::TypeId>,
    type_resolver: &'resolver V::TypeResolver,
    visitor: V,
) -> Result<V::Value<'scale, 'resolver>, RuntimeApiDecodeError<<V::TypeResolver as TypeResolver>::TypeId>>
where V: Visitor, V::Error: Debug,
Expand description

Decode a runtime API response.

Unlike decode_runtime_api_response, which obtains the Runtime API information internally given the trait and method names, this function takes the Runtime API info as an argument. This is useful if you already have the Runtime API info available, for exampel if you are making multiple calls to the same API and wish to decode each one.