UNPKG

@substrate/api-sidecar

Version:

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

33 lines (32 loc) 987 B
import { AhmInfoService } from '../../services'; import AbstractController from '../AbstractController'; /** * GET Asset Hub Migration information. * * Paths: * - No path parameters required. * * Query: * - (Optional)`at`: Block at which to retrieve AHM information. Block * identifier, as the block height or block hash. Defaults to most recent block. * * Returns: * - `at`: Block number and hash at which the call was made. * - Additional AHM-specific data (to be implemented). * * Substrate Reference: * - TBD: Add relevant substrate references when implementing business logic */ export default class AhmInfoController extends AbstractController<AhmInfoService> { static controllerName: string; static requiredPallets: string[][]; constructor(api: string); protected initRoutes(): void; /** * Get Asset Hub Migration information. * * @param req Express Request * @param res Express Response */ private getAhmInfo; }