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 asset: ${validator.asset}
      Validator balance: ${validator.balance}
      Validator contract_address: ${validator.contract_address}
      Validator exit_estimate: ${validator.exit_estimate}
      Validator key_holder: ${validator.key_holder}
      Validator status: ${validator.status}
      Validator index: ${validator.validator_index}
      Validator public key: ${validator.validator_public_key }
      Validator type: ${validator.validator_type}
      `)
  }
Language
Click Try It! to start a request and see the response here!