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

Skip to content

Commit be0fd8a

Browse files
author
Kotsias, Panagiotis-Christos
committed
Added example tokens
1 parent b8f5b65 commit be0fd8a

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+
import requests as req
2+
3+
4+
class Client:
5+
def __init__(self, api_key: str):
6+
self.api_key = api_key
7+
8+
# accounts
9+
def get_eth_balance(self, wallet: str):
10+
pass
11+
12+
def get_eth_balance_multiple(self):
13+
pass
14+
15+
def get_hist_eth_balance(self):
16+
# throttled to 2 calls/sec
17+
pass
18+
19+
def get_normal_txs_by_address(self):
20+
pass
21+
22+
def get_internal_txs_by_address(self):
23+
pass
24+
25+
def get_internal_txs_by_txhash(self):
26+
pass
27+
28+
def get_internal_txs_by_block_range(self):
29+
pass
30+
31+
def get_erc20_transfer_events_by_address(self):
32+
pass
33+
34+
def get_erc721_transfer_events_by_address(self):
35+
pass
36+
37+
def get_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+
from dataclasses import dataclass
2+
3+
4+
@dataclass(frozen=True)
5+
class TokensEnum:
6+
DEFAULT: str = ""
7+
WETH: str = "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
8+
LINK: str = "0x514910771af9ca656af840dff83e8264ecf986ca"
9+
OCEAN: str = "0x7AFeBBB46fDb47ed17b22ed075Cde2447694fB9e"

0 commit comments

Comments
 (0)