Skip to main content

How to Resolve Seeker .skr Domains on Solana

Updated on
Oct 28, 2026

8 min read

Overview​

A .skr domain is a human-readable name for a Solana wallet, available to owners of the Solana Seeker phone. Each name is an account on the AllDomains name service under the .skr top-level domain, and that account stores the address of the wallet that owns it. Apps can resolve the name to send funds to the right wallet, or reverse the lookup to show a name in place of an address.

Users who hold a name such as mikehale.skr expect to type it and see it back in place of a 44-character base58 address. Reading the name onchain by hand means deriving a Program Derived Address (PDA), fetching the account, and decoding a fixed header, which is easy to get wrong.

The @solana-mobile/skr-domain package from Solana Mobile wraps those steps in a few functions built on Solana Kit. This guide uses it to resolve mikehale.skr to its owner, then goes the other direction and finds the names a wallet holds.


TL;DR
  • .skr names are human-readable Solana wallet names for Seeker owners, issued through the AllDomains name service
  • Resolve a .skr name to its owner's wallet with a single account read
  • Look up the reverse direction for a wallet's chosen primary name and every .skr name it holds
  • Listing a wallet's names needs getProgramAccounts, which may be rate limited on public endpoints. Quicknode Solana endpoints support it

What You Will Need​


  • Node.js 24 LTS
  • Basic TypeScript experience
  • A Solana mainnet endpoint. .skr names only exist on mainnet, and the SDK reads mainnet only. A Quicknode account gives you one with getProgramAccounts enabled
  • The packages below, installed in the next section
PackageVersionUsed for
@solana/kit^8.0.0Solana RPC client and the address helper
@solana-mobile/skr-domain^1.1.1Resolving .skr names and listing a wallet's names
tsx^4.20.0Runs TypeScript files directly with no build step

How Are .skr Domains Stored Onchain?​

A .skr name is a name account owned by the AllDomains name service program. Its address is a PDA derived from the SHA-256 hash of the label (mikehale) and the address of the .skr parent name. The owner sits in a fixed 200-byte header at the start of that account.

That layout gives each lookup a predictable cost:


  • Name to owner: derive the address offline, then make one getAccountInfo request
  • Wallet to primary name: read the wallet's MainDomain account, then resolve that name forward to confirm the wallet still owns it. Two getAccountInfo requests at most
  • Wallet to all names: search every name account the wallet owns with getProgramAccounts, then read each name's reverse-lookup account with getMultipleAccounts to recover the label

The last lookup is the reason the endpoint matters. getProgramAccounts may be rate limited on public endpoints, but Quicknode Solana endpoints support getProgramAccounts, so every function in this guide runs against one endpoint.

Set Up the Project​

Create a project folder, set it to ES Modules, and install the dependencies:

mkdir skr-domains
cd skr-domains
npm init -y
npm pkg set type=module
npm install @solana/kit@8 @solana-mobile/skr-domain@1
npm install -D tsx@4

Add three scripts that load your endpoint from a .env file with Node's built-in --env-file flag:

npm pkg set scripts.resolve="tsx --env-file=.env resolve-name.ts"
npm pkg set scripts.batch="tsx --env-file=.env resolve-many.ts"
npm pkg set scripts.names="tsx --env-file=.env wallet-names.ts"

Add Your Quicknode Endpoint​

Log in to your Quicknode dashboard, create a Solana mainnet endpoint, and copy its HTTP Provider URL.

Solana Mainnet Endpoint

Create a .env file in the project folder and paste the URL as QUICKNODE_RPC:

.env
QUICKNODE_RPC=https://your-endpoint.solana-mainnet.quiknode.pro/your-token/

Your endpoint URL contains your token, so add .env to .gitignore if you commit this project.

Resolve a .skr Name to a Wallet​

resolveSkrDomain takes a Kit RPC client and a name. It normalizes the name first, so Mikehale.skr and mikehale all resolve the same account. It returns null when the name is not registered or has expired.

Create resolve-name.ts:

resolve-name.ts
import { createSolanaRpc } from '@solana/kit'
import { resolveSkrDomain } from '@solana-mobile/skr-domain'

const endpoint = process.env.QUICKNODE_RPC
if (!endpoint) throw new Error('Set QUICKNODE_RPC in .env')
const rpc = createSolanaRpc(endpoint)
const NAME = 'mikehale.skr'

const domain = await resolveSkrDomain(rpc, NAME, { commitment: 'finalized' })

if (!domain) {
// Not registered, expired, or not a .skr name
console.log(`${NAME} is not registered`)
} else {
console.log(`Name: ${NAME}`)
console.log(`Owner: ${domain.owner}`)
console.log(`Name account: ${domain.nameAccount}`)
console.log(`Expires: ${domain.expiresAt === null ? 'never' : new Date(Number(domain.expiresAt) * 1000).toISOString()}`)
}

The result has three fields:


  • owner: the wallet that controls the name, as a Kit Address
  • nameAccount: the PDA that stores the name
  • expiresAt: null for a name that never expires, or a bigint of Unix seconds

Run it:

npm run resolve

Expected results:

Name: mikehale.skr
Owner: Ef1cWeFa49wRfMNM2YqVoD5otLxvi2eBcggRgxBSNdDf
Name account: DqrPcCERToQdtiEspviL6bSLvh3HgsgpZEK7Ya9PS6ai
Expires: never

Resolve Multiple Names in One Request​

resolveSkrDomain makes one request per name. If you need to resolve a list of names, such as every recipient on a leaderboard, you can split the work into the two steps it does internally.

Because a name account's address comes from hashing the label, getSkrNameAddress computes it on your machine with no network request. Derive the address for every name first, fetch the accounts with getMultipleAccounts, which accepts up to 100 addresses per call, then pass each account's bytes to decodeNameRecordHeader, which reads the owner and expiry out of the 200-byte header.

This path skips the checks resolveSkrDomain runs for you, so the script makes them itself:


  • A name with no account comes back as null, which means it was never registered
  • The account's parentName must equal SKR_PARENT, or it is not a .skr name
  • expiresAt must be 0n, which means the name never expires, or later than the current Unix time

Create resolve-many.ts:

resolve-many.ts
import { createSolanaRpc, getBase64Encoder } from '@solana/kit'
import { decodeNameRecordHeader, getSkrNameAddress, SKR_PARENT } from '@solana-mobile/skr-domain'

const endpoint = process.env.QUICKNODE_RPC
if (!endpoint) throw new Error('Set QUICKNODE_RPC in .env')
const rpc = createSolanaRpc(endpoint)
const NAMES = ['mikehale.skr', 'beeman.skr', 'not-registered-xyz.skr']

// Derive every name account locally, with no RPC request
const addresses = await Promise.all(NAMES.map(getSkrNameAddress))

const base64 = getBase64Encoder()
const now = BigInt(Math.floor(Date.now() / 1000))

// getMultipleAccounts accepts up to 100 addresses per call
for (let i = 0; i < addresses.length; i += 100) {
const batch = addresses.slice(i, i + 100)
const { value: accounts } = await rpc
.getMultipleAccounts(batch, { commitment: 'finalized', encoding: 'base64' })
.send()

accounts.forEach((account, j) => {
const name = NAMES[i + j]
// A missing account means the name was never registered
const header = account ? decodeNameRecordHeader(base64.encode(account.data[0])) : null
// Reject accounts outside .skr, and expired names (0n means never expires)
const valid = header && header.parentName === SKR_PARENT && (header.expiresAt === 0n || header.expiresAt > now)
console.log(`${name}: ${valid ? header.owner : 'not registered'}`)
})
}

The RPC returns account data as a base64 string, so getBase64Encoder turns it back into bytes before decodeNameRecordHeader reads the header. The results come back in the same order as the addresses you passed in, which is how NAMES[i + j] matches each account to its name.

Run it:

npm run batch

Expected results:

mikehale.skr: Ef1cWeFa49wRfMNM2YqVoD5otLxvi2eBcggRgxBSNdDf
beeman.skr: 2c43Cag8oYcLKdSDKde9dj632LpejDAXB6DF32z9Ef7P
not-registered-xyz.skr: not registered

Now go the other direction and start from a wallet address, using the owner of mikehale.skr.

Look Up a Wallet's .skr Names​

A wallet can hold several .skr names, but it picks at most one as its primary name. The SDK exposes both, and the recommended display order uses them together: the primary name first, then the first owned name, then a shortened address.

Create wallet-names.ts:

wallet-names.ts
import { address, createSolanaRpc } from '@solana/kit'
import { getPrimarySkrDomain, getSkrDomains } from '@solana-mobile/skr-domain'

const endpoint = process.env.QUICKNODE_RPC
if (!endpoint) throw new Error('Set QUICKNODE_RPC in .env')
const rpc = createSolanaRpc(endpoint)
const wallet = address('Ef1cWeFa49wRfMNM2YqVoD5otLxvi2eBcggRgxBSNdDf')

const primary = await getPrimarySkrDomain(rpc, wallet, { commitment: 'finalized' })
console.log(`Primary name: ${primary ?? 'none set'}`)

let names: string[] = []
try {
// One getProgramAccounts call, then getMultipleAccounts in batches of 100
names = await getSkrDomains(rpc, wallet, { commitment: 'finalized' })
console.log(`All .skr names: ${names.length ? names.join(', ') : 'none'}`)
} catch (error) {
console.error('getSkrDomains failed. Check that your endpoint allows getProgramAccounts.')
console.error(error)
}

// Primary name first, then the first listed name, then a short address
const label = primary ?? names[0] ?? `${wallet.slice(0, 4)}…${wallet.slice(-4)}`
console.log(`Display label: ${label}`)

getPrimarySkrDomain reads the wallet's MainDomain account. That account does not change when a name is transferred or expires, so the function resolves the name forward and returns it only when the wallet still owns it.

getSkrDomains returns every live .skr name the wallet owns, sorted. It skips names whose reverse-lookup account is missing, so an empty array does not prove the wallet holds no names.

Because getSkrDomains runs a getProgramAccounts scan, call it from your backend and cache the result per wallet, then return the names to your clients. resolveSkrDomain and getPrimarySkrDomain only read single accounts, so they are fine to call from a client.

Run it:

npm run names

Expected results:

Primary name: none set
All .skr names: mikehale.skr
Display label: mikehale.skr

This wallet has not set a primary name, so the label falls back to the one name it owns.


Treat the Name List as Untrusted

Anyone can send a .skr name to any wallet. For a wallet with no primary name, a stranger can choose which label your app shows. Sorting keeps the label stable between calls, but only the primary name is a choice the wallet made. Show the full address next to the name anywhere a user confirms a payment.

Two limits from the SDK are worth knowing:


  • Subdomains and other TLDs: normalizeSkrName rejects pay.alice.skr and names under any TLD other than .skr
  • Grace periods: the SDK treats a name as unregistered the second it expires

Wrap Up​

You resolved mikehale.skr to its owner with a single account read, then reversed the lookup to find that wallet's names and turn them into a label your UI can show. You also know where each call belongs: name and primary lookups on the client, and the getProgramAccounts scan on a server backed by an endpoint that supports it. Drop these functions into a send form, a leaderboard, or a profile page, and Seeker users will see the names they chose.

Next Steps​


Frequently Asked Questions​

What is a .skr domain?

A .skr domain is a human-readable name for a Solana wallet, issued to Solana Seeker owners. Each name is an account on the AllDomains name service under the .skr top-level domain, and the account header stores the owner's wallet address.

How do I resolve a .skr name to a Solana wallet address?

Call resolveSkrDomain from @solana-mobile/skr-domain with a Solana Kit RPC client and the name. It derives the name account, makes one getAccountInfo request, and returns the owner, the name account, and the expiry, or null if the name is not registered or has expired.

Why does getSkrDomains fail on my RPC endpoint?

getSkrDomains uses getProgramAccounts to find every name account a wallet owns. That method may be rate limited on public endpoints. Quicknode Solana endpoints support getProgramAccounts, so getSkrDomains runs against them.

Can I resolve .skr names on devnet?

No. .skr names exist only on Solana mainnet, and the skr-domain SDK reads mainnet only. Use a mainnet endpoint, even during development. The lookups are read-only and do not spend SOL.

What is the difference between a primary .skr name and the names a wallet owns?

A wallet chooses its primary name by creating a MainDomain account, and getPrimarySkrDomain returns it only while the wallet still owns it. getSkrDomains lists every .skr name the wallet holds, including names others sent to it, so prefer the primary name for display.