Skip to content

CreateCanisterOptions

Defined in: packages/pic/src/pocket-ic-types.ts:499

Options for creating a canister.

Principal

optional computeAllocation: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:475

The compute allocation of the canister.

CanisterSettings.computeAllocation


optional controllers: Principal[]

Defined in: packages/pic/src/pocket-ic-types.ts:470

The controllers of the canister. Defaults to the sender, which defaults to the anonymous principal.

CanisterSettings.controllers


optional cycles: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:504

The amount of cycles to send to the canister. Defaults to 1_000_000_000_000_000_000n.


optional freezingThreshold: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:485

The freezing threshold of the canister.

CanisterSettings.freezingThreshold


optional memoryAllocation: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:480

The memory allocation of the canister.

CanisterSettings.memoryAllocation


optional reservedCyclesLimit: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:490

The reserved cycles limit of the canister.

CanisterSettings.reservedCyclesLimit


optional sender: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:510

The principal to create the canister as. Defaults to the anonymous principal.


optional targetCanisterId: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:521

The Id of the canister to create. Can only be used on Bitcoin, Fiduciary, II, SNS and NNS subnets.


optional targetSubnetId: Principal

Defined in: packages/pic/src/pocket-ic-types.ts:515

The Id of the subnet to create the canister on.