UNPKG

@substrate/api-sidecar

Version:

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

25 lines (24 loc) 1.05 kB
import { BlockHash } from '@polkadot/types/interfaces'; import { u32 } from '@polkadot/types-codec'; import { IParachainInclusion } from '../../types/responses'; import { AbstractService } from '../AbstractService'; export declare class ParasInclusionService extends AbstractService { constructor(api: string); /** * Find the relay chain inclusion information for a specific parachain block. * * @param hash - The relay chain block hash to start searching from * @param blockNumber - The parachain block number * @param depth - Search depth (defaults to 10) */ getParachainInclusion(hash: BlockHash, paraId: u32, number: string, depth?: number): Promise<IParachainInclusion>; /** * Search relay chain blocks for inclusion of a specific parachain block * Uses optimized candidate_events runtime API when available, falls back to system events for historical support */ private searchForInclusion; /** * Search using system events */ private searchWithSystemEvents; }