What PrincipalID is returned by Principal.fromActor()

Hello!

what PrincipalID is returned here for example: examples/main.mo at master · dfinity/examples · GitHub ??

Also: how do I send ICP to a canister? How do I list the canister’s account balances?

for the record: it returns the canister id e.g.:

 Sep 01 08:19:31.098 INFO Starting server. Listening on http://127.0.0.1:8000/
[Canister rrkah-fqaaa-aaaaa-aaaaq-cai] canister principal: rrkah-fqaaa-aaaaa-aaaaq-cai
1 Like

See this answer:

For your other question, you can also find the answers in that thread in one of the earlier posts.