Function ic_cdk::api::management_canister::main::create_canister
source ยท pub async fn create_canister(
arg: CreateCanisterArgument,
cycles: u128,
) -> CallResult<(CanisterIdRecord,)>
Expand description
Register a new canister and get its canister id.
See IC method create_canister
.
This call requires cycles payment. The required cycles varies according to the subnet size (number of nodes). Check Gas and cycles cost for more details.