chain
getBlock(hash?: BlockHash): SignedBlock
BlockHash): SignedBlockinterface:
api.rpc.chain.getBlockjsonrpc:
chain_getBlocksummary: Gets the header and body of the target chain block
getBlockHash(blockNumber?: BlockNumber): BlockHash
BlockNumber): BlockHashinterface:
api.rpc.chain.getBlockHashjsonrpc:
chain_getBlockHash(alias=chain_getHead)summary: Gets the block hash for a specific block
getFinalizedHead(): BlockHash
BlockHashinterface:
api.rpc.chain.getFinalizedHeadjsonrpc:
chain_getFinalizedHead(alias=chain_getFinalisedHead)summary: Gets hash of the last finalized block in the canon chain
getHeader(hash?: BlockHash): Header
BlockHash): Headerinterface:
api.rpc.chain.getHeaderjsonrpc:
chain_getHeadersummary: Retrieves the header for a specific block
subscribeAllHeads(): Header
Headerinterface:
api.rpc.chain.subscribeAllHeadsjsonrpc:
chain_subscribeAllHeadssummary: Retrieves the newest header via subscription
subscribeFinalizedHeads(): Header
Headerinterface:
api.rpc.chain.subscribeFinalizedHeadsjsonrpc:
chain_subscribeFinalizedHeads(alias=chain_subscribeFinalisedHeads)summary: Retrieves the best finalized header via subscription.
subscribeNewHeads(): Header
Headerinterface:
api.rpc.chain.subscribeNewHeadsjsonrpc:
chain_subscribeNewHeads(alias=chain_subscribeNewHead)summary: Retrieves the best header via subscription.
Last updated