Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75046dc

Browse files
author
maxim-zuev
committed
add start end block params to transfer_events method
1 parent e059d7c commit 75046dc

File tree

7 files changed

+23
-6
lines changed

7 files changed

+23
-6
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ docs
1515

1616
# eggs
1717
*egg*
18+
19+
logs/

etherscan/configs/GOERLI-stable.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
"contract_address": "0x2ac3c1d3e24b45c6c310534bc2dd84b5ed576335",
253253
"page": 1,
254254
"offset": 100,
255-
"sort": "asc"
255+
"sort": "asc",
256+
"startblock": 0,
257+
"endblock": 999999999
256258
}
257259
},
258260
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {

etherscan/configs/KOVAN-stable.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
"contract_address": "0x8fe80f7ca77daa68b059f8b3e29e1c5d962f01e7",
253253
"page": 1,
254254
"offset": 100,
255-
"sort": "asc"
255+
"sort": "asc",
256+
"startblock": 0,
257+
"endblock": 999999999
256258
}
257259
},
258260
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {

etherscan/configs/MAIN-stable.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
"contract_address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
253253
"page": 1,
254254
"offset": 100,
255-
"sort": "asc"
255+
"sort": "asc",
256+
"startblock": 0,
257+
"endblock": 999999999
256258
}
257259
},
258260
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {

etherscan/configs/RINKEBY-stable.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
"contract_address": "0xdf82c9014f127243ce1305dfe54151647d74b27a",
253253
"page": 1,
254254
"offset": 100,
255-
"sort": "asc"
255+
"sort": "asc",
256+
"startblock": 0,
257+
"endblock": 999999999
256258
}
257259
},
258260
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {

etherscan/configs/ROPSTEN-stable.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
"contract_address": "0x8707a5bf4c2842d46b31a405ba41b858c0f876c4",
253253
"page": 1,
254254
"offset": 100,
255-
"sort": "asc"
255+
"sort": "asc",
256+
"startblock": 0,
257+
"endblock": 999999999
256258
}
257259
},
258260
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {

etherscan/modules/accounts.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def get_erc20_token_transfer_events_by_address(
191191

192192
@staticmethod
193193
def get_erc20_token_transfer_events_by_contract_address_paginated(
194-
contract_address: str, page: int, offset: int, sort: str
194+
contract_address: str, page: int, offset: int, sort: str,
195+
startblock: int, endblock: int,
195196
) -> str:
196197

197198
url = (
@@ -207,6 +208,10 @@ def get_erc20_token_transfer_events_by_contract_address_paginated(
207208
f"{str(page)}"
208209
f"{fields.OFFSET}"
209210
f"{str(offset)}"
211+
f"{fields.START_BLOCK}"
212+
f"{str(startblock)}"
213+
f"{fields.END_BLOCK}"
214+
f"{str(endblock)}"
210215
)
211216
return url
212217

0 commit comments

Comments
 (0)