> ## Documentation Index
> Fetch the complete documentation index at: https://developers.avacloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# platform.sampleValidators

> SampleValidators returns a sampling of the list of current validators



## OpenAPI

````yaml post /P#platform.sampleValidators
openapi: 3.0.0
info:
  title: Avalanche Platform Chain API
  description: >-
    JSON-RPC 2.0 API for interacting with Avalanche's Platform Chain (P-Chain).
    All methods use POST to the same endpoint with the method specified in the
    request body.
  version: 1.0.0
servers:
  - url: https://api.avax.network/ext/bc
    description: Mainnet
  - url: https://api-test.avax.network/ext/bc
    description: Testnet
  - url: http://127.0.0.1:9650/ext/bc
    description: Testnet
security: []
paths:
  /P#platform.sampleValidators:
    post:
      tags:
        - platform
      summary: platform.sampleValidators
      description: SampleValidators returns a sampling of the list of current validators
      operationId: platform_sampleValidators
      requestBody:
        required: true
        description: JSON-RPC request
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  example: '2.0'
                  default: '2.0'
                method:
                  type: string
                  example: platform.sampleValidators
                  default: platform.sampleValidators
                params:
                  $ref: '#/components/schemas/SampleValidatorsArgs'
                  description: Method parameters
                id:
                  type: integer
                  example: 1
                  default: 1
              required:
                - jsonrpc
                - method
                - params
                - id
            examples:
              default:
                summary: Example request
                value:
                  jsonrpc: '2.0'
                  method: platform.sampleValidators
                  params: {}
                  id: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    example: '2.0'
                  result:
                    $ref: '#/components/schemas/SampleValidatorsReply'
                    description: Method result
                  id:
                    type: integer
                    example: 1
                required:
                  - jsonrpc
                  - result
                  - id
        default:
          description: Error response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JSONRPCError'
components:
  schemas:
    SampleValidatorsArgs:
      type: object
      properties:
        size:
          type: object
          description: 'External type: avajson.Uint16'
        subnetID:
          type: string
          description: Avalanche ID in cb58 format
          example: 2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM
      required:
        - size
        - subnetID
    SampleValidatorsReply:
      type: object
      properties:
        validators:
          type: array
          items:
            type: string
            description: Avalanche Node ID in cb58 format
            example: NodeID-111111111111111111116DBWJs
      required:
        - validators
    JSONRPCError:
      type: object
      description: JSON-RPC 2.0 Error Response
      properties:
        jsonrpc:
          type: string
          example: '2.0'
        error:
          type: object
          properties:
            code:
              type: integer
              description: Error code
            message:
              type: string
              description: Error message
            data:
              type: object
              description: Additional error data
          required:
            - code
            - message
        id:
          type: integer
          example: 1
      required:
        - jsonrpc
        - error
        - id

````