@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
21 lines (20 loc) • 918 B
TypeScript
import { BlockHash } from '@polkadot/types/interfaces';
import { IPalletNominationPool, IPalletNominationPoolInfo } from '../../types/responses/';
import { AbstractService } from '../AbstractService';
export declare class PalletsNominationPoolService extends AbstractService {
constructor(api: string);
/**
* Fetch nomination pool information at a given block and pool Id.
*
* @param poolId `Id` of the pool being queried
* @param hash `BlockHash` to make call at
* @param getMetaData boolean determining whether to query pool metadata
*/
fetchNominationPoolById(poolId: number, hash: BlockHash, getMetaData: boolean): Promise<IPalletNominationPool>;
/**
* Fetch generalized nomination pool information at a given block.
*
* @param hash `BlockHash` to make call at
*/
fetchNominationPoolInfo(hash: BlockHash): Promise<IPalletNominationPoolInfo>;
}