add pagination for my sent txs
This commit is contained in:
parent
2e71900f76
commit
3e406d3643
@ -254,7 +254,7 @@ export class CosmosRestClient extends BaseRestClient<RequestRegistry> {
|
|||||||
// tx
|
// tx
|
||||||
async getTxsBySender(sender: string, page?: PageRequest) {
|
async getTxsBySender(sender: string, page?: PageRequest) {
|
||||||
if(!page) page = new PageRequest()
|
if(!page) page = new PageRequest()
|
||||||
const query = `?order_by=ORDER_BY_DESC&events=message.sender='${sender}'`;
|
const query = `?order_by=2&events=message.sender='${sender}'&pagination.limit=${page.limit}&pagination.offset=${page.offset||0}`;
|
||||||
return this.request(this.registry.tx_txs, {}, query);
|
return this.request(this.registry.tx_txs, {}, query);
|
||||||
}
|
}
|
||||||
// query ibc sending msgs
|
// query ibc sending msgs
|
||||||
|
Loading…
Reference in New Issue
Block a user