Validators

📘

For more inspiration, check out these recipes involving managed users


getValidatorsForUser(userId: string)**:

Get all validators associated with the managed user

const userId = 'northstake_user_guuid'
const {body:validators} = await api.managedUsersValidators.getValidatorsForUser(userId)

  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}
      `)
  }