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}`);
1
2
3

Parameters:

Name Type
api ApiInterface$Rx

Returns: (Anonymous function)


Last Updated: 2/25/2019, 4:39:16 PM