import { getHeader } from "https://deno.land/x/polkadot@0.2.16/api-derive/chain/index.ts";
Examples
const { author, number } = await api.derive.chain.getHeader('0x123...456');
console.log(`block #${number} was authored by ${author}`);
Parameters
api: DeriveApi
Returns
(blockHash: Uint8Array | string) => Observable<HeaderExtended>
An array containing the block header and the block author