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 (view full)

Constructors

  • Parameters

    • metadata: ActorMetadata

    Returns utils.agent.AdvancedActor

Methods

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

    Parameters

    Returns undefined | utils.agent.Agent

  • Get the interface of an actor, in the form of an instance of a Service.

    Parameters

    Returns types.IDL.ServiceClass

  • Parameters

    Returns types.Principal

  • Parameters

    Returns Promise<void>

  • Parameters

    Returns Promise<types.Principal>