getPrincipal abstract method

Future<Principal> getPrincipal()

Returns the principal ID associated with this agent (by default). It only shows the principal of the default identity in the agent, which is the principal used when calls don't specify it.

Implementation

Future<Principal> getPrincipal();