RPC Method eth_getBlockByHash implementation

Ethereum block hash is passed to Thor as the block id.

  • Parameters

    • thorClient: ThorClient

      The thor client instance to use.

    • params: unknown[]

      The standard array of rpc call parameters. * params[0]: The block hash of block to get. * params[1]: The transaction hydrated detail flag. If true, the block will contain the transaction details, otherwise it will only contain the transaction hashes.

    Returns Promise<BlocksRPC>

    the block at the given block hash formatted to the RPC standard or null if the block does not exist.