add pagination for my sent txs

This commit is contained in:
liangping 2023-08-16 09:08:09 +08:00
parent 2e71900f76
commit 3e406d3643

View File

@ -254,7 +254,7 @@ export class CosmosRestClient extends BaseRestClient<RequestRegistry> {
// tx
async getTxsBySender(sender: string, page?: 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);
}
// query ibc sending msgs