Skip to content

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.

  • ActorConfig

optional agent: 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.

ActorConfig.agent


optional blsVerify: 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

ActorConfig.blsVerify


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.

ActorConfig.canisterId


optional concurrency: number

Defined in: packages/canisters/src/assets/index.ts:224

Max number of concurrent requests to the Internet Computer

16

optional effectiveCanisterId: Principal

Defined in: node_modules/@icp-sdk/core/lib/esm/agent/actor.d.ts:26

The effective canister ID.

ActorConfig.effectiveCanisterId


optional maxChunkSize: 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

1900000

optional maxSingleFileSize: number

Defined in: packages/canisters/src/assets/index.ts:229

Max file size in bytes that the asset manager shouldn’t chunk

1900000

optional pollingOptions: 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.

ActorConfig.pollingOptions

optional callTransform(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.

string

unknown[]

CallConfig

void | Partial<CallConfig>

ActorConfig.callTransform


optional queryTransform(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.

string

unknown[]

CallConfig

void | Partial<CallConfig>

ActorConfig.queryTransform