Chain
Method Name: getBlock
Parameters: Hash - BlockHash
Return Type: SignedBlock
interface: api.rpc.chain.getBlockjsonrpc: chain_getBlock
The getBlock method gets the header and body of a relay chain block for the given parameter Hash.
Method Name: getBlockHash
Parameters: blockNumber - BlockNumber
Return Type: BlockHash
interface: api.rpc.chain.getBlockHashjsonrpc: chain_getBlockHash
The getBlockHash method gets the block hash for a specific block for the given parameter BlockHash.
Method Name : getFinalizedHead
Parameters: -
Return Type: BlockHash
interface: api.rpc.chain.getFinalizedHeadjsonrpc: chain_getFinalizedHead
The getFinalizedHead method gets the hash of the last finalised block in the canon chain.
Method Name: getHeader
Parameter: hash - BlockHash
Return Type: Header
interface: api.rpc.chain.subscribeAllHeadsjsonrpc: chain_subscribeAllHeads
The getHeader method retrieves the header for a specific block.
Method Name: subscribeAllHeads
Parameters: -
Return Type: Header
interface: api.rpc.chain.subscribeAllHeadsjsonrpc: chain_subscribeAllHeads
The getHeader method retrieves the header for a specific block.
Method Name: subscribeFinalizedHeads
Parameter -
Return Type: Header
interface: api.rpc.chain.subscribeFinalizedHeadsjsonrpc: chain_subscribeFinalizedHeads
The subscribeFinalizedHeads method retrieves the best finalized header via subscription.
Method Name: subscribeNewHeads
Parameter: -
Return Type: Header
interface: api.rpc.chain.subscribeNewHeadsjsonrpc: chain_subscribeNewHeads
The subscribeNewHeads method retrieves the best header via subscription.
Last updated