Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit97f22f0

Browse files
committed
Add get_erc20_token_transfer_events_by_contract_address_block_based.
1 parente059d7c commit97f22f0

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

‎etherscan/configs/GOERLI-stable.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@
246246
"sort":"asc"
247247
}
248248
},
249+
"get_erc20_token_transfer_events_by_contract_address_block_based": {
250+
"module":"accounts",
251+
"kwargs": {
252+
"contract_address":"0x2ac3c1d3e24b45c6c310534bc2dd84b5ed576335",
253+
"startblock":0,
254+
"endblock":999999999,
255+
"sort":"asc"
256+
}
257+
},
249258
"get_erc20_token_transfer_events_by_contract_address_paginated": {
250259
"module":"accounts",
251260
"kwargs": {

‎etherscan/configs/MAIN-stable.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,15 @@
255255
"sort":"asc"
256256
}
257257
},
258+
"get_erc20_token_transfer_events_by_contract_address_block_based": {
259+
"module":"accounts",
260+
"kwargs": {
261+
"contract_address":"0x8707a5bf4c2842d46b31a405ba41b858c0f876c4",
262+
"startblock":0,
263+
"endblock":999999999,
264+
"sort":"asc"
265+
}
266+
},
258267
"get_erc20_token_transfer_events_by_address_and_contract_paginated": {
259268
"module":"accounts",
260269
"kwargs": {

‎etherscan/modules/accounts.py‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,28 @@ def get_erc20_token_transfer_events_by_address(
189189
)
190190
returnurl
191191

192+
@staticmethod
193+
defget_erc20_token_transfer_events_by_contract_address_block_based(
194+
contract_address:str,startblock:int,endblock:int,sort:str
195+
)->str:
196+
197+
url= (
198+
f"{fields.MODULE}"
199+
f"{modules.ACCOUNT}"
200+
f"{fields.ACTION}"
201+
f"{actions.TOKENTX}"
202+
f"{fields.CONTRACT_ADDRESS}"
203+
f"{contract_address}"
204+
f"{fields.START_BLOCK}"
205+
f"{str(startblock)}"
206+
f"{fields.END_BLOCK}"
207+
f"{str(endblock)}"
208+
f"{fields.SORT}"
209+
f"{sort}"
210+
)
211+
212+
returnurl
213+
192214
@staticmethod
193215
defget_erc20_token_transfer_events_by_contract_address_paginated(
194216
contract_address:str,page:int,offset:int,sort:str

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp