> ## Documentation Index
> Fetch the complete documentation index at: https://docs.solanamobile.com/llms.txt
> Use this file to discover all available pages before exploring further.

# .skr Domain

> A human-readable .skr domain that maps to a Solana wallet address.

Every [Seeker](https://docs.solanamobile.com/solana-mobile-stack/seeker.md) owner receives a `.skr` domain — a human-readable name that maps to their Solana wallet address. Like the [Seeker Genesis Token](https://docs.solanamobile.com/solana-mobile-stack/seeker-genesis-token.md), a `.skr` domain is only minted once per device and can be transferred between a user's own wallet accounts within the [Seed Vault Wallet](https://docs.solanamobile.com/solana-mobile-stack/seed-vault.md).

Instead of sharing a long base58 wallet address, a user can share something like `alice.skr`. This makes it easier to send and receive tokens, display readable names in your app's UI, and reference users across apps.

## Resolution

SKR domains are built on [AllDomains](https://alldomains.id/) and support bidirectional resolution:

* **Forward resolution** — Given a `.skr` name, look up the associated wallet address.
* **Reverse resolution** — Given a wallet address, look up the associated `.skr` name.

Use the [`@solana-mobile/skr-domain`](https://www.npmjs.com/package/@solana-mobile/skr-domain) package to resolve `.skr` domains in your app:

```shell theme={null}
npm install @solana-mobile/skr-domain @solana/kit
```

```ts theme={null}
import {
  getPrimarySkrDomain,
  getSkrDomains,
  resolveSkrDomain,
} from '@solana-mobile/skr-domain'
import { address, createSolanaRpc } from '@solana/kit'

const rpc = createSolanaRpc(process.env.RPC_URL) // any mainnet RPC endpoint

// Forward: name to wallet address, or null if not registered or expired
const domain = await resolveSkrDomain(rpc, 'alice.skr')
console.log(domain?.owner)

// Reverse: the wallet's primary name, then any name it owns, then a short address
const wallet = address(walletAddress)
const label =
  (await getPrimarySkrDomain(rpc, wallet)) ??
  (await getSkrDomains(rpc, wallet))[0] ??
  `${wallet.slice(0, 4)}…${wallet.slice(-4)}`
```

The primary name is the one the user chose. Anyone can send a `.skr` name to any wallet, so a name from `getSkrDomains` is not proof of identity — show it alongside the address. `getSkrDomains` uses `getProgramAccounts`, which many RPC providers rate-limit or disable, so call it from your backend.

> [!NOTE]
>
> React Native apps need a WebCrypto polyfill such as
> [`react-native-quick-crypto`](https://github.com/margelo/react-native-quick-crypto),
> installed at startup before importing the package. See the [package
> README](https://github.com/solana-mobile/skr-js/tree/main/packages/skr-domain#readme)
> for details and the full API.

> [card] [SKR Address Resolution Sample](https://github.com/solana-mobile/react-native-samples/tree/main/skr-address-resolution)
>
> A sample app demonstrating bidirectional domain lookup with AllDomains
> integration.

Code samples on this page are subject to the
[Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0)
.
