Skip to content

UpdateCallOptions

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

Options for making an update call to a given canister.

Principal

optional arg: Uint8Array<ArrayBufferLike>

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

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


canisterId: Principal

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

The Principal of the canister to update.


method: string

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

The method to call on the canister.


optional sender: Principal

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

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


optional targetSubnetId: Principal

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

The ID of the subnet that the canister resides on.