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?

image
image
just like this

I think this is what you’re looking for.

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