.sol identity. Instead of showing only a base58 wallet address, you can display names like solanatracker.sol, resolve a domain back to its owner, or fetch every .sol name a wallet owns.
The Ridge custom RPC SNS methods resolve this data in one RPC call. You do not need to manually chain account lookups, decode name registry accounts, or maintain a client-side cache just to show wallet identity.
Each SNS RPC method costs 1 credit per call. Twitter/X handles (
.twitter) are not supported.What you can build
Use the SNS methods for:- Wallet labels in dashboards, leaderboards, and portfolio views.
- Batch identity enrichment for lists of traders or holders.
- Profile pages that show every
.soldomain owned by a wallet. - Search boxes that accept
name.soland resolve it to a wallet.
| Goal | Method |
|---|---|
Get one wallet’s primary .sol domain | getPrimaryDomain |
| Resolve primary domains for many wallets | getMultiplePrimaryDomains |
List all .sol domains owned by a wallet | getAllDomains |
Resolve name.sol to an owner wallet | resolveSolDomain |
RPC endpoint
All examples use JSON-RPC 2.0 over HTTP:Get a wallet’s primary domain
UsegetPrimaryDomain when you want the display label most users expect: the wallet’s primary or favourite .sol domain.
domain is null:
Batch primary domains
UsegetMultiplePrimaryDomains when rendering lists of wallets: holders, traders, leaderboard rows, copy-trading candidates, or activity feeds.
The method accepts up to 100 wallets and returns results in the same order as the input list.
Get all domains owned by a wallet
UsegetAllDomains for wallet profile pages, domain portfolios, or account settings screens where the user expects to see every .sol name they own.
domains is an empty array.
Resolve a domain to an owner
UseresolveSolDomain when a user types a .sol name and you need the owner wallet.
value is null.
resolveSolDomain supports root .sol domains like name.sol and one-level subdomains like sub.parent.sol.
Example: wallet identity helper
This helper uses primary domains for display and keeps the wallet address available for linking, copying, or transaction actions.Choosing the right SNS method
| Situation | Recommendation |
|---|---|
| Single wallet profile header | getPrimaryDomain |
| Leaderboard or holder table | getMultiplePrimaryDomains |
| Domain portfolio page | getAllDomains |
Search input accepts .sol names | resolveSolDomain |
PnL V2 response already includes identity.sns | Use the included PnL V2 identity field |
PnL V2 already includes SNS identity in supported wallet and token analytics responses. Use these RPC methods when you need SNS resolution directly from the Solana RPC surface.
UI and product tips
- Always keep the wallet address available, even when showing a domain.
- Treat
domain: nullas a normal result, not an error. - Use batch resolution for tables and feeds instead of calling
getPrimaryDomainin a loop. - Show
.solnames as labels, but copy and link the underlying wallet address. - For user search, resolve
.solnames first, then continue with the returned owner wallet.
getMultiplePrimaryDomains
Batch primary
.sol domains for up to 100 wallets.PnL V2 SNS Identity
See where SNS identity appears in PnL V2 responses.