Add GetBlocks() to the API