Function presetQueryBlocksAndTransactionHashes

  • Returns a query object for all Blocks and hashes of the Transactions within the block range (from_block, to_block]. Also returns the block_hash and block_number fields on each Transaction so it can be mapped to a block. If to_block is None then query runs to the head of the chain.

    Parameters

    • fromBlock: number
    • Optional toBlock: number

    Returns Query