Skip to content

CallOptions

Defined in: packages/core/src/agent/agent/api.ts:103

Options when doing a Agent.call call.

arg: Uint8Array

Defined in: packages/core/src/agent/agent/api.ts:112

A binary encoded argument. This is already encoded and will be sent as is.


effectiveCanisterId: string | Principal

Defined in: packages/core/src/agent/agent/api.ts:118

An effective canister ID, used for routing. Usually the canister ID, except for management canister calls.

https://internetcomputer.org/docs/current/references/ic-interface-spec/#http-effective-canister-id


methodName: string

Defined in: packages/core/src/agent/agent/api.ts:107

The method name to call.


optional nonce: Uint8Array<ArrayBufferLike>

Defined in: packages/core/src/agent/agent/api.ts:123

An optional nonce to use for the call, used to prevent replay attacks.