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