Skip to content

ICManagementCanister

Defined in: packages/ic-management/src/ic-management.canister.ts:54

canisterStatus(params): Promise<canister_status_result>

Defined in: packages/ic-management/src/ic-management.canister.ts:300

Get canister details (memory size, status, etc.)

CanisterStatusParams

The parameters for the status call.

Promise<canister_status_result>

A promise that resolves with the canister status details.


clearChunkStore(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:181

Clear the entire chunk storage of a canister.

ClearChunkStoreParams

Promise<void>

https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-clear_chunk_store


createCanister(params): Promise<Principal>

Defined in: packages/ic-management/src/ic-management.canister.ts:87

Create a new canister

CreateCanisterParams = {}

Promise<Principal>


deleteCanister(canisterId): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:317

Deletes a canister

Principal

Promise<void>


deleteCanisterSnapshot(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:454

Deletes a specific snapshot of a canister.

SnapshotParams

Parameters for the deletion operation.

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

If the deletion operation fails.


fetchCanisterLogs(canisterId): Promise<fetch_canister_logs_result>

Defined in: packages/ic-management/src/ic-management.canister.ts:355

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.

Principal

Promise<fetch_canister_logs_result>


installChunkedCode(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:225

Installs code that had previously been uploaded in chunks.

InstallChunkedCodeParams

Promise<void>

https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-install_chunked_code


installCode(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:135

Install code to a canister

InstallCodeParams

Promise<void>


listCanisterSnapshots(params): Promise<list_canister_snapshots_result>

Defined in: packages/ic-management/src/ic-management.canister.ts:401

Lists the snapshots of a canister.

Parameters for the listing operation.

Principal

The ID of the canister for which snapshots will be listed.

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

If the operation fails.


loadCanisterSnapshot(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:427

Loads a snapshot of a canister’s state.

Required<OptionSnapshotParams> & object

Parameters for the snapshot loading operation.

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

If the snapshot loading operation fails.


provisionalCreateCanisterWithCycles(params): Promise<Principal>

Defined in: packages/ic-management/src/ic-management.canister.ts:332

Creates a canister. Only available on development instances.

ProvisionalCreateCanisterWithCyclesParams = {}

Promise<Principal>


readCanisterSnapshotData(params): Promise<read_canister_snapshot_data_response>

Defined in: packages/ic-management/src/ic-management.canister.ts:499

Reads snapshot data for a specific canister snapshot and kind.

ReadCanisterSnapshotDataParams

Parameters for the data read operation.

Promise<read_canister_snapshot_data_response>

A promise that resolves with the snapshot data payload.

https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-read_canister_snapshot_data

If the data read operation fails.


readCanisterSnapshotMetadata(params): Promise<ReadCanisterSnapshotMetadataResponse>

Defined in: packages/ic-management/src/ic-management.canister.ts:473

Reads metadata for a specific canister snapshot.

SnapshotParams

Parameters for the metadata read operation.

Promise<ReadCanisterSnapshotMetadataResponse>

A promise that resolves with the snapshot metadata.

https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-read_canister_snapshot_metadata

If the metadata read operation fails.


startCanister(canisterId): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:274

Start a canister

Principal

Promise<void>


stopCanister(canisterId): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:286

Stop a canister

Principal

Promise<void>


storedChunks(params): Promise<chunk_hash[]>

Defined in: packages/ic-management/src/ic-management.canister.ts:200

List the hashes of chunks in the chunk storage of a canister.

StoredChunksParams

Promise<chunk_hash[]>

The list of hash of the stored chunks.

https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-stored_chunks


takeCanisterSnapshot(params): Promise<snapshot>

Defined in: packages/ic-management/src/ic-management.canister.ts:381

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.

OptionSnapshotParams

Parameters for the snapshot operation.

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

If the snapshot operation fails.


uninstallCode(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:256

Uninstall code from a canister

UninstallCodeParams

Promise<void>


updateSettings(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:110

Update canister settings

UpdateSettingsParams

Promise<void>


uploadCanisterSnapshotData(params): Promise<void>

Defined in: packages/ic-management/src/ic-management.canister.ts:552

Uploads a chunk of snapshot data for a canister snapshot.

UploadCanisterSnapshotDataParams

Parameters for the data upload operation.

Promise<void>

A promise that resolves when the data is successfully uploaded.

https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-upload_canister_snapshot_data

If the data upload operation fails.


uploadCanisterSnapshotMetadata(params): Promise<upload_canister_snapshot_metadata_response>

Defined in: packages/ic-management/src/ic-management.canister.ts:525

Uploads snapshot metadata for a canister.

UploadCanisterSnapshotMetadataParams

Parameters for the metadata upload operation.

Promise<upload_canister_snapshot_metadata_response>

A promise that resolves with the upload response.

https://internetcomputer.org/docs/current/references/ic-interface-spec#ic-upload_canister_snapshot_metadata

If the metadata upload operation fails.


uploadChunk(params): Promise<chunk_hash>

Defined in: packages/ic-management/src/ic-management.canister.ts:161

Upload chunks of Wasm modules that are too large to fit in a single message for installation purposes.

UploadChunkParams

Promise<chunk_hash>

The hash of the stored chunk.

https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-upload_chunk


static create(options): ICManagementCanister

Defined in: packages/ic-management/src/ic-management.canister.ts:63

ICManagementCanisterOptions

ICManagementCanister