Docs · v1

Browser integration

How the SDNS in-app browser turns a name like hello.sol into a website.

01Detect a name in the address bar

Treat any input ending in .sol or .sns (with an optional one-level subdomain) as an SDNS name instead of a DNS hostname or a search query.

address-bar.ts
const SDNS_NAME = /^(?:[a-z0-9_-]+\.)?[a-z0-9_-]+\.(sol|sns)\.?$/i;
SDNS_NAME.test(host)  // "hello.sol" -> true

02Resolve it

GET /api/resolve
GET https://sdns-ten.vercel.app/api/resolve?name=hello.sol

200 {
  "name": "hello.sol",
  "label": "hello",
  "owner": "<wallet>",
  "url": "https://example.com/",
  "source": "sdns",          // "sdns" | "sns-record"
  "status": "ok"
}
404 { ..., "url": null, "status": "not_configured" | "not_registered" }
400 { ..., "status": "invalid" }

Load url in the webview. Keep showing hello.sol in the address bar, and show the real origin in the page info or lock sheet so users know which site they are on. Responses are cacheable for 30 seconds.

03Or: one-line redirect

If you'd rather not call the JSON API, load this URL. It sends a 302 to the target, or to an SDNS info page if the name isn't set up.

GET /r/:name
https://sdns-ten.vercel.app/r/hello.sol   →   302 Location: https://example.com/

04Resolution rules

  • hello.sol and hello.sns resolve the same way. SNS renamed existing .sol names to .sns in 2026, and the matching .sol names were airdropped to the same holders.
  • An SDNS record only counts if it was signed by the name's current on-chain owner (the NFT holder for tokenized names). After a transfer, old records are ignored.
  • If there's no valid SDNS record, the name's on-chain SNS url record is used, then its IPFS record through a gateway.
  • Subdomains (blog.hello.sol) currently resolve to the parent name's target.

05Writing records

Owners manage records on this site. Each change is an ed25519 wallet signature over a fixed message. It's checked against on-chain ownership, must be less than 5 minutes old, and must be newer than the last change, so a signature can't be replayed.