Get a list of validators, optionally filtering by key_holder and contract_type

import { NorthstakeApi } from '@northstake/northstakeapi'
const api = new NorthstakeApi('apiKey', 'privateKey')

const {body:validators} = await api.validators.getValidators()

for (const validator of validators) {
    console.log(`
      Validator Name: ${validator.associatedOrderId}
      Validator type: ${validator.validatorType}
      Validator balance: ${validator.balance}
      Validator index: ${validator.validatorIndex}
      Validator exit estimate: ${validator.exitEstimate}
      `)
  }
Language
Click Try It! to start a request and see the response here!