Skip to content

getBlock

getBlock(baseChain): (blockId) => Promise<Block>

Parameters

baseChain: BaseChain

Returns

Function

Returns a block by its hash or number.

Parameters

blockId: number | bigint | Uint8Array

Returns

Promise<Block>

Defined in

packages/blockchain/src/actions/getBlock.js:13