Skip to content

AssetManagerConfig

Defined in: assets/src/index.ts:117

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.

optional agent: Agent

Defined in: agent/lib/esm/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: agent/lib/esm/actor.d.ts:51

Polyfill for BLS Certificate verification in case wasm is not supported

ActorConfig.blsVerify


canisterId: string | Principal

Defined in: agent/lib/esm/actor.d.ts:39

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

ActorConfig.canisterId


optional concurrency: number

Defined in: assets/src/index.ts:122

Max number of concurrent requests to the Internet Computer

16

optional effectiveCanisterId: Principal

Defined in: agent/lib/esm/actor.d.ts:26

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

ActorConfig.effectiveCanisterId


optional maxChunkSize: number

Defined in: assets/src/index.ts:132

Size of each chunk in bytes when the asset manager has to chunk a file

1900000

optional maxSingleFileSize: number

Defined in: assets/src/index.ts:127

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

1900000

optional nonce: Uint8Array<ArrayBufferLike>

Defined in: agent/lib/esm/actor.d.ts:30

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

ActorConfig.nonce


optional pollingOptions: PollingOptions

Defined in: agent/lib/esm/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: agent/lib/esm/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: agent/lib/esm/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