Wrap BlockInfo REST API response array into an object
@@ -16,7 +16,7 @@ def get_block_config():
@handle_key_not_found
def get_block_info(start=None, limit=None):
- return [interpret_block_info(block) for block in block_info_client.get_many_block_info(start, limit)]
+ return { 'blocks': [interpret_block_info(block) for block in block_info_client.get_many_block_info(start, limit)] }
def interpret_block_info(block_info):
