Skip to content

Commit ce04bf2

Browse files
committed
Pagination support on txlist module
1 parent e346e20 commit ce04bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/account.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ module.exports = function(getRequest, apiKey) {
114114
* var txlist = api.account.txlist('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae', 1, 'latest', 'asc');
115115
* @returns {Promise.<object>}
116116
*/
117-
txlist(address, startblock, endblock, sort) {
117+
txlist(address, startblock, endblock, sort, offset, page) {
118118
const module = 'account';
119119
const action = 'txlist';
120120

@@ -131,7 +131,7 @@ module.exports = function(getRequest, apiKey) {
131131
}
132132

133133
var query = querystring.stringify({
134-
module, action, startblock, endblock, sort, address, apiKey
134+
module, action, startblock, endblock, sort, address, apiKey, offset, page
135135
});
136136

137137
return getRequest(query);

0 commit comments

Comments
 (0)