Skip to content

CanisterStatusResult

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

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:851

The current cycle balance of the canister.


idleCyclesBurnedPerDay: bigint

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

The amount of cycles burned per day when idle.


memorySize: bigint

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

The total memory size of the canister in bytes.


moduleHash: Uint8Array<ArrayBufferLike> | null

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

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


queryStats: CanisterQueryStats

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

Query call statistics for the canister.


reservedCycles: bigint

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

The reserved cycles of the canister.


settings: object

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

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:821

The current status of the canister.