UNPKG

@substrate/api-sidecar

Version:

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

18 lines (17 loc) 661 B
import { BlocksService } from '../../../services'; import { ControllerOptions } from '../../../types/chains-config'; import AbstractController from '../../AbstractController'; export default class RcBlocksController extends AbstractController<BlocksService> { private readonly options; private blockStore; static controllerName: string; static requiredPallets: string[][]; constructor(_api: string, options: ControllerOptions); protected initRoutes(): void; private emitExtrinsicMetrics; private getLatestBlock; private getBlockById; private getBlockHeaderById; private getLatestBlockHeader; private getBlocks; }