Skip to content
🎉 Welcome to the new Aptos Docs! Click here to submit feedback!

Get Name From Address

getNameFromAddress looks for a registered domain name for a given account. For example, a user could register their account with the Aptos Name Service to be associated to love.apt. You can learn more by going to https://www.aptosnames.com/.

⚠️

This only returns active names. Name registrations can expire if not renewed, which may explain some empty results.

Try it yourself! You can customize the variables at the bottom of the editor.

Loading...

Variables:

  • $registered_address: String - The account address you want to find any associated active domain names for. Ex. "0xca4349ce902a656570a4f344cc8f360fb13fd41b5fae77bcc9ee82252d67539e".