ReverseLookupName - Sui

ReverseLookupName. Returns the SuiNS name linked to an address.

ReverseLookupName - sui [Value: 20CU]
Returns the SuiNS name record linked to an address (reverse resolution).
gRPC: sui.rpc.v2.NameService/ReverseLookupName
Use cases

Use cases

  • Show names instead of addresses
  • Personalize wallet UIs
  • Label addresses in explorers
Constraints

Constraints

  • Address is required
  • Name must point back to the address
  • Returns NOT_FOUND without a name
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 '{
  "address": "0x94096a6a54129234237759c66e6ef1037224fb3102a0ae29d33b490281c8e4d5"
}' \
  grpc.drpc.live:443 \
  sui.rpc.v2.NameService/ReverseLookupName
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
addressstring
Required. The address to perform a reverse lookup for.

Response

200
Returns the SuiNS name record linked to an address (reverse resolution).

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.