List current validators (P-Chain)
avax_pchain_get_validatorsRetrieve current validators for the Avalanche Primary Network or any Subnet/L1. Specify subnet_id for a custom L1's validator set, with stake, uptime, and delegation details.
Instructions
List current validators of the Primary Network or of a specific Subnet/L1 via platform.getCurrentValidators. Returns nodeID, stake, uptime, end time, delegation fee. Use subnet_id to inspect an L1's validator set; omit for Primary Network.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "avax_pchain_get_validators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| network | No | Primary network: mainnet or fuji | fuji |
| node_ids | No | Filter to these NodeID-... values | |
| subnet_id | No | Subnet ID (CB58). Omit for Primary Network. |