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

Commitbe0fd8a

Browse files
author
Kotsias, Panagiotis-Christos
committed
Added example tokens
1 parentb8f5b65 commitbe0fd8a

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

‎bot/__init__.py‎

Whitespace-only changes.

‎coingecko/__init__.py‎

Whitespace-only changes.

‎etherscan/client.py‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
importrequestsasreq
2+
3+
4+
classClient:
5+
def__init__(self,api_key:str):
6+
self.api_key=api_key
7+
8+
# accounts
9+
defget_eth_balance(self,wallet:str):
10+
pass
11+
12+
defget_eth_balance_multiple(self):
13+
pass
14+
15+
defget_hist_eth_balance(self):
16+
# throttled to 2 calls/sec
17+
pass
18+
19+
defget_normal_txs_by_address(self):
20+
pass
21+
22+
defget_internal_txs_by_address(self):
23+
pass
24+
25+
defget_internal_txs_by_txhash(self):
26+
pass
27+
28+
defget_internal_txs_by_block_range(self):
29+
pass
30+
31+
defget_erc20_transfer_events_by_address(self):
32+
pass
33+
34+
defget_erc721_transfer_events_by_address(self):
35+
pass
36+
37+
defget_mined_blocks_by_address(self):
38+
pass
39+

‎etherscan/enums/tokens_enum.py‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fromdataclassesimportdataclass
2+
3+
4+
@dataclass(frozen=True)
5+
classTokensEnum:
6+
DEFAULT:str=""
7+
WETH:str="0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
8+
LINK:str="0x514910771af9ca656af840dff83e8264ecf986ca"
9+
OCEAN:str="0x7AFeBBB46fDb47ed17b22ed075Cde2447694fB9e"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp