get Primary Domain
A wallet’s primary .sol domain, or null, in one call.
1 credit a call. Free plan includes 500,000 credits a month.
What it returns
Pass a wallet. You get the .sol domain it set as primary, or null when it has none or no longer owns it.
It replaces the usual chain of SNS account lookups with one call.
What you can build
Names, not addresses
Show trader.sol in wallet headers and trade feeds.
Profiles
Label copy-trade and leaderboard profiles.
Known wallets
Tag wallets by the name their owner chose.
Call it
Replace the URL with your endpoint from the dashboard.
getPrimaryDomain1 credit
Request
curl "$SOLANA_RPC_URL" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "id": 1, "method": "getPrimaryDomain", "params": [ "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p" ] }'
Response shape
{
"context": {
"slot": 423867852,
"apiVersion": "3.0.0"
},
"value": {
"wallet": "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p",
"domain": "solanatracker.sol"
}
}Parameters
- walletstring
- The only positional parameter.
Good to know
- .twitter handles are not supported.
Start calling getPrimaryDomain.
Free to start. Paid plans from €39 a month.