AssetManagerConfig
Defined in: packages/canisters/src/assets/index.ts:219
Configuration that can be passed to set the canister id of the assets canister to be managed, inherits actor configuration and has additional asset manager specific configuration options.
Extends
Section titled “Extends”ActorConfig
Properties
Section titled “Properties”agent?
Section titled “agent?”
optionalagent:Agent
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:14
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”ActorConfig.agent
blsVerify?
Section titled “blsVerify?”
optionalblsVerify:VerifyFunc
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:51
Polyfill for BLS Certificate verification in case wasm is not supported
Inherited from
Section titled “Inherited from”ActorConfig.blsVerify
canisterId
Section titled “canisterId”canisterId:
string|Principal
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:39
The Canister ID of this Actor. This is required for an Actor.
Inherited from
Section titled “Inherited from”ActorConfig.canisterId
concurrency?
Section titled “concurrency?”
optionalconcurrency:number
Defined in: packages/canisters/src/assets/index.ts:224
Max number of concurrent requests to the Internet Computer
Default
Section titled “Default”16effectiveCanisterId?
Section titled “effectiveCanisterId?”
optionaleffectiveCanisterId:Principal
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:26
The effective canister ID.
Inherited from
Section titled “Inherited from”ActorConfig.effectiveCanisterId
maxChunkSize?
Section titled “maxChunkSize?”
optionalmaxChunkSize:number
Defined in: packages/canisters/src/assets/index.ts:234
Size of each chunk in bytes when the asset manager has to chunk a file
Default
Section titled “Default”1900000maxSingleFileSize?
Section titled “maxSingleFileSize?”
optionalmaxSingleFileSize:number
Defined in: packages/canisters/src/assets/index.ts:229
Max file size in bytes that the asset manager shouldn’t chunk
Default
Section titled “Default”1900000pollingOptions?
Section titled “pollingOptions?”
optionalpollingOptions:PollingOptions
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:55
Polling options to use when making update calls. This will override the default DEFAULT_POLLING_OPTIONS.
Inherited from
Section titled “Inherited from”ActorConfig.pollingOptions
Methods
Section titled “Methods”callTransform()?
Section titled “callTransform()?”
optionalcallTransform(methodName,args,callConfig):void|Partial<CallConfig>
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:43
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”CallConfig
Returns
Section titled “Returns”void | Partial<CallConfig>
Inherited from
Section titled “Inherited from”ActorConfig.callTransform
queryTransform()?
Section titled “queryTransform()?”
optionalqueryTransform(methodName,args,callConfig):void|Partial<CallConfig>
Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:47
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”CallConfig
Returns
Section titled “Returns”void | Partial<CallConfig>
Inherited from
Section titled “Inherited from”ActorConfig.queryTransform