# When I log in to someone else's dapp , I register the wallet and the address is displayed. How to implement this address through code?

**URL:** <https://forum.dfinity.org/t/when-i-log-in-to-someone-elses-dapp-i-register-the-wallet-and-the-address-is-displayed-how-to-implement-this-address-through-code/11015>\
**Category:** Developers\
**Created:** [February 21, 2022, 11:17am UTC](https://forum.dfinity.org/t/when-i-log-in-to-someone-elses-dapp-i-register-the-wallet-and-the-address-is-displayed-how-to-implement-this-address-through-code/11015 "2022-02-21T11:17:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ainightfool](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ainightfool](https://forum.dfinity.org/u/ainightfool)\
**Post date:** [February 21, 2022, 11:17am UTC](https://forum.dfinity.org/t/when-i-log-in-to-someone-elses-dapp-i-register-the-wallet-and-the-address-is-displayed-how-to-implement-this-address-through-code/11015/1 "2022-02-21T11:17:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/5/560d47690799bcb84a0eec37557e4f1f682c7fa1.png)  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/2X/3/3700728aee66b0c8e30d4186af3df2f96d67722d.png)  
just like this

---

<div class="post-metadata">

**Author:** ![paulyoung](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/paulyoung/32/5251_2.png) [@paulyoung](https://forum.dfinity.org/u/paulyoung)\
**Post date:** [February 23, 2022, 7:32am UTC](https://forum.dfinity.org/t/when-i-log-in-to-someone-elses-dapp-i-register-the-wallet-and-the-address-is-displayed-how-to-implement-this-address-through-code/11015/2 "2022-02-23T07:32:23Z")

</div>

I think this is what you’re looking for.

> <https://github.com/dfinity/internet-identity/blob/ec133f236024c901adbd0c2bb2e637b4243d3887/demos/whoami/whoami.mo>

---

<div class="post-metadata">

**Author:** ![ainightfool](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ainightfool](https://forum.dfinity.org/u/ainightfool)\
**Post date:** [February 24, 2022, 7:34am UTC](https://forum.dfinity.org/t/when-i-log-in-to-someone-elses-dapp-i-register-the-wallet-and-the-address-is-displayed-how-to-implement-this-address-through-code/11015/3 "2022-02-24T07:34:49Z")

</div>

Thank you for your answering. I found this before.It will show your Principal.But i wana know accountId to transfer my icp
