Files
api/docs/api-derive/modules/_chain_getheader_.md
T
2019-01-26 15:50:58 +00:00

647 B

Functions

getHeader

▸ getHeader(api: ApiInterface$Rx): (Anonymous function)

Defined in chain/getHeader.ts:25

description: Get the a specific block header and extend it with the author

example:

const { author, blockNumber } = await api.derive.chain.getHeader('0x123...456');

console.log(`block #${blockNumber} was authored by ${author}`);

Parameters:

Name Type
api ApiInterface$Rx

Returns: (Anonymous function)