Skip to main content
POST
getPrimaryDomain
curl --request POST \
  --url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getPrimaryDomain",
  "params": [
    "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p"
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "context": {
      "slot": 423867852,
      "apiVersion": "3.0.0"
    },
    "value": {
      "wallet": "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p",
      "domain": "solanatracker.sol"
    }
  }
}
⚡ Powered by Solana Ridge DBResolve a wallet’s primary .sol domain (Solscan-style favourite domain) in a single RPC call. Returns the display name with .sol suffix, or null if no primary domain is set or the favourite is no longer owned.Replaces the need to chain getAccountInfo and getMultipleAccounts for SNS resolution.
This method costs 1 credit per call.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
default:1
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getPrimaryDomain
required

The name of the RPC method to invoke.

Available options:
getPrimaryDomain
Example:

"getPrimaryDomain"

params
string[]
required
Required array length: 1 element

Wallet public key.

Response

Successful response.

jsonrpc
enum<string>
Available options:
2.0
id
string
result
object