ActorConfig
Defined in: packages/agent/src/actor.ts:61
Configuration that can be passed to customize the Actor behavior.
Extends
Section titled “Extends”Pick<CallConfig,"agent"|"effectiveCanisterId">
Properties
Section titled “Properties”agent?
Section titled “agent?”
optionalagent:Agent
Defined in: packages/agent/src/actor.ts:35
An agent to use in this call, otherwise the actor or call will try to discover the agent to use.
Inherited from
Section titled “Inherited from”blsVerify?
Section titled “blsVerify?”
optionalblsVerify:VerifyFunc
Defined in: packages/agent/src/actor.ts:88
Polyfill for BLS Certificate verification in case wasm is not supported
canisterId
Section titled “canisterId”canisterId:
string|Principal
Defined in: packages/agent/src/actor.ts:65
The Canister ID of this Actor. This is required for an Actor.
effectiveCanisterId?
Section titled “effectiveCanisterId?”
optionaleffectiveCanisterId:Principal
Defined in: packages/agent/src/actor.ts:50
The effective canister ID.
Inherited from
Section titled “Inherited from”CallConfig.effectiveCanisterId
pollingOptions?
Section titled “pollingOptions?”
optionalpollingOptions:PollingOptions
Defined in: packages/agent/src/actor.ts:93
Polling options to use when making update calls. This will override the default DEFAULT_POLLING_OPTIONS.
Methods
Section titled “Methods”callTransform()?
Section titled “callTransform()?”
optionalcallTransform(methodName,args,callConfig):void|Partial<CallConfig>
Defined in: packages/agent/src/actor.ts:70
An override function for update calls’ CallConfig. This will be called on every calls.
Parameters
Section titled “Parameters”methodName
Section titled “methodName”string
unknown[]
callConfig
Section titled “callConfig”Returns
Section titled “Returns”void | Partial<CallConfig>
queryTransform()?
Section titled “queryTransform()?”
optionalqueryTransform(methodName,args,callConfig):void|Partial<CallConfig>
Defined in: packages/agent/src/actor.ts:79
An override function for query calls’ CallConfig. This will be called on every query.
Parameters
Section titled “Parameters”methodName
Section titled “methodName”string
unknown[]
callConfig
Section titled “callConfig”Returns
Section titled “Returns”void | Partial<CallConfig>