# What PrincipalID is returned by Principal.fromActor()

**URL:** https://forum.dfinity.org/t/what-principalid-is-returned-by-principal-fromactor/15207
**Category:** Developers
**Created:** [August 31, 2022, 11:24am UTC](https://forum.dfinity.org/t/what-principalid-is-returned-by-principal-fromactor/15207 "2022-08-31T11:24:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![muharem](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/muharem/32/6577_2.png) [@muharem](https://forum.dfinity.org/u/muharem)
#### Post date: [August 31, 2022, 11:24am UTC](https://forum.dfinity.org/t/what-principalid-is-returned-by-principal-fromactor/15207/1 "2022-08-31T11:24:35Z")

</div>

Hello!

what PrincipalID is returned here for example: [examples/main.mo at master · dfinity/examples · GitHub](https://github.com/dfinity/examples/blob/master/motoko/invoice-canister/src/invoice/main.mo#L165) ??

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

---

<div class="post-metadata">

### Author: ![muharem](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/muharem/32/6577_2.png) [@muharem](https://forum.dfinity.org/u/muharem)
#### Post date: [September 1, 2022, 9:12am UTC](https://forum.dfinity.org/t/what-principalid-is-returned-by-principal-fromactor/15207/2 "2022-09-01T09:12:42Z")

</div>

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

```auto
 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

```

---

<div class="post-metadata">

### Author: ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)
#### Post date: [September 5, 2022, 9:44am UTC](https://forum.dfinity.org/t/what-principalid-is-returned-by-principal-fromactor/15207/3 "2022-09-05T09:44:32Z")

</div>

> [@muharem](#):
>
> How do I list the canister’s account balances?

See this answer:

> [@How to send ICP from one account to another using motoko?](https://forum.dfinity.org/t/how-to-send-icp-from-one-account-to-another-using-motoko/15061/8):
>
> The dfx command to check the ICP balance is dfx ledger balance \<account id\> (maybe with --network ic). To figure out the account identifier, use dfx ledger account-id to produce the identifier. Use dfx ledger account-id --help to see how to use the command. dfx wallet balance shows you the (cycles) balance of your cycles wallet.

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