Function ic_cdk::api::call::call

source · []
pub fn call<T: ArgumentEncoder, R: for<'a> ArgumentDecoder<'a>>(
    id: Principal,
    method: &str,
    args: T
) -> impl Future<Output = CallResult<R>>
Expand description

Performs an asynchronous call to another canister using the System API.

If the reply payload is not a valid encoding of the expected type T, the call results in RejectionCode::CanisterError error.