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