Chain
names.resolve
Resolve a SuiNS name to the address it points at.
Details
- Endpoint
- GET /v1/names/:name
- Credits
- 1
- Rate class
- Light. Counts against your light requests per second.
Returns the target address of a SuiNS name (name.sui or @name), the id of the name's NFT, its expiry time (unix seconds) and whether it has expired. Returns 404 when the name is not registered. Names are lower case.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | SuiNS name such as adeniyi.sui, or @adeniyi. |
Request
Send your key in the x-api-key header, or leave it out to use the keyless tier.
curl
curl "https://api.tide.ad/v1/names/adeniyi.sui" \
-H "x-api-key: YOUR_API_KEY"TypeScript
const res = await fetch("https://api.tide.ad/v1/names/adeniyi.sui", {
headers: {
"x-api-key": process.env.TIDE_API_KEY!,
},
});
const data = await res.json();Response
JSON
{
"name": "adeniyi.sui",
"address": "0x1eb7c57e3f2bd0fc6cb9dcffd143ea957e4d98f805c358733f76dee0667fe0b1",
"nftId": "0x71b2071e10a4400d676b4ad71096deddb20dc271f072f173d523c0a28f76d611",
"expiresAt": 1874340606,
"expired": false,
"asOf": {
"checkpoint": 341461780,
"timestamp": "2026-11-04T06:01:21.847Z",
"lagMs": 775
}
}