@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
24 lines (23 loc) • 800 B
TypeScript
import { PalletsStorageService } from '../../services';
import AbstractController from '../AbstractController';
/**
* `/pallets/{palletId}/storage`
*
* Returns the metadata for each storage item of the pallet.
*
* `/pallets/{palletId}/storage/{storageItemId}`
*
* Returns the value stored under the storageItemId. If it is a
* map, query param key1 is required. If the storage item is double map
* query params key1 and key2 are required.
*
* See `docs/src/openapi-v1.yaml` for usage information.
*/
export default class PalletsStorageController extends AbstractController<PalletsStorageService> {
static controllerName: string;
static requiredPallets: never[];
constructor(api: string);
protected initRoutes(): void;
private getStorageItem;
private getStorage;
}