pub async fn request<P, R>(method: &'static str, params: P) -> Result<R>where
P: Serialize,
R: for<'de> Deserialize<'de>,Expand description
Call metamask using snap.request.
This function used to call restricted methods.
Snap Document: Restricted methods