Function Ledger.getBlocks

Get a range of blocks, starting from the provided block height.

auto getBlocks(HeightRange) (
  HeightRange rng
) nothrow @safe;

Requesting entries not in the Ledger will lead to an Exception being thrown.

Parameters

NameDescription
rng A range of height, e.g. as generated by iota

Returns

A range spawning the requested heights