UNPKG

@substrate/api-sidecar

Version:

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

22 lines (21 loc) 901 B
import { ApiDecoration } from '@polkadot/api/types'; import { BlockHash } from '@polkadot/types/interfaces'; import { IPalletStakingValidator } from '../../types/responses'; import { AbstractService } from '../AbstractService'; export declare class PalletsStakingValidatorsService extends AbstractService { /** * Fetch all validators addresses and their status at a given block. * The status of the validator can be either: * - `active` (validator is part of the active set) or * - `waiting` (validator did not get into the active set this era) * * @param hash `BlockHash` to make call at */ derivePalletStakingValidators(hash: BlockHash): Promise<IPalletStakingValidator>; /** * Get the active validators given an era. * * @param historicApi */ getActiveValidators(historicApi: ApiDecoration<'promise'>): Promise<Set<string>>; }