Constructors
Protected
constructor
- new Actor(metadata): utils.agent.Actor
Properties
Private
[metadataSymbol]
[metadataSymbol]: any
Methods
Static
agentOf
- agentOf(actor): undefined | utils.agent.Agent
Static
interfaceOf
- interfaceOf(actor): ServiceClass
Returns ServiceClass
Static
canisterIdOf
- canisterIdOf(actor): Principal
Returns Principal
Static
install
- install(fields, config): Promise<void>
Static
createCanister
- createCanister(config?, settings?): Promise<Principal>
Returns Promise<Principal>
Static
createAndInstallCanister
- createAndInstallCanister(interfaceFactory, fields, config?): Promise<types.ActorSubclass<Record<string, types.ActorMethod<unknown[], unknown>>>>
Static
createActorClass
- createActorClass(interfaceFactory, options?): utils.agent.ActorConstructor
Static
createActor
- createActor<T>(interfaceFactory, configuration): types.ActorSubclass<T>
Static
createActorWithHttpDetails
- createActorWithHttpDetails<T>(interfaceFactory, configuration): types.ActorSubclass<utils.agent.ActorMethodMappedWithHttpDetails<T>>
Static
createActorWithExtendedDetails
- createActorWithExtendedDetails<T>(interfaceFactory, configuration, actorClassOptions?): types.ActorSubclass<utils.agent.ActorMethodMappedExtended<T>>
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.