Sui
sui.rpc.v2.NameService/LookupName15 크레딧
Resolve a name to an address
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| name | string | SuiNS name to look up, in @name or name.sui format. |
반환값
타입
LookupNameResponse
record: NameRecord with id, name, registration_nft_id, expiration_timestamp, target_address and data (extra key-value pairs).
코드 예제
# 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