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 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} `) }
Query Params
string

Filter by key holder

string

Filter by contract type

Responses

Language