suix_resolveNameServiceNames
Return the resolved names given address, if multiple names are resolved, the first one is the primary name.
Parameters
address·SuiAddress· requiredThe address to resolvecursor·ObjectID· optionallimit·integer(uint) · optional
Result
Page<String,ObjectID>·Page<String, ObjectID>data·string[] · requiredhasNextPage·boolean· requirednextCursor·ObjectIDornull· optional
Example
Request
bash
curl https://mainnet-api.inodra.com/v1/jsonrpc \
-H 'Content-Type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_resolveNameServiceNames",
"params": [
"0x5cd6fa76ed1d18f05f15e35075252ddec4fb83621d55952d9172fcfcb72feae2",
"0xd22bbb46f892c42d9ec0ae4de93e02c75973a51c17180798237326a58694a2cf",
3
]
}'Response
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"data": [
"example.sui"
],
"nextCursor": "0xd22bbb46f892c42d9ec0ae4de93e02c75973a51c17180798237326a58694a2cf",
"hasNextPage": false
}
}