@substrate/api-sidecar
Version:
REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.
21 lines (20 loc) • 571 B
TypeScript
import { AbstractService } from '../AbstractService';
interface IAhmStartEndBlocks {
startBlock: number | null;
endBlock: number | null;
}
export interface IAhmInfo {
relay: IAhmStartEndBlocks;
assetHub: IAhmStartEndBlocks;
}
export declare class AhmInfoService extends AbstractService {
/**
* Fetch Asset Hub Migration information at a given block.
*
* @param hash `BlockHash` to make call at.
*/
fetchAhmInfo(): Promise<IAhmInfo>;
handleFromAh(): Promise<IAhmInfo>;
handleFromRelay(): Promise<IAhmInfo>;
}
export {};