getBlockRange

Query the block information by range.

Usage

visionWeb.vs.getBlockRange(start block,end block);

Parameters

ParameterDescriptionTypeDefault
start blockBlock number of the beginning of the range.number-
end blockBlock number of the end of the range.number-

Returns

Object array

Example

visionWeb.vs.getBlockRange(37259, 37260);
> [
  {
    blockID: '000000000000918b6f571f723d45edb20af724cb9a474e488cec991b5a0b9051',
    block_header: {
      raw_data: [Object],
      witness_signature: 'afcd925fdf37b81c1656f248ee058b5b14659afb2566f791357668520e11321d29438a57db211418bb0017ff5b8c17d918197b04f60e86bdf932c8d0ccace6f100'
    },
    transactions: [ [Object] ]
  },
  {
    blockID: '000000000000918c6e5e74ec8b0a4db59a859b409aa5015d01c3942c87f398ae',
    block_header: {
      raw_data: [Object],
      witness_signature: '2537ae9c75e9cd26d6c778ed2de4fe93e8092351865db4664a7097f2c03920b44a21396cb5f3c1aaac8afda6385f05c79603c3d304a4d2d8916639b28fe84f1801'
    }
  }
]