PricingGitHubDashboard

Sui

sui.rpc.v2.NameService/LookupName15 credits

Resolve a name to an address

Network: sui

Parameters

NameTypeDescription
namestringSuiNS name to look up, in @name or name.sui format.

Returns

Type

LookupNameResponse

record: NameRecord with id, name, registration_nft_id, expiration_timestamp, target_address and data (extra key-value pairs).

Code examples

# the key of the endpoint goes in the x-token header; add -proto <file> when the node has no gRPC reflection
grpcurl \
  -H 'x-token: 7c9e6679-7425-40de-944b-e07fc1f90ae7' \
  -d '{
  "name": "example.sui"
}' \
  grpc-holy-burned-sky-sui-mainnet.rpcnode.dev:443 \
  sui.rpc.v2.NameService/LookupName