Overview
Namespaces
Section titled “Namespaces”Enumerations
Section titled “Enumerations”LogVisibility
Section titled “LogVisibility”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:5
Enumeration Members
Section titled “Enumeration Members”Controllers
Section titled “Controllers”Controllers:
0
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:6
Public
Section titled “Public”Public:
1
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:7
SnapshotVisibilityType
Section titled “SnapshotVisibilityType”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:10
Enumeration Members
Section titled “Enumeration Members”AllowedViewers
Section titled “AllowedViewers”AllowedViewers:
2
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:13
Controllers
Section titled “Controllers”Controllers:
0
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:11
Public
Section titled “Public”Public:
1
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:12
Classes
Section titled “Classes”IcManagementCanister
Section titled “IcManagementCanister”Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:50
Methods
Section titled “Methods”canisterStatus()
Section titled “canisterStatus()”canisterStatus(
params):Promise<canister_status_result>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:296
Get canister details (memory size, status, etc.)
Parameters
Section titled “Parameters”params
Section titled “params”The parameters for the status call.
Returns
Section titled “Returns”Promise<canister_status_result>
A promise that resolves with the canister status details.
clearChunkStore()
Section titled “clearChunkStore()”clearChunkStore(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:177
Clear the entire chunk storage of a canister.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<void>
https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-clear_chunk_store
createCanister()
Section titled “createCanister()”createCanister(
params):Promise<Principal>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:83
Create a new canister
Parameters
Section titled “Parameters”params
Section titled “params”CreateCanisterParams = {}
Returns
Section titled “Returns”Promise<Principal>
deleteCanister()
Section titled “deleteCanister()”deleteCanister(
canisterId):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:313
Deletes a canister
Parameters
Section titled “Parameters”canisterId
Section titled “canisterId”Principal
Returns
Section titled “Returns”Promise<void>
deleteCanisterSnapshot()
Section titled “deleteCanisterSnapshot()”deleteCanisterSnapshot(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:461
Deletes a specific snapshot of a canister.
Parameters
Section titled “Parameters”params
Section titled “params”Parameters for the deletion operation.
Returns
Section titled “Returns”Promise<void>
A promise that resolves when the snapshot is successfully deleted.
https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-delete_canister_snapshot
Throws
Section titled “Throws”If the deletion operation fails.
fetchCanisterLogs()
Section titled “fetchCanisterLogs()”fetchCanisterLogs(
canisterId):Promise<fetch_canister_logs_result>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:351
Given a canister ID as input, this method returns a vector of logs of that canister including its trap messages. The canister logs are not collected in canister methods running in non-replicated mode (NRQ, CQ, CRy, CRt, CC, and F modes, as defined in Overview of imports). The total size of all returned logs does not exceed 4KiB. If new logs are added resulting in exceeding the maximum total log size of 4KiB, the oldest logs will be removed. Logs persist across canister upgrades and they are deleted if the canister is reinstalled or uninstalled.
Parameters
Section titled “Parameters”canisterId
Section titled “canisterId”Principal
Returns
Section titled “Returns”Promise<fetch_canister_logs_result>
installChunkedCode()
Section titled “installChunkedCode()”installChunkedCode(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:221
Installs code that had previously been uploaded in chunks.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<void>
https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_chunked_code
installCode()
Section titled “installCode()”installCode(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:131
Install code to a canister
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<void>
listCanisterSnapshots()
Section titled “listCanisterSnapshots()”listCanisterSnapshots(
params):Promise<list_canister_snapshots_result>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:408
Lists the snapshots of a canister.
Parameters
Section titled “Parameters”params
Section titled “params”Parameters for the listing operation.
canisterId
Section titled “canisterId”Principal
The ID of the canister for which snapshots will be listed.
Returns
Section titled “Returns”Promise<list_canister_snapshots_result>
A promise that resolves with the list of snapshots.
https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-list_canister_snapshots
Throws
Section titled “Throws”If the operation fails.
loadCanisterSnapshot()
Section titled “loadCanisterSnapshot()”loadCanisterSnapshot(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:434
Loads a snapshot of a canister’s state.
Parameters
Section titled “Parameters”params
Section titled “params”Required<OptionSnapshotParams> & object
Parameters for the snapshot loading operation.
Returns
Section titled “Returns”Promise<void>
A promise that resolves when the snapshot is successfully loaded.
https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-load_canister_snapshot
Throws
Section titled “Throws”If the snapshot loading operation fails.
provisionalCreateCanisterWithCycles()
Section titled “provisionalCreateCanisterWithCycles()”provisionalCreateCanisterWithCycles(
params):Promise<Principal>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:328
Creates a canister. Only available on development instances.
Parameters
Section titled “Parameters”params
Section titled “params”ProvisionalCreateCanisterWithCyclesParams = {}
Returns
Section titled “Returns”Promise<Principal>
readCanisterSnapshotData()
Section titled “readCanisterSnapshotData()”readCanisterSnapshotData(
params):Promise<read_canister_snapshot_data_response>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:506
Reads snapshot data for a specific canister snapshot and kind.
Parameters
Section titled “Parameters”params
Section titled “params”ReadCanisterSnapshotDataParams
Parameters for the data read operation.
Returns
Section titled “Returns”Promise<read_canister_snapshot_data_response>
A promise that resolves with the snapshot data payload.
Throws
Section titled “Throws”If the data read operation fails.
readCanisterSnapshotMetadata()
Section titled “readCanisterSnapshotMetadata()”readCanisterSnapshotMetadata(
params):Promise<ReadCanisterSnapshotMetadataResponse>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:480
Reads metadata for a specific canister snapshot.
Parameters
Section titled “Parameters”params
Section titled “params”Parameters for the metadata read operation.
Returns
Section titled “Returns”Promise<ReadCanisterSnapshotMetadataResponse>
A promise that resolves with the snapshot metadata.
Throws
Section titled “Throws”If the metadata read operation fails.
startCanister()
Section titled “startCanister()”startCanister(
canisterId):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:270
Start a canister
Parameters
Section titled “Parameters”canisterId
Section titled “canisterId”Principal
Returns
Section titled “Returns”Promise<void>
stopCanister()
Section titled “stopCanister()”stopCanister(
canisterId):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:282
Stop a canister
Parameters
Section titled “Parameters”canisterId
Section titled “canisterId”Principal
Returns
Section titled “Returns”Promise<void>
storedChunks()
Section titled “storedChunks()”storedChunks(
params):Promise<chunk_hash[]>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:196
List the hashes of chunks in the chunk storage of a canister.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<chunk_hash[]>
The list of hash of the stored chunks.
https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-stored_chunks
takeCanisterSnapshot()
Section titled “takeCanisterSnapshot()”takeCanisterSnapshot(
params):Promise<snapshot>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:379
This method takes a snapshot of the specified canister. A snapshot consists of the wasm memory, stable memory, certified variables, wasm chunk store and wasm binary.
Parameters
Section titled “Parameters”params
Section titled “params”OptionSnapshotParams & object
Parameters for the snapshot operation.
Returns
Section titled “Returns”Promise<snapshot>
A promise that resolves with the snapshot details, including the snapshot ID, total size, and timestamp.
https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-take_canister_snapshot
Throws
Section titled “Throws”If the snapshot operation fails.
uninstallCode()
Section titled “uninstallCode()”uninstallCode(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:252
Uninstall code from a canister
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<void>
updateSettings()
Section titled “updateSettings()”updateSettings(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:106
Update canister settings
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<void>
uploadCanisterSnapshotData()
Section titled “uploadCanisterSnapshotData()”uploadCanisterSnapshotData(
params):Promise<void>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:559
Uploads a chunk of snapshot data for a canister snapshot.
Parameters
Section titled “Parameters”params
Section titled “params”UploadCanisterSnapshotDataParams
Parameters for the data upload operation.
Returns
Section titled “Returns”Promise<void>
A promise that resolves when the data is successfully uploaded.
Throws
Section titled “Throws”If the data upload operation fails.
uploadCanisterSnapshotMetadata()
Section titled “uploadCanisterSnapshotMetadata()”uploadCanisterSnapshotMetadata(
params):Promise<upload_canister_snapshot_metadata_response>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:532
Uploads snapshot metadata for a canister.
Parameters
Section titled “Parameters”params
Section titled “params”UploadCanisterSnapshotMetadataParams
Parameters for the metadata upload operation.
Returns
Section titled “Returns”Promise<upload_canister_snapshot_metadata_response>
A promise that resolves with the upload response.
Throws
Section titled “Throws”If the metadata upload operation fails.
uploadChunk()
Section titled “uploadChunk()”uploadChunk(
params):Promise<chunk_hash>
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:157
Upload chunks of Wasm modules that are too large to fit in a single message for installation purposes.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<chunk_hash>
The hash of the stored chunk.
https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_chunk
create()
Section titled “create()”
staticcreate(options):IcManagementCanister
Defined in: packages/canisters/src/ic-management/ic-management.canister.ts:59
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”UnsupportedLogVisibility
Section titled “UnsupportedLogVisibility”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:34
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnsupportedLogVisibility(
message?):UnsupportedLogVisibility
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new UnsupportedLogVisibility(
message?,options?):UnsupportedLogVisibility
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace
UnsupportedSnapshotVisibility
Section titled “UnsupportedSnapshotVisibility”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:35
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new UnsupportedSnapshotVisibility(
message?):UnsupportedSnapshotVisibility
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Constructor
Section titled “Constructor”new UnsupportedSnapshotVisibility(
message?,options?):UnsupportedSnapshotVisibility
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082
Parameters
Section titled “Parameters”message?
Section titled “message?”string
options?
Section titled “options?”ErrorOptions
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause:unknown
Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack:string
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack
stackTraceLimit
Section titled “stackTraceLimit”
staticstackTraceLimit:number
Defined in: node_modules/@types/node/globals.d.ts:67
The Error.stackTraceLimit property specifies the number of stack frames
collected by a stack trace (whether generated by new Error().stack or
Error.captureStackTrace(obj)).
The default value is 10 but may be set to any valid JavaScript number. Changes
will affect any stack trace captured after the value has been changed.
If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
Inherited from
Section titled “Inherited from”Error.stackTraceLimit
Methods
Section titled “Methods”captureStackTrace()
Section titled “captureStackTrace()”
staticcaptureStackTrace(targetObject,constructorOpt?):void
Defined in: node_modules/@types/node/globals.d.ts:51
Creates a .stack property on targetObject, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace() was called.
const myObject = {};Error.captureStackTrace(myObject);myObject.stack; // Similar to `new Error().stack`The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}.
The optional constructorOpt argument accepts a function. If given, all frames
above constructorOpt, including constructorOpt, will be omitted from the
generated stack trace.
The constructorOpt argument is useful for hiding implementation
details of error generation from the user. For instance:
function a() { b();}
function b() { c();}
function c() { // Create an error without stack trace to avoid calculating the stack trace twice. const { stackTraceLimit } = Error; Error.stackTraceLimit = 0; const error = new Error(); Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace throw error;}
a();Parameters
Section titled “Parameters”targetObject
Section titled “targetObject”object
constructorOpt?
Section titled “constructorOpt?”Function
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Error.captureStackTrace
isError()
Section titled “isError()”
staticisError(error):error is Error
Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23
Indicates whether the argument provided is a built-in Error instance or not.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”error is Error
Inherited from
Section titled “Inherited from”Error.isError
prepareStackTrace()
Section titled “prepareStackTrace()”
staticprepareStackTrace(err,stackTraces):any
Defined in: node_modules/@types/node/globals.d.ts:55
Parameters
Section titled “Parameters”Error
stackTraces
Section titled “stackTraces”CallSite[]
Returns
Section titled “Returns”any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Inherited from
Section titled “Inherited from”Error.prepareStackTrace
Interfaces
Section titled “Interfaces”CanisterSettings
Section titled “CanisterSettings”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:21
Properties
Section titled “Properties”computeAllocation?
Section titled “computeAllocation?”
optionalcomputeAllocation:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:25
controllers?
Section titled “controllers?”
optionalcontrollers:string[]
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:22
environmentVariables?
Section titled “environmentVariables?”
optionalenvironmentVariables:environment_variable[]
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:31
freezingThreshold?
Section titled “freezingThreshold?”
optionalfreezingThreshold:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:23
logVisibility?
Section titled “logVisibility?”
optionallogVisibility:LogVisibility
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:27
memoryAllocation?
Section titled “memoryAllocation?”
optionalmemoryAllocation:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:24
reservedCyclesLimit?
Section titled “reservedCyclesLimit?”
optionalreservedCyclesLimit:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:26
snapshotVisibility?
Section titled “snapshotVisibility?”
optionalsnapshotVisibility:SnapshotVisibility
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:28
wasmMemoryLimit?
Section titled “wasmMemoryLimit?”
optionalwasmMemoryLimit:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:29
wasmMemoryThreshold?
Section titled “wasmMemoryThreshold?”
optionalwasmMemoryThreshold:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:30
CanisterStatusParams
Section titled “CanisterStatusParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:150
Extends
Section titled “Extends”QueryParams
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:151
certified?
Section titled “certified?”
optionalcertified:boolean
Defined in: packages/utils/dist/types/query.params.d.ts:6
Perform update calls (certified) or query calls (not certified).
Inherited from
Section titled “Inherited from”QueryParams.certified
ClearChunkStoreParams
Section titled “ClearChunkStoreParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:121
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:122
CreateCanisterParams
Section titled “CreateCanisterParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:95
Properties
Section titled “Properties”senderCanisterVersion?
Section titled “senderCanisterVersion?”
optionalsenderCanisterVersion:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:97
settings?
Section titled “settings?”
optionalsettings:CanisterSettings
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:96
InstallChunkedCodeParams
Section titled “InstallChunkedCodeParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:129
Extends
Section titled “Extends”Omit<InstallCodeParams,"canisterId"|"wasmModule">
Properties
Section titled “Properties”arg:
Uint8Array
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:110
Inherited from
Section titled “Inherited from”chunkHashesList
Section titled “chunkHashesList”chunkHashesList:
chunk_hash[]
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:133
mode:
canister_install_mode
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:107
Inherited from
Section titled “Inherited from”senderCanisterVersion?
Section titled “senderCanisterVersion?”
optionalsenderCanisterVersion:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:111
Inherited from
Section titled “Inherited from”InstallCodeParams.senderCanisterVersion
storeCanisterId?
Section titled “storeCanisterId?”
optionalstoreCanisterId:Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:135
targetCanisterId
Section titled “targetCanisterId”targetCanisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:134
wasmModuleHash
Section titled “wasmModuleHash”wasmModuleHash:
string|Uint8Array<ArrayBufferLike>
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:136
InstallCodeParams
Section titled “InstallCodeParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:106
Properties
Section titled “Properties”arg:
Uint8Array
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:110
canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:108
mode:
canister_install_mode
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:107
senderCanisterVersion?
Section titled “senderCanisterVersion?”
optionalsenderCanisterVersion:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:111
wasmModule
Section titled “wasmModule”wasmModule:
Uint8Array
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:109
OptionSnapshotParams
Section titled “OptionSnapshotParams”Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:9
Extended by
Section titled “Extended by”Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:10
snapshotId?
Section titled “snapshotId?”
optionalsnapshotId:string|snapshot_id
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:11
ProvisionalCreateCanisterWithCyclesParams
Section titled “ProvisionalCreateCanisterWithCyclesParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:144
Properties
Section titled “Properties”amount?
Section titled “amount?”
optionalamount:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:145
canisterId?
Section titled “canisterId?”
optionalcanisterId:Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:147
settings?
Section titled “settings?”
optionalsettings:CanisterSettings
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:146
ReadCanisterSnapshotDataParams
Section titled “ReadCanisterSnapshotDataParams”Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:46
Extends
Section titled “Extends”Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:10
Inherited from
Section titled “Inherited from”OptionSnapshotParams.canisterId
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:47
snapshotId
Section titled “snapshotId”snapshotId:
string|snapshot_id
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:11
Inherited from
Section titled “Inherited from”OptionSnapshotParams.snapshotId
ReadCanisterSnapshotMetadataParams
Section titled “ReadCanisterSnapshotMetadataParams”Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:132
Extends
Section titled “Extends”Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:10
Inherited from
Section titled “Inherited from”OptionSnapshotParams.canisterId
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:133
snapshotId
Section titled “snapshotId”snapshotId:
string|snapshot_id
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:11
Inherited from
Section titled “Inherited from”OptionSnapshotParams.snapshotId
ReadCanisterSnapshotMetadataResponse
Section titled “ReadCanisterSnapshotMetadataResponse”Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:4
Properties
Section titled “Properties”canisterVersion
Section titled “canisterVersion”canisterVersion:
bigint
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:12
certifiedData
Section titled “certifiedData”certifiedData:
Uint8Array
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:14
globals
Section titled “globals”globals: ({
f32:number; } | {f64:number; } | {i32:number; } | {i64:bigint; } | {v128:bigint; })[]
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:5
globalTimer?
Section titled “globalTimer?”
optionalglobalTimer: {active:bigint; } | {inactive:null; }
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:15
onLowWasmMemoryHookStatus?
Section titled “onLowWasmMemoryHookStatus?”
optionalonLowWasmMemoryHookStatus: {conditionNotSatisfied:null; } | {executed:null; } | {ready:null; }
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:16
source
Section titled “source”source: {
metadataUpload:unknown; } | {takenFromCanister:unknown; }
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:13
stableMemorySize
Section titled “stableMemorySize”stableMemorySize:
bigint
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:21
takenAtTimestamp
Section titled “takenAtTimestamp”takenAtTimestamp:
bigint
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:23
wasmChunkStore
Section titled “wasmChunkStore”wasmChunkStore:
object[]
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:22
hash:
Uint8Array
wasmMemorySize
Section titled “wasmMemorySize”wasmMemorySize:
bigint
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:24
wasmModuleSize
Section titled “wasmModuleSize”wasmModuleSize:
bigint
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:20
StoredChunksParams
Section titled “StoredChunksParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:125
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:126
UninstallCodeParams
Section titled “UninstallCodeParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:139
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:140
senderCanisterVersion?
Section titled “senderCanisterVersion?”
optionalsenderCanisterVersion:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:141
UpdateSettingsParams
Section titled “UpdateSettingsParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:100
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:101
senderCanisterVersion?
Section titled “senderCanisterVersion?”
optionalsenderCanisterVersion:bigint
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:102
settings
Section titled “settings”settings:
CanisterSettings
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:103
UploadCanisterSnapshotDataParams
Section titled “UploadCanisterSnapshotDataParams”Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:136
Extends
Section titled “Extends”Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:10
Inherited from
Section titled “Inherited from”OptionSnapshotParams.canisterId
chunk:
Uint8Array
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:137
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:138
snapshotId
Section titled “snapshotId”snapshotId:
string|snapshot_id
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:11
Inherited from
Section titled “Inherited from”OptionSnapshotParams.snapshotId
UploadCanisterSnapshotMetadataParams
Section titled “UploadCanisterSnapshotMetadataParams”Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:83
Extends
Section titled “Extends”Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:10
Inherited from
Section titled “Inherited from”OptionSnapshotParams.canisterId
metadata
Section titled “metadata”metadata:
UploadCanisterSnapshotMetadataParam
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:84
snapshotId?
Section titled “snapshotId?”
optionalsnapshotId:string|snapshot_id
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:11
Inherited from
Section titled “Inherited from”OptionSnapshotParams.snapshotId
UploadChunkParams
Section titled “UploadChunkParams”Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:114
Extends
Section titled “Extends”Pick<upload_chunk_args,"chunk">
Properties
Section titled “Properties”canisterId
Section titled “canisterId”canisterId:
Principal
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:118
chunk:
Uint8Array
Defined in: packages/canisters/src/declarations/ic-management/ic-management.d.ts:471
Inherited from
Section titled “Inherited from”Type Aliases
Section titled “Type Aliases”CanisterSnapshotMetadataKind
Section titled “CanisterSnapshotMetadataKind”CanisterSnapshotMetadataKind = {
wasmModule: {offset:bigint;size:bigint; }; } | {wasmMemory: {offset:bigint;size:bigint; }; } | {stableMemory: {offset:bigint;size:bigint; }; } | {wasmChunk: {hash:Uint8Array; }; }
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:40
CanisterStatusResponse
Section titled “CanisterStatusResponse”CanisterStatusResponse =
ServiceResponse<_SERVICE,"canister_status">
Defined in: packages/canisters/src/ic-management/types/ic-management.responses.ts:4
FetchCanisterLogsResponse
Section titled “FetchCanisterLogsResponse”FetchCanisterLogsResponse =
ServiceResponse<_SERVICE,"fetch_canister_logs">
Defined in: packages/canisters/src/ic-management/types/ic-management.responses.ts:9
IcManagementCanisterOptions
Section titled “IcManagementCanisterOptions”IcManagementCanisterOptions =
Pick<CanisterOptions<_SERVICE>,"agent"|"serviceOverride"|"certifiedServiceOverride">
Defined in: packages/canisters/src/ic-management/types/canister.options.ts:4
SnapshotIdText
Section titled “SnapshotIdText”SnapshotIdText =
string
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:7
SnapshotParams
Section titled “SnapshotParams”SnapshotParams =
Required<OptionSnapshotParams>
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:14
SnapshotVisibility
Section titled “SnapshotVisibility”SnapshotVisibility = {
type:Controllers; } | {type:Public; } | {type:AllowedViewers;viewers:string[]; }
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:16
UploadCanisterSnapshotDataKind
Section titled “UploadCanisterSnapshotDataKind”UploadCanisterSnapshotDataKind = {
wasmModule: {offset:bigint; }; } | {wasmMemory: {offset:bigint; }; } | {stableMemory: {offset:bigint; }; } | {wasmChunk:null; }
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:126
UploadCanisterSnapshotMetadataParam
Section titled “UploadCanisterSnapshotMetadataParam”UploadCanisterSnapshotMetadataParam =
Pick<ReadCanisterSnapshotMetadataResponse,"globals"|"certifiedData"|"globalTimer"|"onLowWasmMemoryHookStatus"|"wasmModuleSize"|"stableMemorySize"|"wasmMemorySize">
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:72
Functions
Section titled “Functions”decodeSnapshotId()
Section titled “decodeSnapshotId()”decodeSnapshotId(
snapshotId):snapshot_id
Defined in: packages/canisters/src/ic-management/utils/ic-management.utils.ts:29
Decodes a hex string representation of a snapshot ID back into its original format.
A snapshot ID is a tuple (CanisterId, u64), where:
CanisterIdis a unique identifier for a canister.u64is a subnet-local number (incremented for each new snapshot).
Parameters
Section titled “Parameters”snapshotId
Section titled “snapshotId”string
The hex string representation of the snapshot ID.
Returns
Section titled “Returns”The decoded snapshot ID as a Uint8Array.
encodeSnapshotId()
Section titled “encodeSnapshotId()”encodeSnapshotId(
snapshotId):string
Defined in: packages/canisters/src/ic-management/utils/ic-management.utils.ts:15
Encodes a snapshot ID into a hex string representation.
A snapshot ID is a tuple (CanisterId, u64), where:
CanisterIdis a unique identifier for a canister.u64is a subnet-local number (incremented for each new snapshot).
Parameters
Section titled “Parameters”snapshotId
Section titled “snapshotId”The snapshot ID to encode, represented as a Uint8Array or an array of numbers.
Returns
Section titled “Returns”string
The hex string representation of the snapshot ID.
fromReadCanisterSnapshotMetadataResponse()
Section titled “fromReadCanisterSnapshotMetadataResponse()”fromReadCanisterSnapshotMetadataResponse(
__namedParameters):ReadCanisterSnapshotMetadataResponse
Defined in: packages/canisters/src/ic-management/types/snapshot.responses.ts:27
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”read_canister_snapshot_metadata_response
Returns
Section titled “Returns”ReadCanisterSnapshotMetadataResponse
mapSnapshotId()
Section titled “mapSnapshotId()”mapSnapshotId(
snapshotId):snapshot_id
Defined in: packages/canisters/src/ic-management/utils/ic-management.utils.ts:42
Maps a snapshot ID to the appropriate format for the IC interface.
Parameters
Section titled “Parameters”snapshotId
Section titled “snapshotId”The snapshot ID to map.
It can either be a string (SnapshotIdText) or a Uint8Array | number[] (snapshot_id).
If a string is provided, it is decoded into a Uint8Array using decodeSnapshotId.
string | snapshot_id
Returns
Section titled “Returns”The mapped snapshot ID.
toCanisterSettings()
Section titled “toCanisterSettings()”toCanisterSettings(
__namedParameters):canister_settings
Defined in: packages/canisters/src/ic-management/types/ic-management.params.ts:37
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”CanisterSettings = {}
Returns
Section titled “Returns”toCanisterSnapshotMetadataKind()
Section titled “toCanisterSnapshotMetadataKind()”toCanisterSnapshotMetadataKind(
kind): {wasm_module: {offset:bigint;size:bigint; }; } | {wasm_memory: {offset:bigint;size:bigint; }; } | {stable_memory: {offset:bigint;size:bigint; }; } | {wasm_chunk: {hash:Uint8Array; }; }
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:50
Parameters
Section titled “Parameters”Returns
Section titled “Returns”{ wasm_module: { offset: bigint; size: bigint; }; } | { wasm_memory: { offset: bigint; size: bigint; }; } | { stable_memory: { offset: bigint; size: bigint; }; } | { wasm_chunk: { hash: Uint8Array; }; }
toReplaceSnapshotArgs()
Section titled “toReplaceSnapshotArgs()”toReplaceSnapshotArgs(
__namedParameters):Pick<take_canister_snapshot_args,"canister_id"|"replace_snapshot">
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:27
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”Pick<take_canister_snapshot_args, "canister_id" | "replace_snapshot">
toSnapshotArgs()
Section titled “toSnapshotArgs()”toSnapshotArgs(
__namedParameters):object
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:16
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”Returns
Section titled “Returns”object
canister_id
Section titled “canister_id”canister_id:
Principal
snapshot_id
Section titled “snapshot_id”snapshot_id:
snapshot_id
toUploadCanisterSnapshotDataKind()
Section titled “toUploadCanisterSnapshotDataKind()”toUploadCanisterSnapshotDataKind(
kind): {wasm_module: {offset:bigint; }; } | {wasm_memory: {offset:bigint; }; } | {stable_memory: {offset:bigint; }; } | {wasm_chunk:null; }
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:141
Parameters
Section titled “Parameters”UploadCanisterSnapshotDataKind
Returns
Section titled “Returns”{ wasm_module: { offset: bigint; }; } | { wasm_memory: { offset: bigint; }; } | { stable_memory: { offset: bigint; }; } | { wasm_chunk: null; }
toUploadCanisterSnapshotMetadata()
Section titled “toUploadCanisterSnapshotMetadata()”toUploadCanisterSnapshotMetadata(
__namedParameters):Omit<upload_canister_snapshot_metadata_args,"canister_id"|"replace_snapshot">
Defined in: packages/canisters/src/ic-management/types/snapshot.params.ts:87
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”UploadCanisterSnapshotMetadataParam
Returns
Section titled “Returns”Omit<upload_canister_snapshot_metadata_args, "canister_id" | "replace_snapshot">