Integrate ANS into dApp
The API service provided by aleo-name-service-api. We recommend that developers run their own Indexer or use the API service deliver by Obscura, but developers can use the official ANS Indexer service for development and testing during the development phase.
Query the primary name of an address
Check if an address has set a primary domain name. A 404 response means it has not been configured.
Convert ANS name to address
Check if a domain name has a corresponding address. A 404 response indicates that it has not been registered. If the returned address is not an Aleo address, it means the domain is privately registered and not publicly disclosed.
Convert ANS name_hash to Human-readable Name
Convert an ANS name_hash to its human-readable name. A 404 response indicates that the name has not been registered. The returned data includes a balance
field, which represents the ACs (Aleo Credits) received by this ANS without a set password. Users can withdraw these ACs as needed.
Query resolver content
Query a domain name's configured resolver content. A 404 response indicates it has not been set up. If configured
Query avatar
The avatar falls under a resolver category. To retrieve a domain name's assigned avatar, specify category="avatar"
. If an avatar has been set up, the 'content' will point to the avatar image hosted on IPFS.
Last updated