Skip to content

CanisterStatusResult

Defined in: packages/pic/src/pocket-ic-types.ts:854

The result of querying the status of a canister. This is a subset of the IC management canister canister_status response. Some fields (e.g. snapshotVisibility, logMemoryLimit, memoryMetrics) are not yet included because the PocketIC server does not return them.

Principal

cycles: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:888

The current cycle balance of the canister.


idleCyclesBurnedPerDay: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:898

The amount of cycles burned per day when idle.


memorySize: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:883

The total memory size of the canister in bytes.


moduleHash: Uint8Array<ArrayBufferLike> | null

Defined in: packages/pic/src/pocket-ic-types.ts:878

The SHA-256 hash of the installed WASM module, if any.


queryStats: CanisterQueryStats

Defined in: packages/pic/src/pocket-ic-types.ts:903

Query call statistics for the canister.


reservedCycles: bigint

Defined in: packages/pic/src/pocket-ic-types.ts:893

The reserved cycles of the canister.


settings: object

Defined in: packages/pic/src/pocket-ic-types.ts:863

The definite settings of the canister.

computeAllocation: bigint

controllers: Principal[]

environmentVariables: EnvironmentVariable[]

freezingThreshold: bigint

logVisibility: LogVisibility

memoryAllocation: bigint

reservedCyclesLimit: bigint

wasmMemoryLimit: bigint

wasmMemoryThreshold: bigint


status: CanisterStatus

Defined in: packages/pic/src/pocket-ic-types.ts:858

The current status of the canister.