@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) • 667 B
TypeScript
import { PalletsConstantsService } from '../../services';
import AbstractController from '../AbstractController';
/**
* `/pallets/{palletId}/consts`
*
* Returns the metadata for each constant item of the pallet.
*
* `/pallets/{palletId}/consts/{constantItemId}`
*
* Returns the info for the constantItemId.
*
* See `docs/src/openapi-v1.yaml` for usage information.
*/
export default class PalletsConstantsController extends AbstractController<PalletsConstantsService> {
static controllerName: string;
static requiredPallets: never[];
constructor(api: string);
protected initRoutes(): void;
private getConstById;
private getConsts;
}