Skip to content

ActorConfig

Defined in: packages/agent/src/actor.ts:60

Configuration that can be passed to customize the Actor behaviour.

optional agent: Agent

Defined in: packages/agent/src/actor.ts:34

An agent to use in this call, otherwise the actor or call will try to discover the agent to use.

CallConfig.agent


optional blsVerify: VerifyFunc

Defined in: packages/agent/src/actor.ts:87

Polyfill for BLS Certificate verification in case wasm is not supported


canisterId: string | Principal

Defined in: packages/agent/src/actor.ts:64

The Canister ID of this Actor. This is required for an Actor.

CallConfig.canisterId


optional effectiveCanisterId: Principal

Defined in: packages/agent/src/actor.ts:49

The effective canister ID. This should almost always be ignored.

CallConfig.effectiveCanisterId


optional nonce: Uint8Array<ArrayBufferLike>

Defined in: packages/agent/src/actor.ts:54

The nonce to use for this call. This is used to prevent replay attacks.

CallConfig.nonce


optional pollingOptions: PollingOptions

Defined in: packages/agent/src/actor.ts:92

Polling options to use when making update calls. This will override the default DEFAULT_POLLING_OPTIONS.

CallConfig.pollingOptions

optional callTransform(methodName, args, callConfig): void | Partial<CallConfig>

Defined in: packages/agent/src/actor.ts:69

An override function for update calls’ CallConfig. This will be called on every calls.

string

unknown[]

CallConfig

void | Partial<CallConfig>


optional queryTransform(methodName, args, callConfig): void | Partial<CallConfig>

Defined in: packages/agent/src/actor.ts:78

An override function for query calls’ CallConfig. This will be called on every query.

string

unknown[]

CallConfig

void | Partial<CallConfig>