LookupName - Sui

LookupName. Resolves a SuiNS name to an address.

LookupName - sui [Value: 20CU]
Resolves a SuiNS name to its name record and target address.
gRPC: sui.rpc.v2.NameService/LookupName
Use cases

Use cases

  • Resolve .sui names to addresses
  • Show name expiration
  • Validate recipient names
Constraints

Constraints

  • Name is required
  • Accepts @name or name.sui
  • Expired names do not resolve
Get started
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
grpcurl \
  -H "x-drpc-key: {API-KEY}" \
  -H "x-drpc-chain: sui" \
  -d '{
  "name": "example.sui"
}' \
  grpc.drpc.live:443 \
  sui.rpc.v2.NameService/LookupName
Copy
Response
200
{
  "record": {
    "id": "0x8e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f7",
    "name": "example.sui",
    "registration_nft_id": "0x2f3e4d5c6b7a8f9e0d1c2b3a4f5e6d7c8b9a0f1e2d3c4b5a6f7e8d9c0b1a2f3e",
    "expiration_timestamp": "2027-05-14T09:21:43.512Z",
    "target_address": "0x94096a6a54129234237759c66e6ef1037224fb3102a0ae29d33b490281c8e4d5"
  }
}
Copy

Request params

Parametersobject
object
namestring
Required. The SuiNS name to look up, in `@name` or `name.sui` format.

Response

200
Resolves a SuiNS name to its name record and target address.

Response params

object
recordobject
SuiNS name record.
object
idstring
Id of this record.
namestring
The SuiNS name.
registration_nft_idstring
Id of the `RegistrationNFT` assigned to this record.
expiration_timestampstring
When the record expires (RFC 3339).
target_addressstring
Address the name points to.
dataobject
Additional data stored in the record.