Skip to content

Commit dcc3fb7

Browse files
authored
Update fields_enum.py
Replaced with Polygonscan field_enum
1 parent fc75077 commit dcc3fb7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

etherscan/enums/fields_enum.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ class FieldsEnum:
88
API_KEY: str = "&apikey="
99
BLOCK_TYPE: str = "&blocktype="
1010
BLOCKNO: str = "&blockno="
11+
BLOCKS: str = "blocks" #
1112
BOOLEAN: str = "&boolean="
1213
CLIENT_TYPE: str = "&clienttype="
1314
CLOSEST: str = "&closest="
1415
CONTRACT_ADDRESS: str = "&contractaddress="
1516
DATA: str = "&data="
1617
END_BLOCK: str = "&endblock="
1718
END_DATE: str = "&enddate="
19+
FROM_BLOCK: str = "&fromBlock="
20+
FROM: str = "&from="
1821
GAS_PRICE: str = "&gasPrice="
1922
GAS: str = "&gas="
2023
HEX: str = "&hex="
@@ -23,13 +26,24 @@ class FieldsEnum:
2326
OFFSET: str = "&offset="
2427
PAGE: str = "&page="
2528
POSITION: str = "&position="
26-
PREFIX: str = "https://api-{}.etherscan.io/api?"
29+
PREFIX: str = "https://api.polygonscan.com/api?"
2730
SORT: str = "&sort="
2831
START_BLOCK: str = "&startblock="
2932
START_DATE: str = "&startdate="
3033
SYNC_MODE: str = "&syncmode="
3134
TAG: str = "&tag="
3235
TIMESTAMP: str = "&timestamp="
36+
TO_BLOCK: str = "&toBlock="
3337
TO: str = "&to="
38+
TOPIC_0_1_OPR: str = "&topic0_1_opr="
39+
TOPIC_0_2_OPR: str = "&topic0_2_opr="
40+
TOPIC_0_3_OPR: str = "&topic0_3_opr="
41+
TOPIC_0: str = "&topic0="
42+
TOPIC_1_2_OPR: str = "&topic1_2_opr="
43+
TOPIC_1_3_OPR: str = "&topic1_3_opr="
44+
TOPIC_1: str = "&topic1="
45+
TOPIC_2_3_OPR: str = "&topic2_3_opr="
46+
TOPIC_2: str = "&topic2="
47+
TOPIC_3: str = "&topic3="
3448
TXHASH: str = "&txhash="
3549
VALUE: str = "&value="

0 commit comments

Comments
 (0)