"gaiacli query txs --tags" sort DESC (cosmoshub-3)
Cosmos-SDK2 posts960 views1 likesLast activity Feb 2020
BC
bchOP
Jan 2020 1Hello.
I’m trying to fetch the latest txs sent to a certain account.
I’m using “gaiacli query txs --tags transfer.recipient:<public_address> --page 1 --limit 100”
but I don’t see how to sort the results by DESC. Is there a way to do that? Thanks!
BE
Ben_Bargains
Feb 2020Seems like you need paginate over to get latest transactions, the latest transaction on chain will be on last page and last element in response array, which not convenient, would make more sense to return transactions in descending by default.
cosmos/gaia/blob/f61b391aee5d04364d2b5539692bbb187ad9b946/docs/resources/gaiacli.md#query-transactions
<!--
order: 1
-->
# Gaia Client
## Gaia CLI
`gaiacli` is the tool that enables you to interact with the node that runs on the Cosmos Hub network, whether you run it yourself or not. Let us set it up properly. In order to install it, follow the [installation procedure](../gaia-tutorials/installation.md).
### Setting up gaiacli
The main command used to set up `gaiacli` is the following:
```bash
gaiacli config <flag> <value>
```
It allows you to set a default value for each given flag.
This file has been truncated. show original