Function ic_cdk::api::call::call_with_payment
source · pub fn call_with_payment<T: ArgumentEncoder, R: for<'a> ArgumentDecoder<'a>>(
id: Principal,
method: &str,
args: T,
cycles: u64
) -> impl Future<Output = CallResult<R>>
Expand description
Performs an asynchronous call to another canister and pay cycles at the same time.