📒
Name API
Does a reverse lookup with the given address for Solana Naming Service domains.
get
https://api.helius.xyz
/v0/addresses/{address}/names
Returns the Solana Naming Service name for a given address.
Human-readable domain names are great for social applications and tracking purposes. Some example use cases:
- Social feeds
- Wallet tracking
- Blockchain Explorers
- Wallet history
getNames.js
const axios = require('axios')
const url = "https://api.helius.xyz/v0/addresses/<address>/names?api-key=<your-key>"
const getNames = async () => {
const { data } = await axios.get(url)
console.log("domain names: ", data)
}
getNames()
Last modified 1mo ago