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.
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. |