@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) • 719 B
TypeScript
import { PalletsDispatchablesService } from '../../services';
import AbstractController from '../AbstractController';
/**
* `/pallets/{palletId}/dispatchables`
*
* Returns the metadata for each dispatchable item of the pallet.
*
* `/pallets/{palletId}/dispatchables/{dispatchableItemId}`
*
* Returns the info for the dispatchableItemId.
*
* See `docs/src/openapi-v1.yaml` for usage information.
*/
export default class PalletsDispatchablesController extends AbstractController<PalletsDispatchablesService> {
static controllerName: string;
static requiredPallets: never[];
constructor(api: string);
protected initRoutes(): void;
private getDispatchableById;
private getDispatchables;
}