Skip to content

QueryCallOptions

Defined in: pocket-ic-types.ts:606

Options for making a query call to a given canister.

Principal

optional arg: ArrayBufferLike

Defined in: pocket-ic-types.ts:627

A Candid encoded argument to pass to the canister’s method. Defaults to an empty ArrayBuffer.


canisterId: Principal

Defined in: pocket-ic-types.ts:616

The Principal of the canister to query.


method: string

Defined in: pocket-ic-types.ts:621

The method to call on the canister.


optional sender: Principal

Defined in: pocket-ic-types.ts:611

The Principal to send the request as. Defaults to the anonymous principal.


optional targetSubnetId: Principal

Defined in: pocket-ic-types.ts:632

The ID of the subnet that the canister resides on.