Skip to content

CreateCanisterOptions

Defined in: pocket-ic-types.ts:429

Options for creating a canister.

Principal

optional computeAllocation: bigint

Defined in: pocket-ic-types.ts:405

The compute allocation of the canister.

CanisterSettings.computeAllocation


optional controllers: Principal[]

Defined in: pocket-ic-types.ts:400

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

CanisterSettings.controllers


optional cycles: bigint

Defined in: pocket-ic-types.ts:434

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


optional freezingThreshold: bigint

Defined in: pocket-ic-types.ts:415

The freezing threshold of the canister.

CanisterSettings.freezingThreshold


optional memoryAllocation: bigint

Defined in: pocket-ic-types.ts:410

The memory allocation of the canister.

CanisterSettings.memoryAllocation


optional reservedCyclesLimit: bigint

Defined in: pocket-ic-types.ts:420

The reserved cycles limit of the canister.

CanisterSettings.reservedCyclesLimit


optional sender: Principal

Defined in: pocket-ic-types.ts:440

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


optional targetCanisterId: Principal

Defined in: pocket-ic-types.ts:451

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


optional targetSubnetId: Principal

Defined in: pocket-ic-types.ts:445

The Id of the subnet to create the canister on.