Skip to main content

Parameters

chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"suix_resolveNameServiceNames"
required
JSON-RPC method name.
params
object
required
Parameters for suix_resolveNameServiceNames: [address, cursor, limit]. The address is required. The cursor is an optional paging cursor (ObjectID) and limit is an optional unsigned integer.Positional parameters for suix_resolveNameServiceNames:
  • params[0]: The address to resolve names for, as a SuiAddress (base-58 encoded).
  • params[1]: Optional paging cursor (ObjectID). If provided, the query will start from the item after this cursor.
  • params[2]: Maximum number of items per page (uint). Defaults to QUERY_MAX_RESULT_LIMIT if not specified.

Returns

result
object
A page of resolved names for the specified address, with pagination information. If next_cursor is provided, reading with that cursor will start from the item after it; if null, the first page is returned.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "suix_resolveNameServiceNames",
    "params": [
      "0x5cd6fa76ed1d18f05f15e35075252ddec4fb83621d55952d9172fcfcb72feae2",
      "0xd22bbb46f892c42d9ec0ae4de93e02c75973a51c17180798237326a58694a2cf",
      3
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "data": [
      "example.sui"
    ],
    "nextCursor": "0xd22bbb46f892c42d9ec0ae4de93e02c75973a51c17180798237326a58694a2cf",
    "hasNextPage": false
  }
}