Skip to main content

query_call

Function query_call 

Source
pub async fn query_call<In, Out>(
    agent: &Agent,
    canister_id: &Principal,
    method_name: &str,
    args: In,
) -> Result<Out, String>
where In: ArgumentEncoder + Send, Out: CandidType + for<'a> Deserialize<'a>,