getAllBlocks(limit?, offset?, reverse?)
// Note: an asynchronous request.
const blocksInfo = async () => {
const info = await mitum.block.getAllBlocks();
console.log(info.data);
};
blocksInfo();
// output
[
{
_hint: 'mitum-currency-hal-v0.0.1',
_embedded: {
Manifest: [Object],
operations: 0,
confirmed_at: '2024-02-23 05:14:26.268180295 +0000 UTC',
proposer: 'node0sas',
round: 0
},
_links: {
block: [Object],
'block:{hash}': [Object],
'block:{height}': [Object],
'manifest:{hash}': [Object],
'manifest:{height}': [Object],
next: [Object],
self: [Object]
}
},
...
]Last updated