Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AdvancedActor

Hierarchy

Index

Constructors

Methods

  • Get the Agent class this Actor would call, or undefined if the Actor would use the default agent (global.ic.agent).

    Parameters

    • actor: Actor

      The actor to get the agent of.

    Returns undefined | Agent

  • canisterIdOf(actor: Actor): Principal
  • createAndInstallCanister(interfaceFactory: InterfaceFactory, fields: { arg?: ArrayBuffer; module: ArrayBuffer }, config?: CallConfig): Promise<ActorSubclass<Record<string, ActorMethod<unknown[], unknown>>>>
  • createCanister(config?: CallConfig, settings?: CreateCanisterSettings): Promise<Principal>
  • install(fields: { arg?: ArrayBuffer; mode?: canister_install_mode; module: ArrayBuffer }, config: ActorConfig): Promise<void>
  • Parameters

    • fields: { arg?: ArrayBuffer; mode?: canister_install_mode; module: ArrayBuffer }
      • Optional arg?: ArrayBuffer
      • Optional mode?: canister_install_mode
      • module: ArrayBuffer
    • config: ActorConfig

    Returns Promise<void>

  • interfaceOf(actor: Actor): ServiceClass

Generated using TypeDoc