added   getBlocks

Documented api call getBocks was missing, this spec from /tests