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