查询给定范围内的区块信息。
用法
visionWeb.vs.getBlockRange(start block,end block);
入参
参数 | 描述 | 类型 | 默认值 |
---|---|---|---|
start block | 区块高度 | number | - |
end block | 区块高度 | number | - |
返回值
array,查询到的区块信息。
示例
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'
}
}
]