import type { ApiInterfaceRx } from '@polkadot/api/types'; import type { Observable } from '@polkadot/x-rxjs'; import type { HeaderExtended } from '../type/types'; /** * @name getHeader * @param {( Uint8Array | string )} hash - A block hash as U8 array or string. * @returns An array containing the block header and the block author * @description Get a specific block header and extend it with the author * @example *
* * ```javascript * const { author, number } = await api.derive.chain.getHeader('0x123...456'); * * console.log(`block #${number} was authored by ${author}`); * ``` */ export declare function getHeader(instanceId: string, api: ApiInterfaceRx): (hash: Uint8Array | string) => Observable;