Skip to main content

Parameters

chainId
string
default:"43113"
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:"platform.getCurrentValidators"
required
JSON-RPC method name.
params
object
Parameters for platform.getCurrentValidators:
  • params.subnetID: Optional ID of the subnet. If omitted, returns validators of the Primary Network.
  • params.nodeIDs: Optional list of NodeIDs to filter the validators returned.

Returns

result
object
The JSON-RPC result.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43113 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "platform.getCurrentValidators",
    "params": {}
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}