Interface: Actor<T>
A typesafe class that implements the Candid interface of a canister. This is acquired by calling setupCanister or createActor.
Typeparam
T The type of the Actor. Must implement ActorInterface.
Type parameters
• T extends ActorInterface
< T
> = ActorInterface
Methods
setPrincipal()
setPrincipal(
principal
):void
Set a Principal to be used as sender for all calls to the canister.
Parameters
• principal: Principal
The Principal to set.
Returns
void