added `getBlocks` to blockchain