Chain
Method Name: getBlock
Parameters: Hash - BlockHash
Return Type: SignedBlock
interface: api.rpc.chain.getBlock
jsonrpc: 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.getBlockHash
jsonrpc: 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.getFinalizedHead
jsonrpc: 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.subscribeAllHeads
jsonrpc: chain_subscribeAllHeads
The getHeader method retrieves the header for a specific block.
Method Name: subscribeAllHeads
Parameters: -
Return Type: Header
interface: api.rpc.chain.subscribeAllHeads
jsonrpc: chain_subscribeAllHeads
The getHeader method retrieves the header for a specific block.
Method Name: subscribeFinalizedHeads
Parameter -
Return Type: Header
interface: api.rpc.chain.subscribeFinalizedHeads
jsonrpc: chain_subscribeFinalizedHeads
The subscribeFinalizedHeads method retrieves the best finalized header via subscription.
Method Name: subscribeNewHeads
Parameter: -
Return Type: Header
interface: api.rpc.chain.subscribeNewHeads
jsonrpc: chain_subscribeNewHeads
The subscribeNewHeads method retrieves the best header via subscription.
Last updated