Skip to content

InstallCodeOptions

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

Options for installing a WASM module to a given canister.

Principal

optional arg: ArrayBufferLike

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

Candid encoded argument to pass to the canister’s init function. Defaults to an empty ArrayBuffer.


canisterId: Principal

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

The Principal of the canister to install the code to.


optional sender: Principal

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

The principal to install the code as. Defaults to the anonymous principal.


optional targetSubnetId: Principal

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

The ID of the subnet that the canister resides on.


wasm: string | ArrayBufferLike

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

The WASM module to install to the canister. If a string is passed, it is treated as a path to a file. If an ArrayBufferLike is passed, it is treated as the WASM module itself.