Skip to main content

spawn_rpc_proxy_mapping_method

Function spawn_rpc_proxy_mapping_method 

Source
pub async fn spawn_rpc_proxy_mapping_method(
    endpoint: String,
    method: &'static str,
    map: impl Fn(&Value, Value) -> Value + Send + Sync + 'static,
) -> String
Expand description

Spawns an RPC proxy that forwards every request upstream and passes each method result, together with the request params, through map before returning it.