Skip to main content

Interface: InstallCodeOptions

Options for installing a WASM module to a given canister.

See

Principal

Properties

canisterId

canisterId: Principal

The Principal of the canister to install the code to.

Source

pocket-ic-types.ts:326


wasm

wasm: string | ArrayBufferLike

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.

Source

pocket-ic-types.ts:333


arg?

optional arg: ArrayBufferLike

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

Source

pocket-ic-types.ts:339


sender?

optional sender: Principal

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

Source

pocket-ic-types.ts:345


targetSubnetId?

optional targetSubnetId: Principal

The ID of the subnet that the canister resides on.

Source

pocket-ic-types.ts:350