createActor static method

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

Implementation

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