@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
25 lines (24 loc) • 820 B
TypeScript
import { RequestHandler } from 'express';
import { NodeVersionService } from '../../services';
import AbstractController from '../AbstractController';
/**
* GET information about the Substrates node's implementation and versioning.
*
* Returns:
* - `clientVersion`: Node binary version.
* - `clientImplName`: Node's implementation name.
* - `chain`: Node's chain name.
*/
export default class NodeVersionController extends AbstractController<NodeVersionService> {
static controllerName: string;
static requiredPallets: never[];
constructor(api: string);
protected initRoutes(): void;
/**
* GET information about the Substrates node's implementation and versioning.
*
* @param _req Express Request
* @param res Express Response
*/
getNodeVersion: RequestHandler;
}