Options
All
  • Public
  • Public/Protected
  • All
Menu

An actor base class. An actor is an object containing only functions that will return a promise. These functions are derived from the IDL definition.

Hierarchy

  • Actor

Index

Constructors

  • new Actor(metadata: ActorMetadata): Actor

Properties

[metadataSymbol]: ActorMetadata

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>
  • interfaceOf(actor: Actor): ServiceClass
  • Get the interface of an actor, in the form of an instance of a Service.

    Parameters

    • actor: Actor

      The actor to get the interface of.

    Returns ServiceClass

Generated using TypeDoc