Add pagination param to /block.all
MODIFY
docs/api_specs/includes/informational_api_specs.md
docs/api_specs/includes/informational_api_specs.md
@@ -296,7 +296,7 @@ id | Hex encoded string | Hash of the Plasma transaction
## Block - Get all
```shell
-curl -X POST -H "Content-Type: application/json" http://localhost:4000/block.all -d '{"limit": 100}'
+curl -X POST -H "Content-Type: application/json" http://localhost:4000/block.all -d '{"from_blknum": 68290001, "limit": 2}'
```
```elixir
@@ -330,7 +330,7 @@ curl -X POST -H "Content-Type: application/json" http://localhost:4000/block.all
}
```
-Gets a block with the given id
+Gets all blocks (with a limit on the number of blocks to return).
### HTTP Request
@@ -340,7 +340,8 @@ Gets a block with the given id
Attribute | Type | Description
--------- | ------- | -----------
-limit | Integer | Maximum number of transactions to return (default 200)
+limit | Integer | Maximum number of blocks to return (default 200)
+from_blknum | Integer | The block number of the latest block in the list to be returned. Optional - if not specified, latest block will be the current block. **Not Implemented Yet**

MODIFY
docs/api_specs/includes/watcher_websocket_specs.md
docs/api_specs/includes/watcher_websocket_specs.md
@@ -107,8 +107,4 @@ The RootChain contract raises certain events on Ethereum
* exit_started
* exit_challenged
* exit_finalized
- * inflight_exit_started
- * inflight_exit_challenged
- * piggyback_to_input
- * piggyback_to_output
* fees_exited

Add pagination param to /block.all