createActor static method

CanisterActor createActor(
  1. ServiceClass idl,
  2. HttpAgent agent,
  3. Principal canisterId
)

Implementation

static CanisterActor createActor(
    ServiceClass idl, HttpAgent agent, Principal canisterId) {
  return Actor.createActor(
      idl, ActorConfig.fromMap({"canisterId": canisterId, "agent": agent}));
}