junobuild_shared::mgmt::ic

Function deposit_cycles

Source
pub async fn deposit_cycles(__arg0: DepositCyclesArgs) -> Result<(), String>
Expand description

Deposits cycles into a specified canister from the calling canister’s balance.

§Arguments

  • args: DepositCyclesArgs struct containing the destination canister ID and cycle amount.

§Returns

  • Ok(()): On successful deposit.
  • Err(String): If the balance is insufficient or on failure to deposit.