chain
getBlock(hash?: BlockHash): SignedBlock
interface:
chain.getBlockjsonrpc:
chain_getBlocksummary: Get header and body of a relay chain block
getBlockHash(blockNumber?: BlockNumber): BlockHash
interface:
chain.getBlockHashjsonrpc:
chain_getBlockHashsummary: Get the block hash for a specific block
getFinalizedHead(): BlockHash
interface:
chain.getFinalizedHeadjsonrpc:
chain_getFinalizedHeadsummary: Get hash of the last finalized block in the canon chain
getHeader(hash?: BlockHash): Header
interface:
chain.getHeaderjsonrpc:
chain_getHeadersummary: Retrieves the header for a specific block
subscribeAllHeads(): Header
interface:
chain.subscribeAllHeadsjsonrpc:
chain_subscribeAllHeadssummary: Retrieves the newest header via subscription
subscribeFinalizedHeads(): Header
interface:
chain.subscribeFinalizedHeadsjsonrpc:
chain_subscribeFinalizedHeadssummary: Retrieves the best finalized header via subscription
subscribeNewHeads(): Header
interface:
chain.subscribeNewHeadsjsonrpc:
chain_subscribeNewHeadssummary: Retrieves the best header via subscription