Sui
sui.rpc.v2.NameService/LookupName15 Credits
Resolve a name to an address
Parameter
| Name | Typ | Beschreibung |
|---|---|---|
| name | string | SuiNS name to look up, in @name or name.sui format. |
Rückgabewert
Typ
LookupNameResponse
record: NameRecord with id, name, registration_nft_id, expiration_timestamp, target_address and data (extra key-value pairs).
Codebeispiele
# 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