Interface: InstallCodeOptions
Options for installing a WASM module to a given canister.
See
Properties
canisterId
canisterId:
Principal
The Principal of the canister to install the code to.
Source
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
arg?
optional
arg:ArrayBufferLike
Candid encoded argument to pass to the canister's init function. Defaults to an empty ArrayBuffer.
Source
sender?
optional
sender:Principal
The principal to install the code as. Defaults to the anonymous principal.
Source
targetSubnetId?
optional
targetSubnetId:Principal
The ID of the subnet that the canister resides on.