Merge PR #2730: add tx search pagination related CLI/REST API parameter

This commit is contained in:
cong
2019-01-15 16:34:48 +01:00
committed by Christopher Goes
parent 11738de624
commit 916ea85630
14 changed files with 188 additions and 48 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ type DemocoinApp struct {
coolKeeper cool.Keeper
powKeeper pow.Keeper
ibcMapper ibc.Mapper
stakingKeeper simplestaking.Keeper
stakingKeeper simplestaking.Keeper
// Manage getting and setting accounts
accountKeeper auth.AccountKeeper
+5
View File
@@ -214,6 +214,11 @@ And for using multiple `tags`:
gaiacli query txs --tags='<tag1>:<value1>&<tag2>:<value2>'
```
The pagination is supported as well via `page` and `limit`:
```bash
gaiacli query txs --tags='<tag>:<value>' --page=1 --limit=20
```
::: tip Note
The action tag always equals the message type returned by the `Type()` function of the relevant message.