Function call

Source
pub async fn call<P, R>(
    url: &str,
    method: &str,
    params: &P,
    auth: Option<&str>,
) -> RPCResult<Option<R>>
where R: for<'de> Deserialize<'de> + Debug, P: Serialize,