├── .github
├── FUNDING.yml
└── workflows
│ ├── build.yml
│ └── python-publish.yml
├── .gitignore
├── LICENSE
├── MANIFEST.in
├── README.md
├── logs
└── standard
│ ├── get_acc_balance_by_token_and_contract_address.json
│ ├── get_block_number_by_timestamp.json
│ ├── get_block_reward_by_block_number.json
│ ├── get_contract_abi.json
│ ├── get_contract_execution_status.json
│ ├── get_contract_source_code.json
│ ├── get_daily_average_block_size.json
│ ├── get_daily_average_block_time.json
│ ├── get_daily_average_gas_limit.json
│ ├── get_daily_average_network_difficulty.json
│ ├── get_daily_average_network_hash_rate.json
│ ├── get_daily_avg_network_difficulty.json
│ ├── get_daily_avg_network_hash_rate.json
│ ├── get_daily_block_count_and_rewards.json
│ ├── get_daily_block_rewards.json
│ ├── get_daily_network_utilization.json
│ ├── get_daily_new_address_count.json
│ ├── get_daily_tx_count.json
│ ├── get_daily_uncle_block_count_and_rewards.json
│ ├── get_erc20_token_transfer_events_by_address.json
│ ├── get_erc20_token_transfer_events_by_address_and_contract_paginated.json
│ ├── get_erc20_token_transfer_events_by_contract_address_paginated.json
│ ├── get_erc721_token_transfer_events_by_address.json
│ ├── get_erc721_token_transfer_events_by_address_and_contract_paginated.json
│ ├── get_erc721_token_transfer_events_by_contract_address_paginated.json
│ ├── get_est_block_countdown_time_by_block_number.json
│ ├── get_est_confirmation_time.json
│ ├── get_gas_oracle.json
│ ├── get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no.json
│ ├── get_hist_erc20_token_total_supply_by_contract_address_and_block_no.json
│ ├── get_hist_eth_balance_for_address_by_block_no.json
│ ├── get_internal_txs_by_address.json
│ ├── get_internal_txs_by_address_paginated.json
│ ├── get_internal_txs_by_block_range_paginated.json
│ ├── get_internal_txs_by_txhash.json
│ ├── get_matic_balance.json
│ ├── get_matic_balance_multiple.json
│ ├── get_matic_daily_average_gas_price.json
│ ├── get_matic_daily_avg_gas_price.json
│ ├── get_matic_daily_network_tx_fee.json
│ ├── get_matic_daily_total_gas_used.json
│ ├── get_matic_hist_daily_market_cap.json
│ ├── get_matic_hist_price.json
│ ├── get_matic_last_price.json
│ ├── get_matic_nodes_size.json
│ ├── get_mined_blocks_by_address.json
│ ├── get_mined_blocks_by_address_paginated.json
│ ├── get_normal_txs_by_address.json
│ ├── get_normal_txs_by_address_paginated.json
│ ├── get_proxy_block_by_number.json
│ ├── get_proxy_block_number.json
│ ├── get_proxy_block_transaction_count_by_number.json
│ ├── get_proxy_call.json
│ ├── get_proxy_code_at.json
│ ├── get_proxy_est_gas.json
│ ├── get_proxy_gas_price.json
│ ├── get_proxy_storage_position_at.json
│ ├── get_proxy_transaction_by_block_number_and_index.json
│ ├── get_proxy_transaction_by_hash.json
│ ├── get_proxy_transaction_count.json
│ ├── get_proxy_transaction_receipt.json
│ ├── get_proxy_uncle_by_block_number_and_index.json
│ ├── get_token_info_by_contract_address.json
│ ├── get_total_eth_supply.json
│ ├── get_total_matic_supply.json
│ ├── get_total_supply_by_contract_address.json
│ └── get_tx_receipt_status.json
├── polygonscan
├── __init__.py
├── configs
│ ├── __init__.py
│ └── stable.json
├── core
│ ├── __init__.py
│ ├── async_client.py
│ ├── base.py
│ └── sync_client.py
├── enums
│ ├── __init__.py
│ ├── actions_enum.py
│ ├── fields_enum.py
│ ├── modules_enum.py
│ └── tags_enum.py
├── modules
│ ├── __init__.py
│ ├── accounts.py
│ ├── blocks.py
│ ├── contracts.py
│ ├── logs.py
│ ├── proxy.py
│ ├── stats.py
│ ├── tokens.py
│ └── transactions.py
├── polygonscan.py
└── utils
│ ├── __init__.py
│ ├── conversions.py
│ └── parsing.py
├── run_tests.sh
├── setup.py
└── test
├── __init__.py
├── test_polygon_async.py
├── test_polygon_from_session.py
└── test_polygon_sync.py
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: [tarsil]
2 |
--------------------------------------------------------------------------------
/.github/workflows/build.yml:
--------------------------------------------------------------------------------
1 | name: build
2 |
3 | on: [push]
4 |
5 | jobs:
6 | build:
7 |
8 | runs-on: ubuntu-latest
9 | strategy:
10 | matrix:
11 | python-version: [3.8]
12 | steps:
13 | - uses: actions/checkout@v2
14 | - name: Set up Python ${{ matrix.python-version }}
15 | uses: actions/setup-python@v2
16 | with:
17 | python-version: ${{ matrix.python-version }}
18 | - name: Install dependencies
19 | run: |
20 | python -m pip install --upgrade pip
21 | pip install git+https://github.com/tarsil/polygonscan-python.git coverage flake8
22 | - name: Lint with flake8
23 | run: |
24 | # stop the build if there are Python syntax errors or undefined names
25 | flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
26 | # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
27 | flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
28 | # - name: Test with unittest
29 | # run: |
30 | # # bash run_tests.sh ${{ secrets.ETHERSCAN_API_KEY }}
31 | # # bash <(curl -s https://codecov.io/bash)
--------------------------------------------------------------------------------
/.github/workflows/python-publish.yml:
--------------------------------------------------------------------------------
1 | # This workflows will upload a Python Package using Twine when a release is created
2 | # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3 |
4 | name: Upload Python Package
5 |
6 | on:
7 | release:
8 | types: [published]
9 |
10 | jobs:
11 | deploy:
12 |
13 | runs-on: ubuntu-latest
14 |
15 | steps:
16 | - uses: actions/checkout@v2
17 | - name: Set up Python
18 | uses: actions/setup-python@v2
19 | with:
20 | python-version: '3.8'
21 | - name: Install dependencies
22 | run: |
23 | python -m pip install --upgrade pip
24 | pip install setuptools wheel twine
25 | - name: Build and publish
26 | env:
27 | TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28 | TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
29 | run: |
30 | python setup.py sdist bdist_wheel
31 | twine upload dist/*
32 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # notebooks
2 | *.ipynb
3 |
4 | # pyc files
5 | *pyc*
6 |
7 | # coverage
8 | *coverage*
9 |
10 | # VSCode
11 | .vscode/*
12 |
13 | # Sphinx
14 | docs
15 |
16 | # eggs
17 | *egg*
18 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2021 Tiago Silva
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining
4 | a copy of this software and associated documentation files (the
5 | "Software"), to deal in the Software without restriction, including
6 | without limitation the rights to use, copy, modify, merge, publish,
7 | distribute, sublicense, and/or sell copies of the Software, and to
8 | permit persons to whom the Software is furnished to do so, subject to
9 | the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be
12 | included in all copies or substantial portions of the Software.
13 |
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include polygonscan/configs/stable.json
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # polygonscan-python
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | A complete Python API for PolygonScan.com
21 |
22 |
23 |
24 | Powered by PolygonScan.com APIs
25 |
26 |
27 |
28 | Available on PyPI
29 |
30 |
31 |
32 |
33 | A fork of the bscscan-python package.
34 |
35 |
36 | A minimal, yet complete, Python API for [polygonscan.com](https://polygonscan.com/).
37 |
38 | This package was based on [bscscan-python](https://github.com/pcko1/bscscan-python) and
39 | applied to the polygon network. A special thanks to the [creator](https://github.com/pcko1).
40 |
41 | Available on [PyPI](https://pypi.org/project/polygonscan-python/). Powered by [polygonscan.com APIs](https://polygonscan.com/apis#misc).
42 |
43 | ___
44 |
45 | ## Endpoints
46 |
47 | The following endpoints are provided:
48 |
49 | Accounts (source)
50 |
51 |
52 | * `get_matic_balance`
53 | * `get_matic_balance_multiple`
54 | * `get_normal_txs_by_address`
55 | * `get_normal_txs_by_address_paginated`
56 | * `get_internal_txs_by_address`
57 | * `get_internal_txs_by_address_paginated`
58 | * `get_internal_txs_by_txhash`
59 | * `get_internal_txs_by_block_range_paginated`
60 | * `get_erc20_token_transfer_events_by_address`
61 | * `get_erc20_token_transfer_events_by_contract_address_paginated`
62 | * `get_erc20_token_transfer_events_by_address_and_contract_paginated`
63 | * `get_erc721_token_transfer_events_by_address`
64 | * `get_erc721_token_transfer_events_by_contract_address_paginated`
65 | * `get_erc721_token_transfer_events_by_address_and_contract_paginated`
66 | * `get_mined_blocks_by_address`
67 | * `get_mined_blocks_by_address_paginated`
68 |
69 |
70 |
71 | Contracts (source)
72 |
73 |
74 | * `get_contract_abi`
75 | * `get_contract_source_code`
76 |
77 |
78 |
79 |
80 |
81 | Transactions (source)
82 |
83 |
84 | * `get_contract_execution_status`
85 | * `get_tx_receipt_status`
86 |
87 |
88 |
89 | Blocks (source)
90 |
91 |
92 | * `get_block_reward_by_block_number`
93 | * `get_est_block_countdown_time_by_block_number`
94 | * `get_block_number_by_timestamp`
95 |
96 |
97 |
98 | GETH/Parity Proxy (source)
99 |
100 |
101 | * `get_proxy_block_number`
102 | * `get_proxy_block_by_number`
103 | * `get_proxy_uncle_by_block_number_and_index`
104 | * `get_proxy_block_transaction_count_by_number`
105 | * `get_proxy_transaction_by_hash`
106 | * `get_proxy_transaction_by_block_number_and_index`
107 | * `get_proxy_transaction_count`
108 | * `get_proxy_transaction_receipt`
109 | * `get_proxy_call`
110 | * `get_proxy_code_at`
111 | * `get_proxy_storage_position_at`
112 | * `get_proxy_gas_price`
113 | * `get_proxy_est_gas`
114 |
115 |
116 |
117 | Tokens (source)
118 |
119 |
120 | * `get_total_supply_by_contract_address`
121 | * `get_acc_balance_by_token_and_contract_address`
122 |
123 |
124 |
125 | Gas Tracker (source)
126 |
127 |
128 | * `get_est_confirmation_time`
129 | * `get_gas_oracle`
130 |
131 |
132 |
133 | Stats (source)
134 |
135 |
136 | * `get_total_matic_supply`
137 | * `get_matic_last_price`
138 |
139 |
140 |
141 | *If you think that a newly-added method is missing, kindly open an [issue](https://github.com/tarsil/polygonscan-python/issues) as a feature request and I will do my best to add it.*
142 |
143 | ## Installation
144 |
145 | Before proceeding, you should register an account on [polygonscan.com](https://polygonscan.com/)
146 | and [generate a personal API key](https://polygonscan.com/myapikey) to use.
147 |
148 | If you wish to have access to the PRO endpoints, you should obtain elevated privileges via PolygonScans's
149 | subscription service.
150 |
151 | Install from source:
152 |
153 | ``` bash
154 | pip install git+https://github.com/tarsil/polygonscan-python
155 | ```
156 |
157 | Alternatively, install from [PyPI](https://pypi.org/project/polygonscan-python/):
158 |
159 | ```bash
160 | pip install polygonscan-python
161 | ```
162 |
163 | ## Unit tests
164 |
165 | In `bash`, test that everything looks OK on your end using your `YOUR_API_KEY` (without quotation marks)
166 | before proceeding:
167 |
168 | ``` bash
169 | bash run_tests.sh YOUR_API_KEY
170 | ````
171 |
172 | This will regenerate the logs under `logs/` with the most recent results and the timestamp of the execution.
173 |
174 | ## Usage
175 |
176 | In `python`, create a client with your personal [polygonscan.com](https://polygonscan.com/) API key:
177 |
178 | E.g:
179 | ``` python
180 | from polygonscan import PolygonScan
181 |
182 | with PolygonScan("API_KEY",False) as matic:
183 | print(matic.get_matic_balance(address="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a"))
184 | ```
185 |
186 | Then you can call all available methods, e.g.:
187 |
188 | ``` python
189 | matic.get_matic_balance(address="0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a")
190 |
191 | > '40891631566070000000000'
192 | ```
193 | You can also choose one of the other testnets:
194 | ``` python
195 | matic = PolygonScan(YOUR_API_KEY, net="ropsten") # net name is case-insensitive, default is main
196 | ```
197 |
198 | ## Examples
199 |
200 | Examples (arguments and results) for all methods may be found as JSON files
201 | [here](https://github.com/tarsil/polygonscan-python/tree/master/logs).
202 | For example, if you want to use the method `get_block_number_by_timestamp`,
203 | you can find the supported arguments and the format of its output in its respective
204 | [JSON file](logs/standard/get_block_number_by_timestamp.json):
205 |
206 | ``` json
207 | {
208 | "method": "get_block_number_by_timestamp",
209 | "module": "blocks",
210 | "kwargs": {
211 | "timestamp": "1578638524",
212 | "closest": "before"
213 | },
214 | "log_timestamp": "2020-10-28-12:34:44",
215 | "res": "9251482"
216 | }
217 | ```
218 |
219 | where `kwargs` refer to the required named arguments and `res` refers to the expected result if you were to run:
220 |
221 | ``` python
222 | eth.get_block_number_by_timestamp(timestamp="1578638524", closest="before")
223 |
224 | > '9251482'
225 | ```
226 |
227 | **Disclaimer**: Those examples blindly use the arguments originally showcased
228 | [here](https://api.polygonscan.com/apis) and the selected wallets/contracts
229 | do not reflect any personal preference. You should refer to the same source for additional
230 | information regarding specific argument values.
231 |
232 | ## Issues
233 |
234 | For problems regarding installing or using the package please open an
235 | [issue](https://github.com/tarsil/polygonscan-python/issues).
236 | Kindly avoid disclosing potentially sensitive information such as your API keys or your wallet addresses.
237 |
238 | Feel free to leave a :star: if you found this package useful.
239 |
240 | ___
241 |
242 | Powered by [polygonscan.com APIs](https://polygonscan.com/apis).
243 |
--------------------------------------------------------------------------------
/logs/standard/get_acc_balance_by_token_and_contract_address.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_acc_balance_by_token_and_contract_address",
3 | "module": "tokens",
4 | "kwargs": {
5 | "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055",
6 | "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761"
7 | },
8 | "log_timestamp": "2021-09-20-02:15:31",
9 | "res": "0"
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_block_number_by_timestamp.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_block_number_by_timestamp",
3 | "module": "blocks",
4 | "kwargs": {
5 | "timestamp": "1578638524",
6 | "closest": "before"
7 | },
8 | "log_timestamp": "2021-09-20-02:15:19",
9 | "res": "Error! No closest block found"
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_block_reward_by_block_number.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_block_reward_by_block_number",
3 | "module": "blocks",
4 | "kwargs": {
5 | "block_no": "2165403"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:18",
8 | "res": {
9 | "blockNumber": "2165403",
10 | "timeStamp": "1595322344",
11 | "blockMiner": "0x0375b2fc7140977c9c76d45421564e354ed42277",
12 | "blockReward": "0",
13 | "uncles": [],
14 | "uncleInclusionReward": "0"
15 | }
16 | }
--------------------------------------------------------------------------------
/logs/standard/get_contract_abi.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_contract_abi",
3 | "module": "contracts",
4 | "kwargs": {
5 | "address": "0x614389eaae0a6821dc49062d56bda3d9d45fa2ff"
6 | },
7 | "log_timestamp": "2020-10-28-12:34:45",
8 | "res": "[{\"inputs\": [{\"internalType\": \"address\", \"name\": \"_proxyTo\", \"type\": \"address\"}], \"stateMutability\": \"nonpayable\", \"type\": \"constructor\"}, {\"anonymous\": false, \"inputs\": [{\"indexed\": false, \"internalType\": \"address\", \"name\": \"_new\", \"type\": \"address\"}, {\"indexed\": false, \"internalType\": \"address\", \"name\": \"_old\", \"type\": \"address\"}], \"name\": \"ProxyOwnerUpdate\", \"type\": \"event\"}, {\"anonymous\": false, \"inputs\": [{\"indexed\": true, \"internalType\": \"address\", \"name\": \"_new\", \"type\": \"address\"}, {\"indexed\": true, \"internalType\": \"address\", \"name\": \"_old\", \"type\": \"address\"}], \"name\": \"ProxyUpdated\", \"type\": \"event\"}, {\"stateMutability\": \"payable\", \"type\": \"fallback\"}, {\"inputs\": [], \"name\": \"implementation\", \"outputs\": [{\"internalType\": \"address\", \"name\": \"\", \"type\": \"address\"}], \"stateMutability\": \"view\", \"type\": \"function\"}, {\"inputs\": [], \"name\": \"proxyOwner\", \"outputs\": [{\"internalType\": \"address\", \"name\": \"\", \"type\": \"address\"}], \"stateMutability\": \"view\", \"type\": \"function\"}, {\"inputs\": [], \"name\": \"proxyType\", \"outputs\": [{\"internalType\": \"uint256\", \"name\": \"proxyTypeId\", \"type\": \"uint256\"}], \"stateMutability\": \"pure\", \"type\": \"function\"}, {\"inputs\": [{\"internalType\": \"address\", \"name\": \"newOwner\", \"type\": \"address\"}], \"name\": \"transferProxyOwnership\", \"outputs\": [], \"stateMutability\": \"nonpayable\", \"type\": \"function\"}, {\"inputs\": [{\"internalType\": \"address\", \"name\": \"_newProxyTo\", \"type\": \"address\"}, {\"internalType\": \"bytes\", \"name\": \"data\", \"type\": \"bytes\"}], \"name\": \"updateAndCall\", \"outputs\": [], \"stateMutability\": \"payable\", \"type\": \"function\"}, {\"inputs\": [{\"internalType\": \"address\", \"name\": \"_newProxyTo\", \"type\": \"address\"}], \"name\": \"updateImplementation\", \"outputs\": [], \"stateMutability\": \"nonpayable\", \"type\": \"function\"}, {\"stateMutability\": \"payable\", \"type\": \"receive\"}]"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_contract_execution_status.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_contract_execution_status",
3 | "module": "transactions",
4 | "kwargs": {
5 | "txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:32",
8 | "res": {
9 | "isError": "0",
10 | "errDescription": ""
11 | }
12 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_average_block_size.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_average_block_size",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:48",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "blockSize_bytes": 20373
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "blockSize_bytes": 17499
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "blockSize_bytes": 16597
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "blockSize_bytes": 16326
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "blockSize_bytes": 16601
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "blockSize_bytes": 17023
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "blockSize_bytes": 17432
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "blockSize_bytes": 18982
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "blockSize_bytes": 17138
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "blockSize_bytes": 18598
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "blockSize_bytes": 20700
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "blockSize_bytes": 20824
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "blockSize_bytes": 23368
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "blockSize_bytes": 23305
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "blockSize_bytes": 22751
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "blockSize_bytes": 21513
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "blockSize_bytes": 22199
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "blockSize_bytes": 24106
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "blockSize_bytes": 24581
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "blockSize_bytes": 24759
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "blockSize_bytes": 25217
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "blockSize_bytes": 24969
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "blockSize_bytes": 21843
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "blockSize_bytes": 24399
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "blockSize_bytes": 26690
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "blockSize_bytes": 26269
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "blockSize_bytes": 25340
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "blockSize_bytes": 25117
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_average_block_time.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_average_block_time",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:50",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "blockTime_sec": "17.67"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "blockTime_sec": "17.41"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "blockTime_sec": "17.68"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "blockTime_sec": "17.39"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "blockTime_sec": "17.54"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "blockTime_sec": "17.55"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "blockTime_sec": "17.44"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "blockTime_sec": "17.43"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "blockTime_sec": "17.49"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "blockTime_sec": "20.00"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "blockTime_sec": "20.48"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "blockTime_sec": "20.12"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "blockTime_sec": "20.48"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "blockTime_sec": "20.62"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "blockTime_sec": "20.68"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "blockTime_sec": "20.39"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "blockTime_sec": "20.76"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "blockTime_sec": "20.47"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "blockTime_sec": "19.99"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "blockTime_sec": "20.15"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "blockTime_sec": "20.22"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "blockTime_sec": "20.28"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "blockTime_sec": "19.76"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "blockTime_sec": "20.12"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "blockTime_sec": "20.20"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "blockTime_sec": "20.09"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "blockTime_sec": "20.04"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "blockTime_sec": "19.61"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_average_gas_limit.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_average_gas_limit",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:54",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "gasLimit": "8001360"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "gasLimit": "8001269"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "gasLimit": "8001164"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "gasLimit": "8001218"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "gasLimit": "8001176"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "gasLimit": "8001322"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "gasLimit": "8001263"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "gasLimit": "8001377"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "gasLimit": "8001139"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "gasLimit": "8001145"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "gasLimit": "8001168"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "gasLimit": "8001034"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "gasLimit": "8001092"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "gasLimit": "8001481"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "gasLimit": "8001147"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "gasLimit": "8001206"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "gasLimit": "8001298"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "gasLimit": "8001130"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "gasLimit": "8001406"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "gasLimit": "8001347"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "gasLimit": "8001243"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "gasLimit": "8001252"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "gasLimit": "8001223"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "gasLimit": "8001394"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "gasLimit": "8001148"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "gasLimit": "8001364"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "gasLimit": "8001071"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "gasLimit": "8001137"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_average_network_difficulty.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_average_network_difficulty",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:59",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "networkDifficulty": "2,408.028"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "networkDifficulty": "2,358.910"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "networkDifficulty": "2,354.610"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "networkDifficulty": "2,361.903"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "networkDifficulty": "2,363.999"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "networkDifficulty": "2,348.840"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "networkDifficulty": "2,334.071"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "networkDifficulty": "2,371.717"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "networkDifficulty": "2,370.090"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "networkDifficulty": "2,799.616"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "networkDifficulty": "2,790.454"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "networkDifficulty": "2,845.497"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "networkDifficulty": "2,813.683"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "networkDifficulty": "2,763.886"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "networkDifficulty": "2,758.556"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "networkDifficulty": "2,791.493"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "networkDifficulty": "2,787.184"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "networkDifficulty": "2,800.544"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "networkDifficulty": "2,931.316"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "networkDifficulty": "2,934.330"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "networkDifficulty": "2,935.973"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "networkDifficulty": "2,909.985"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "networkDifficulty": "3,019.639"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "networkDifficulty": "3,010.990"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "networkDifficulty": "2,966.100"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "networkDifficulty": "2,978.234"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "networkDifficulty": "2,974.809"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "networkDifficulty": "2,927.453"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_average_network_hash_rate.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_average_network_hash_rate",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:57",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "networkHashRate": "143116.0140"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "networkHashRate": "143036.2313"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "networkHashRate": "139150.9121"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "networkHashRate": "141058.0782"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "networkHashRate": "141593.6815"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "networkHashRate": "139435.1741"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "networkHashRate": "139449.9210"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "networkHashRate": "142467.7242"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "networkHashRate": "141162.9802"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "networkHashRate": "145132.8832"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "networkHashRate": "142235.6399"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "networkHashRate": "147544.2715"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "networkHashRate": "142540.4061"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "networkHashRate": "140337.5751"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "networkHashRate": "139939.2522"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "networkHashRate": "144000.9622"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "networkHashRate": "140520.5263"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "networkHashRate": "144791.9973"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "networkHashRate": "154063.7497"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "networkHashRate": "152931.5965"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "networkHashRate": "152031.7369"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "networkHashRate": "150079.7621"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "networkHashRate": "159998.9286"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "networkHashRate": "156160.2762"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "networkHashRate": "154106.7468"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "networkHashRate": "156426.1998"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "networkHashRate": "156143.0510"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "networkHashRate": "157689.3983"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_avg_network_difficulty.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_avg_network_difficulty",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:01:46",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "networkDifficulty": "2,408.028"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "networkDifficulty": "2,358.910"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "networkDifficulty": "2,354.610"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "networkDifficulty": "2,361.903"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "networkDifficulty": "2,363.999"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "networkDifficulty": "2,348.840"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "networkDifficulty": "2,334.071"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "networkDifficulty": "2,371.717"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "networkDifficulty": "2,370.090"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "networkDifficulty": "2,799.616"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "networkDifficulty": "2,790.454"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "networkDifficulty": "2,845.497"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "networkDifficulty": "2,813.683"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "networkDifficulty": "2,763.886"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "networkDifficulty": "2,758.556"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "networkDifficulty": "2,791.493"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "networkDifficulty": "2,787.184"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "networkDifficulty": "2,800.544"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "networkDifficulty": "2,931.316"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "networkDifficulty": "2,934.330"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "networkDifficulty": "2,935.973"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "networkDifficulty": "2,909.985"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "networkDifficulty": "3,019.639"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "networkDifficulty": "3,010.990"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "networkDifficulty": "2,966.100"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "networkDifficulty": "2,978.234"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "networkDifficulty": "2,974.809"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "networkDifficulty": "2,927.453"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_avg_network_hash_rate.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_avg_network_hash_rate",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:01:44",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "networkHashRate": "143116.0140"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "networkHashRate": "143036.2313"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "networkHashRate": "139150.9121"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "networkHashRate": "141058.0782"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "networkHashRate": "141593.6815"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "networkHashRate": "139435.1741"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "networkHashRate": "139449.9210"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "networkHashRate": "142467.7242"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "networkHashRate": "141162.9802"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "networkHashRate": "145132.8832"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "networkHashRate": "142235.6399"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "networkHashRate": "147544.2715"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "networkHashRate": "142540.4061"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "networkHashRate": "140337.5751"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "networkHashRate": "139939.2522"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "networkHashRate": "144000.9622"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "networkHashRate": "140520.5263"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "networkHashRate": "144791.9973"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "networkHashRate": "154063.7497"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "networkHashRate": "152931.5965"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "networkHashRate": "152031.7369"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "networkHashRate": "150079.7621"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "networkHashRate": "159998.9286"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "networkHashRate": "156160.2762"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "networkHashRate": "154106.7468"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "networkHashRate": "156426.1998"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "networkHashRate": "156143.0510"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "networkHashRate": "157689.3983"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_block_count_and_rewards.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_block_count_and_rewards",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:49",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "blockCount": 4848,
15 | "blockRewards_Eth": "14929.464690870590355682"
16 | },
17 | {
18 | "UTCDate": "2019-02-02",
19 | "unixTimeStamp": "1549065600",
20 | "blockCount": 4935,
21 | "blockRewards_Eth": "15120.386084685869906669"
22 | },
23 | {
24 | "UTCDate": "2019-02-03",
25 | "unixTimeStamp": "1549152000",
26 | "blockCount": 4858,
27 | "blockRewards_Eth": "14850.966463007827151947"
28 | },
29 | {
30 | "UTCDate": "2019-02-04",
31 | "unixTimeStamp": "1549238400",
32 | "blockCount": 4938,
33 | "blockRewards_Eth": "15101.71491569706715742"
34 | },
35 | {
36 | "UTCDate": "2019-02-05",
37 | "unixTimeStamp": "1549324800",
38 | "blockCount": 4900,
39 | "blockRewards_Eth": "14995.603770562289946328"
40 | },
41 | {
42 | "UTCDate": "2019-02-06",
43 | "unixTimeStamp": "1549411200",
44 | "blockCount": 4892,
45 | "blockRewards_Eth": "14981.876961099938063379"
46 | },
47 | {
48 | "UTCDate": "2019-02-07",
49 | "unixTimeStamp": "1549497600",
50 | "blockCount": 4918,
51 | "blockRewards_Eth": "15079.681479808971009116"
52 | },
53 | {
54 | "UTCDate": "2019-02-08",
55 | "unixTimeStamp": "1549584000",
56 | "blockCount": 4923,
57 | "blockRewards_Eth": "15121.508334042987710456"
58 | },
59 | {
60 | "UTCDate": "2019-02-09",
61 | "unixTimeStamp": "1549670400",
62 | "blockCount": 4900,
63 | "blockRewards_Eth": "15015.355879769382648583"
64 | },
65 | {
66 | "UTCDate": "2019-02-10",
67 | "unixTimeStamp": "1549756800",
68 | "blockCount": 4298,
69 | "blockRewards_Eth": "13185.062651616766678939"
70 | },
71 | {
72 | "UTCDate": "2019-02-11",
73 | "unixTimeStamp": "1549843200",
74 | "blockCount": 4195,
75 | "blockRewards_Eth": "12925.813961172266267345"
76 | },
77 | {
78 | "UTCDate": "2019-02-12",
79 | "unixTimeStamp": "1549929600",
80 | "blockCount": 4273,
81 | "blockRewards_Eth": "13155.096706317758054112"
82 | },
83 | {
84 | "UTCDate": "2019-02-13",
85 | "unixTimeStamp": "1550016000",
86 | "blockCount": 4169,
87 | "blockRewards_Eth": "12883.030882013252836379"
88 | },
89 | {
90 | "UTCDate": "2019-02-14",
91 | "unixTimeStamp": "1550102400",
92 | "blockCount": 4166,
93 | "blockRewards_Eth": "12914.21209556988236845"
94 | },
95 | {
96 | "UTCDate": "2019-02-15",
97 | "unixTimeStamp": "1550188800",
98 | "blockCount": 4158,
99 | "blockRewards_Eth": "12903.436179404100591967"
100 | },
101 | {
102 | "UTCDate": "2019-02-16",
103 | "unixTimeStamp": "1550275200",
104 | "blockCount": 4224,
105 | "blockRewards_Eth": "13054.272298152031351776"
106 | },
107 | {
108 | "UTCDate": "2019-02-17",
109 | "unixTimeStamp": "1550361600",
110 | "blockCount": 4139,
111 | "blockRewards_Eth": "12795.799520384085746798"
112 | },
113 | {
114 | "UTCDate": "2019-02-18",
115 | "unixTimeStamp": "1550448000",
116 | "blockCount": 4196,
117 | "blockRewards_Eth": "13104.98809480394059885"
118 | },
119 | {
120 | "UTCDate": "2019-02-19",
121 | "unixTimeStamp": "1550534400",
122 | "blockCount": 4288,
123 | "blockRewards_Eth": "17363.037847090383139395"
124 | },
125 | {
126 | "UTCDate": "2019-02-20",
127 | "unixTimeStamp": "1550620800",
128 | "blockCount": 4242,
129 | "blockRewards_Eth": "13215.503050622835283572"
130 | },
131 | {
132 | "UTCDate": "2019-02-21",
133 | "unixTimeStamp": "1550707200",
134 | "blockCount": 4252,
135 | "blockRewards_Eth": "13226.737597909843539379"
136 | },
137 | {
138 | "UTCDate": "2019-02-22",
139 | "unixTimeStamp": "1550793600",
140 | "blockCount": 4238,
141 | "blockRewards_Eth": "13160.909735177110008375"
142 | },
143 | {
144 | "UTCDate": "2019-02-23",
145 | "unixTimeStamp": "1550880000",
146 | "blockCount": 4353,
147 | "blockRewards_Eth": "13465.574242211673279488"
148 | },
149 | {
150 | "UTCDate": "2019-02-24",
151 | "unixTimeStamp": "1550966400",
152 | "blockCount": 4254,
153 | "blockRewards_Eth": "13248.66443818023833454"
154 | },
155 | {
156 | "UTCDate": "2019-02-25",
157 | "unixTimeStamp": "1551052800",
158 | "blockCount": 4238,
159 | "blockRewards_Eth": "13261.160638293064313163"
160 | },
161 | {
162 | "UTCDate": "2019-02-26",
163 | "unixTimeStamp": "1551139200",
164 | "blockCount": 4281,
165 | "blockRewards_Eth": "13392.315348273230275303"
166 | },
167 | {
168 | "UTCDate": "2019-02-27",
169 | "unixTimeStamp": "1551225600",
170 | "blockCount": 4281,
171 | "blockRewards_Eth": "13344.374644158920547929"
172 | },
173 | {
174 | "UTCDate": "2019-02-28",
175 | "unixTimeStamp": "1551312000",
176 | "blockCount": 4366,
177 | "blockRewards_Eth": "12808.485512162356907132"
178 | }
179 | ]
180 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_block_rewards.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_block_rewards",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:50",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "blockRewards_Eth": "15300.65625"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "blockRewards_Eth": "15611.625"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "blockRewards_Eth": "15226.125"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "blockRewards_Eth": "15394.6875"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "blockRewards_Eth": "15418.78125"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "blockRewards_Eth": "15302.34375"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "blockRewards_Eth": "15398.625"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "blockRewards_Eth": "15471.28125"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "blockRewards_Eth": "15347.0625"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "blockRewards_Eth": "13370.34375"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "blockRewards_Eth": "13131.09375"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "blockRewards_Eth": "13363.78125"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "blockRewards_Eth": "13057.5"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "blockRewards_Eth": "13080.84375"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "blockRewards_Eth": "13063.96875"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "blockRewards_Eth": "13281.46875"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "blockRewards_Eth": "12989.34375"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "blockRewards_Eth": "13297.78125"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "blockRewards_Eth": "13532.71875"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "blockRewards_Eth": "13417.21875"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "blockRewards_Eth": "13339.6875"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "blockRewards_Eth": "13292.0625"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "blockRewards_Eth": "13651.96875"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "blockRewards_Eth": "13358.15625"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "blockRewards_Eth": "13371.65625"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "blockRewards_Eth": "13520.71875"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "blockRewards_Eth": "13511.4375"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "blockRewards_Eth": "12954.84375"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_network_utilization.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_network_utilization",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:57",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "networkUtilization": "0.8464"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "networkUtilization": "0.7687"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "networkUtilization": "0.7238"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "networkUtilization": "0.7144"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "networkUtilization": "0.7167"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "networkUtilization": "0.7343"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "networkUtilization": "0.7497"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "networkUtilization": "0.7712"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "networkUtilization": "0.7592"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "networkUtilization": "0.7792"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "networkUtilization": "0.8253"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "networkUtilization": "0.8368"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "networkUtilization": "0.8894"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "networkUtilization": "0.8742"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "networkUtilization": "0.9086"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "networkUtilization": "0.8894"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "networkUtilization": "0.9041"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "networkUtilization": "0.9300"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "networkUtilization": "0.9336"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "networkUtilization": "0.9350"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "networkUtilization": "0.9458"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "networkUtilization": "0.9431"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "networkUtilization": "0.9055"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "networkUtilization": "0.9230"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "networkUtilization": "0.9579"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "networkUtilization": "0.9595"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "networkUtilization": "0.9535"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "networkUtilization": "0.9472"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_new_address_count.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_new_address_count",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:56",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "newAddressCount": 54081
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "newAddressCount": 65152
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "newAddressCount": 59750
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "newAddressCount": 59206
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "newAddressCount": 65099
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "newAddressCount": 56852
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "newAddressCount": 49024
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "newAddressCount": 43436
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "newAddressCount": 40883
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "newAddressCount": 32554
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "newAddressCount": 37580
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "newAddressCount": 51249
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "newAddressCount": 46037
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "newAddressCount": 47073
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "newAddressCount": 45373
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "newAddressCount": 48590
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "newAddressCount": 46163
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "newAddressCount": 53108
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "newAddressCount": 51136
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "newAddressCount": 46931
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "newAddressCount": 44068
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "newAddressCount": 46354
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "newAddressCount": 45436
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "newAddressCount": 43509
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "newAddressCount": 49798
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "newAddressCount": 55728
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "newAddressCount": 55832
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "newAddressCount": 53117
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_tx_count.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_tx_count",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:58",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "transactionCount": 498856
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "transactionCount": 450314
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "transactionCount": 424378
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "transactionCount": 416394
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "transactionCount": 414815
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "transactionCount": 429065
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "transactionCount": 428676
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "transactionCount": 471952
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "transactionCount": 417129
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "transactionCount": 381151
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "transactionCount": 429007
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "transactionCount": 438111
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "transactionCount": 491354
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "transactionCount": 474782
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "transactionCount": 468599
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "transactionCount": 454309
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "transactionCount": 447945
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "transactionCount": 512455
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "transactionCount": 533602
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "transactionCount": 530268
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "transactionCount": 544817
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "transactionCount": 530839
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "transactionCount": 476225
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "transactionCount": 540201
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "transactionCount": 573756
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "transactionCount": 553925
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "transactionCount": 539516
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "transactionCount": 541458
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_daily_uncle_block_count_and_rewards.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_daily_uncle_block_count_and_rewards",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:51",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "uncleBlockCount": 287,
15 | "uncleBlockRewards_Eth": "729.75"
16 | },
17 | {
18 | "UTCDate": "2019-02-02",
19 | "unixTimeStamp": "1549065600",
20 | "uncleBlockCount": 304,
21 | "uncleBlockRewards_Eth": "778.125"
22 | },
23 | {
24 | "UTCDate": "2019-02-03",
25 | "unixTimeStamp": "1549152000",
26 | "uncleBlockCount": 248,
27 | "uncleBlockRewards_Eth": "628.875"
28 | },
29 | {
30 | "UTCDate": "2019-02-04",
31 | "unixTimeStamp": "1549238400",
32 | "uncleBlockCount": 222,
33 | "uncleBlockRewards_Eth": "559.875"
34 | },
35 | {
36 | "UTCDate": "2019-02-05",
37 | "unixTimeStamp": "1549324800",
38 | "uncleBlockCount": 275,
39 | "uncleBlockRewards_Eth": "693"
40 | },
41 | {
42 | "UTCDate": "2019-02-06",
43 | "unixTimeStamp": "1549411200",
44 | "uncleBlockCount": 237,
45 | "uncleBlockRewards_Eth": "604.125"
46 | },
47 | {
48 | "UTCDate": "2019-02-07",
49 | "unixTimeStamp": "1549497600",
50 | "uncleBlockCount": 244,
51 | "uncleBlockRewards_Eth": "621.75"
52 | },
53 | {
54 | "UTCDate": "2019-02-08",
55 | "unixTimeStamp": "1549584000",
56 | "uncleBlockCount": 267,
57 | "uncleBlockRewards_Eth": "677.25"
58 | },
59 | {
60 | "UTCDate": "2019-02-09",
61 | "unixTimeStamp": "1549670400",
62 | "uncleBlockCount": 246,
63 | "uncleBlockRewards_Eth": "624"
64 | },
65 | {
66 | "UTCDate": "2019-02-10",
67 | "unixTimeStamp": "1549756800",
68 | "uncleBlockCount": 181,
69 | "uncleBlockRewards_Eth": "459.375"
70 | },
71 | {
72 | "UTCDate": "2019-02-11",
73 | "unixTimeStamp": "1549843200",
74 | "uncleBlockCount": 209,
75 | "uncleBlockRewards_Eth": "526.5"
76 | },
77 | {
78 | "UTCDate": "2019-02-12",
79 | "unixTimeStamp": "1549929600",
80 | "uncleBlockCount": 207,
81 | "uncleBlockRewards_Eth": "525.375"
82 | },
83 | {
84 | "UTCDate": "2019-02-13",
85 | "unixTimeStamp": "1550016000",
86 | "uncleBlockCount": 208,
87 | "uncleBlockRewards_Eth": "531"
88 | },
89 | {
90 | "UTCDate": "2019-02-14",
91 | "unixTimeStamp": "1550102400",
92 | "uncleBlockCount": 221,
93 | "uncleBlockRewards_Eth": "562.125"
94 | },
95 | {
96 | "UTCDate": "2019-02-15",
97 | "unixTimeStamp": "1550188800",
98 | "uncleBlockCount": 225,
99 | "uncleBlockRewards_Eth": "568.875"
100 | },
101 | {
102 | "UTCDate": "2019-02-16",
103 | "unixTimeStamp": "1550275200",
104 | "uncleBlockCount": 233,
105 | "uncleBlockRewards_Eth": "587.625"
106 | },
107 | {
108 | "UTCDate": "2019-02-17",
109 | "unixTimeStamp": "1550361600",
110 | "uncleBlockCount": 217,
111 | "uncleBlockRewards_Eth": "552"
112 | },
113 | {
114 | "UTCDate": "2019-02-18",
115 | "unixTimeStamp": "1550448000",
116 | "uncleBlockCount": 271,
117 | "uncleBlockRewards_Eth": "684.375"
118 | },
119 | {
120 | "UTCDate": "2019-02-19",
121 | "unixTimeStamp": "1550534400",
122 | "uncleBlockCount": 253,
123 | "uncleBlockRewards_Eth": "645"
124 | },
125 | {
126 | "UTCDate": "2019-02-20",
127 | "unixTimeStamp": "1550620800",
128 | "uncleBlockCount": 261,
129 | "uncleBlockRewards_Eth": "666.75"
130 | },
131 | {
132 | "UTCDate": "2019-02-21",
133 | "unixTimeStamp": "1550707200",
134 | "uncleBlockCount": 222,
135 | "uncleBlockRewards_Eth": "562.875"
136 | },
137 | {
138 | "UTCDate": "2019-02-22",
139 | "unixTimeStamp": "1550793600",
140 | "uncleBlockCount": 218,
141 | "uncleBlockRewards_Eth": "557.625"
142 | },
143 | {
144 | "UTCDate": "2019-02-23",
145 | "unixTimeStamp": "1550880000",
146 | "uncleBlockCount": 225,
147 | "uncleBlockRewards_Eth": "571.875"
148 | },
149 | {
150 | "UTCDate": "2019-02-24",
151 | "unixTimeStamp": "1550966400",
152 | "uncleBlockCount": 227,
153 | "uncleBlockRewards_Eth": "574.875"
154 | },
155 | {
156 | "UTCDate": "2019-02-25",
157 | "unixTimeStamp": "1551052800",
158 | "uncleBlockCount": 251,
159 | "uncleBlockRewards_Eth": "634.125"
160 | },
161 | {
162 | "UTCDate": "2019-02-26",
163 | "unixTimeStamp": "1551139200",
164 | "uncleBlockCount": 257,
165 | "uncleBlockRewards_Eth": "653.625"
166 | },
167 | {
168 | "UTCDate": "2019-02-27",
169 | "unixTimeStamp": "1551225600",
170 | "uncleBlockCount": 254,
171 | "uncleBlockRewards_Eth": "644.625"
172 | },
173 | {
174 | "UTCDate": "2019-02-28",
175 | "unixTimeStamp": "1551312000",
176 | "uncleBlockCount": 288,
177 | "uncleBlockRewards_Eth": "691.5"
178 | }
179 | ]
180 | }
--------------------------------------------------------------------------------
/logs/standard/get_est_block_countdown_time_by_block_number.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_est_block_countdown_time_by_block_number",
3 | "module": "blocks",
4 | "kwargs": {
5 | "block_no": "99999999"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:19",
8 | "res": {
9 | "CurrentBlock": "19293438",
10 | "CountdownBlock": "99999999",
11 | "RemainingBlock": "80706561",
12 | "EstimateTimeInSec": "185625105.3"
13 | }
14 | }
--------------------------------------------------------------------------------
/logs/standard/get_est_confirmation_time.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_est_confirmation_time",
3 | "module": "gastracker",
4 | "kwargs": {
5 | "gas_price": "2000000000"
6 | },
7 | "log_timestamp": "2020-10-28-12:34:46",
8 | "res": "4699"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_gas_oracle.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_gas_oracle",
3 | "module": "gastracker",
4 | "kwargs": {},
5 | "log_timestamp": "2020-10-28-12:34:47",
6 | "res": {
7 | "LastBlock": "11145141",
8 | "SafeGasPrice": "62",
9 | "ProposeGasPrice": "82",
10 | "FastGasPrice": "89"
11 | }
12 | }
--------------------------------------------------------------------------------
/logs/standard/get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_hist_erc20_token_account_balance_for_token_contract_address_by_block_no",
3 | "module": "pro",
4 | "kwargs": {
5 | "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055",
6 | "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761",
7 | "block_no": "8000000"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:52",
10 | "res": "135499"
11 | }
--------------------------------------------------------------------------------
/logs/standard/get_hist_erc20_token_total_supply_by_contract_address_and_block_no.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_hist_erc20_token_total_supply_by_contract_address_and_block_no",
3 | "module": "pro",
4 | "kwargs": {
5 | "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055",
6 | "block_no": "8000000"
7 | },
8 | "log_timestamp": "2020-10-28-12:34:51",
9 | "res": "21265524714464"
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_hist_eth_balance_for_address_by_block_no.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_hist_eth_balance_for_address_by_block_no",
3 | "module": "pro",
4 | "kwargs": {
5 | "address": "0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae",
6 | "block_no": "8000000"
7 | },
8 | "log_timestamp": "2020-10-28-12:34:48",
9 | "res": "610538078574759898951277"
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_internal_txs_by_address_paginated.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_internal_txs_by_address_paginated",
3 | "module": "accounts",
4 | "kwargs": {
5 | "address": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
6 | "startblock": 0,
7 | "endblock": 2702578,
8 | "page": 1,
9 | "offset": 10,
10 | "sort": "asc"
11 | },
12 | "log_timestamp": "2020-10-28-12:34:32",
13 | "res": [
14 | {
15 | "blockNumber": "2535368",
16 | "timeStamp": "1477837690",
17 | "hash": "0x8a1a9989bda84f80143181a68bc137ecefa64d0d4ebde45dd94fc0cf49e70cb6",
18 | "from": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
19 | "to": "",
20 | "value": "0",
21 | "contractAddress": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
22 | "input": "",
23 | "type": "create",
24 | "gas": "254791",
25 | "gasUsed": "46750",
26 | "traceId": "0",
27 | "isError": "0",
28 | "errCode": ""
29 | },
30 | {
31 | "blockNumber": "2535479",
32 | "timeStamp": "1477839134",
33 | "hash": "0x1a50f1dc0bc912745f7d09b988669f71d199719e2fb7592c2074ede9578032d0",
34 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
35 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
36 | "value": "100000000000000000",
37 | "contractAddress": "",
38 | "input": "",
39 | "type": "call",
40 | "gas": "235231",
41 | "gasUsed": "0",
42 | "traceId": "0",
43 | "isError": "0",
44 | "errCode": ""
45 | },
46 | {
47 | "blockNumber": "2547590",
48 | "timeStamp": "1478012596",
49 | "hash": "0xee535e4016e766d9210d0bc47afeff48f12cd05f0b0b00aa0ed7019b4417f505",
50 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
51 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
52 | "value": "1000000000000000000",
53 | "contractAddress": "",
54 | "input": "",
55 | "type": "call",
56 | "gas": "174995",
57 | "gasUsed": "0",
58 | "traceId": "0",
59 | "isError": "0",
60 | "errCode": ""
61 | },
62 | {
63 | "blockNumber": "2547594",
64 | "timeStamp": "1478012642",
65 | "hash": "0x020a2660579f12783e51bfde4c831006a963cea2e848648db083a03efb20bde6",
66 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
67 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
68 | "value": "70000000000000000",
69 | "contractAddress": "",
70 | "input": "",
71 | "type": "call",
72 | "gas": "855726",
73 | "gasUsed": "0",
74 | "traceId": "0",
75 | "isError": "0",
76 | "errCode": ""
77 | },
78 | {
79 | "blockNumber": "2547606",
80 | "timeStamp": "1478013049",
81 | "hash": "0x2b13f565b5e29b792f2aaf8114da6ed904b0989fa86588a8f5c3cb39c0c594da",
82 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
83 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
84 | "value": "10000000000000000000",
85 | "contractAddress": "",
86 | "input": "",
87 | "type": "call",
88 | "gas": "346878",
89 | "gasUsed": "0",
90 | "traceId": "0",
91 | "isError": "0",
92 | "errCode": ""
93 | },
94 | {
95 | "blockNumber": "2547606",
96 | "timeStamp": "1478013049",
97 | "hash": "0x32ae2f75d0b0f14c7b208f915e13331f69e0331d3310c409c7fabe918fbac2e1",
98 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
99 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
100 | "value": "1000000000000000000",
101 | "contractAddress": "",
102 | "input": "",
103 | "type": "call",
104 | "gas": "346878",
105 | "gasUsed": "0",
106 | "traceId": "0",
107 | "isError": "0",
108 | "errCode": ""
109 | },
110 | {
111 | "blockNumber": "2547610",
112 | "timeStamp": "1478013089",
113 | "hash": "0x7ec728d9c71af608c89820a6ad8e34b572bc002a07242f0cd4e5fc826b176abc",
114 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
115 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
116 | "value": "26000000000000000000",
117 | "contractAddress": "",
118 | "input": "",
119 | "type": "call",
120 | "gas": "346878",
121 | "gasUsed": "0",
122 | "traceId": "0",
123 | "isError": "1",
124 | "errCode": "Bad jump destination"
125 | },
126 | {
127 | "blockNumber": "2547610",
128 | "timeStamp": "1478013089",
129 | "hash": "0x9c1e2e1c4e70c200c713838abcbd01047e293dc14bb3ad8e10c4a9b99f1a8e98",
130 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
131 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
132 | "value": "13000000000000000000",
133 | "contractAddress": "",
134 | "input": "",
135 | "type": "call",
136 | "gas": "346878",
137 | "gasUsed": "0",
138 | "traceId": "0",
139 | "isError": "1",
140 | "errCode": "Bad jump destination"
141 | },
142 | {
143 | "blockNumber": "2547613",
144 | "timeStamp": "1478013103",
145 | "hash": "0x31357abc9f0240385314f1778322e37df02761280d0bf4392e898b2605ab9841",
146 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
147 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
148 | "value": "26000000000000000000",
149 | "contractAddress": "",
150 | "input": "",
151 | "type": "call",
152 | "gas": "346878",
153 | "gasUsed": "0",
154 | "traceId": "0",
155 | "isError": "1",
156 | "errCode": "Bad jump destination"
157 | },
158 | {
159 | "blockNumber": "2547619",
160 | "timeStamp": "1478013203",
161 | "hash": "0x2896441f9d1f167b4a3f987d82233e7d238e6a50a227c4b612dbc82f34bb533d",
162 | "from": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
163 | "to": "0x20d42f2e99a421147acf198d775395cac2e8b03d",
164 | "value": "71000000000000000000",
165 | "contractAddress": "",
166 | "input": "",
167 | "type": "call",
168 | "gas": "346878",
169 | "gasUsed": "0",
170 | "traceId": "0",
171 | "isError": "1",
172 | "errCode": "Bad jump destination"
173 | }
174 | ]
175 | }
--------------------------------------------------------------------------------
/logs/standard/get_internal_txs_by_block_range_paginated.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_internal_txs_by_block_range_paginated",
3 | "module": "accounts",
4 | "kwargs": {
5 | "startblock": 0,
6 | "endblock": 2702578,
7 | "page": 1,
8 | "offset": 10,
9 | "sort": "asc"
10 | },
11 | "log_timestamp": "2020-10-28-12:34:34",
12 | "res": [
13 | {
14 | "blockNumber": "50107",
15 | "timeStamp": "1438984016",
16 | "hash": "0x3f97c969ddf71f515ce5373b1f8e76e9fd7016611d8ce455881009414301789e",
17 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
18 | "to": "0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
19 | "value": "1000000000000000000",
20 | "contractAddress": "",
21 | "input": "",
22 | "type": "call",
23 | "gas": "2300",
24 | "gasUsed": "0",
25 | "traceId": "0",
26 | "isError": "1",
27 | "errCode": ""
28 | },
29 | {
30 | "blockNumber": "50111",
31 | "timeStamp": "1438984075",
32 | "hash": "0x893c428fed019404f704cf4d9be977ed9ca01050ed93dccdd6c169422155586f",
33 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
34 | "to": "0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
35 | "value": "1000000000000000000",
36 | "contractAddress": "",
37 | "input": "",
38 | "type": "call",
39 | "gas": "2300",
40 | "gasUsed": "0",
41 | "traceId": "0",
42 | "isError": "0",
43 | "errCode": ""
44 | },
45 | {
46 | "blockNumber": "50117",
47 | "timeStamp": "1438984118",
48 | "hash": "0x1072369c82285007f94f5f97a8df8b680e9939c321d617f4d4012fdf8f0f4617",
49 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
50 | "to": "0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
51 | "value": "1000000000000000000",
52 | "contractAddress": "",
53 | "input": "",
54 | "type": "call",
55 | "gas": "2300",
56 | "gasUsed": "0",
57 | "traceId": "0",
58 | "isError": "0",
59 | "errCode": ""
60 | },
61 | {
62 | "blockNumber": "50295",
63 | "timeStamp": "1438986827",
64 | "hash": "0xcd31cbd995a5363263bde279a5ca00155067db49a1dc0a32b5ddeb6519a0c887",
65 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
66 | "to": "0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
67 | "value": "500000000000000000",
68 | "contractAddress": "",
69 | "input": "",
70 | "type": "call",
71 | "gas": "2300",
72 | "gasUsed": "0",
73 | "traceId": "0",
74 | "isError": "0",
75 | "errCode": ""
76 | },
77 | {
78 | "blockNumber": "50295",
79 | "timeStamp": "1438986827",
80 | "hash": "0xcd31cbd995a5363263bde279a5ca00155067db49a1dc0a32b5ddeb6519a0c887",
81 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
82 | "to": "0xfd2605a2bf58fdbb90db1da55df61628b47f9e8c",
83 | "value": "500000000000000000",
84 | "contractAddress": "",
85 | "input": "",
86 | "type": "call",
87 | "gas": "2300",
88 | "gasUsed": "0",
89 | "traceId": "1",
90 | "isError": "0",
91 | "errCode": ""
92 | },
93 | {
94 | "blockNumber": "50295",
95 | "timeStamp": "1438986827",
96 | "hash": "0xcd31cbd995a5363263bde279a5ca00155067db49a1dc0a32b5ddeb6519a0c887",
97 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
98 | "to": "0x834e9b529ac9fa63b39a06f8d8c9b0d6791fa5df",
99 | "value": "500000000000000000",
100 | "contractAddress": "",
101 | "input": "",
102 | "type": "call",
103 | "gas": "2300",
104 | "gasUsed": "0",
105 | "traceId": "2",
106 | "isError": "0",
107 | "errCode": ""
108 | },
109 | {
110 | "blockNumber": "50295",
111 | "timeStamp": "1438986827",
112 | "hash": "0xcd31cbd995a5363263bde279a5ca00155067db49a1dc0a32b5ddeb6519a0c887",
113 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
114 | "to": "0x881b0a4e9c55d08e31d8d3c022144d75a454211c",
115 | "value": "749999999999999998",
116 | "contractAddress": "",
117 | "input": "",
118 | "type": "call",
119 | "gas": "2300",
120 | "gasUsed": "0",
121 | "traceId": "3",
122 | "isError": "0",
123 | "errCode": ""
124 | },
125 | {
126 | "blockNumber": "50295",
127 | "timeStamp": "1438986827",
128 | "hash": "0xcd31cbd995a5363263bde279a5ca00155067db49a1dc0a32b5ddeb6519a0c887",
129 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
130 | "to": "0xfd2605a2bf58fdbb90db1da55df61628b47f9e8c",
131 | "value": "374999999999999998",
132 | "contractAddress": "",
133 | "input": "",
134 | "type": "call",
135 | "gas": "2300",
136 | "gasUsed": "0",
137 | "traceId": "4",
138 | "isError": "0",
139 | "errCode": ""
140 | },
141 | {
142 | "blockNumber": "50295",
143 | "timeStamp": "1438986827",
144 | "hash": "0xcd31cbd995a5363263bde279a5ca00155067db49a1dc0a32b5ddeb6519a0c887",
145 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
146 | "to": "0x834e9b529ac9fa63b39a06f8d8c9b0d6791fa5df",
147 | "value": "374999999999999998",
148 | "contractAddress": "",
149 | "input": "",
150 | "type": "call",
151 | "gas": "2300",
152 | "gasUsed": "0",
153 | "traceId": "5",
154 | "isError": "0",
155 | "errCode": ""
156 | },
157 | {
158 | "blockNumber": "50324",
159 | "timeStamp": "1438987309",
160 | "hash": "0x22591c7aadb705df30a13e97f73496b529f208573a231c7eb389766d29b421d1",
161 | "from": "0x109c4f2ccc82c4d77bde15f306707320294aea3f",
162 | "to": "0xfd2605a2bf58fdbb90db1da55df61628b47f9e8c",
163 | "value": "500000000000000000",
164 | "contractAddress": "",
165 | "input": "",
166 | "type": "call",
167 | "gas": "2300",
168 | "gasUsed": "0",
169 | "traceId": "0",
170 | "isError": "0",
171 | "errCode": ""
172 | }
173 | ]
174 | }
--------------------------------------------------------------------------------
/logs/standard/get_internal_txs_by_txhash.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_internal_txs_by_txhash",
3 | "module": "accounts",
4 | "kwargs": {
5 | "txhash": "0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170"
6 | },
7 | "log_timestamp": "2020-10-28-12:34:33",
8 | "res": [
9 | {
10 | "blockNumber": "1743059",
11 | "timeStamp": "1466489498",
12 | "from": "0x2cac6e4b11d6b58f6d3c1c9d5fe8faa89f60e5a2",
13 | "to": "0x66a1c3eaf0f1ffc28d209c0763ed0ca614f3b002",
14 | "value": "7106740000000000",
15 | "contractAddress": "",
16 | "input": "",
17 | "type": "call",
18 | "gas": "2300",
19 | "gasUsed": "0",
20 | "isError": "0",
21 | "errCode": ""
22 | }
23 | ]
24 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_balance.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_matic_balance",
3 | "module": "accounts",
4 | "kwargs": {
5 | "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:16",
8 | "res": "0"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_balance_multiple.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_matic_balance_multiple",
3 | "module": "accounts",
4 | "kwargs": {
5 | "addresses": [
6 | "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
7 | "0x63a9975ba31b0b9626b34300f7f627147df1f526",
8 | "0x198ef1ec325a96cc354c7266a038be8b5c558f67"
9 | ]
10 | },
11 | "log_timestamp": "2021-09-20-02:15:17",
12 | "res": [
13 | {
14 | "account": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
15 | "balance": "0"
16 | },
17 | {
18 | "account": "0x63a9975ba31b0b9626b34300f7f627147df1f526",
19 | "balance": "0"
20 | },
21 | {
22 | "account": "0x198ef1ec325a96cc354c7266a038be8b5c558f67",
23 | "balance": "0"
24 | }
25 | ]
26 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_daily_average_gas_price.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_daily_average_gas_price",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:55",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "maxGasPrice_Wei": "60814303896257",
15 | "minGasPrice_Wei": "432495",
16 | "avgGasPrice_Wei": "13234562600"
17 | },
18 | {
19 | "UTCDate": "2019-02-02",
20 | "unixTimeStamp": "1549065600",
21 | "maxGasPrice_Wei": "20000000000000",
22 | "minGasPrice_Wei": "2352",
23 | "avgGasPrice_Wei": "12000569516"
24 | },
25 | {
26 | "UTCDate": "2019-02-03",
27 | "unixTimeStamp": "1549152000",
28 | "maxGasPrice_Wei": "23614285714285",
29 | "minGasPrice_Wei": "269025",
30 | "avgGasPrice_Wei": "11637460620"
31 | },
32 | {
33 | "UTCDate": "2019-02-04",
34 | "unixTimeStamp": "1549238400",
35 | "maxGasPrice_Wei": "200000000000000",
36 | "minGasPrice_Wei": "167342",
37 | "avgGasPrice_Wei": "12082194503"
38 | },
39 | {
40 | "UTCDate": "2019-02-05",
41 | "unixTimeStamp": "1549324800",
42 | "maxGasPrice_Wei": "83012293290087",
43 | "minGasPrice_Wei": "1",
44 | "avgGasPrice_Wei": "12593215644"
45 | },
46 | {
47 | "UTCDate": "2019-02-06",
48 | "unixTimeStamp": "1549411200",
49 | "maxGasPrice_Wei": "3767644726505",
50 | "minGasPrice_Wei": "1",
51 | "avgGasPrice_Wei": "12593166346"
52 | },
53 | {
54 | "UTCDate": "2019-02-07",
55 | "unixTimeStamp": "1549497600",
56 | "maxGasPrice_Wei": "420000000000000",
57 | "minGasPrice_Wei": "10",
58 | "avgGasPrice_Wei": "14057368181"
59 | },
60 | {
61 | "UTCDate": "2019-02-08",
62 | "unixTimeStamp": "1549584000",
63 | "maxGasPrice_Wei": "55524906233331",
64 | "minGasPrice_Wei": "48964",
65 | "avgGasPrice_Wei": "13310836398"
66 | },
67 | {
68 | "UTCDate": "2019-02-09",
69 | "unixTimeStamp": "1549670400",
70 | "maxGasPrice_Wei": "127000000000000",
71 | "minGasPrice_Wei": "1",
72 | "avgGasPrice_Wei": "12390959208"
73 | },
74 | {
75 | "UTCDate": "2019-02-10",
76 | "unixTimeStamp": "1549756800",
77 | "maxGasPrice_Wei": "21000000000000",
78 | "minGasPrice_Wei": "17504",
79 | "avgGasPrice_Wei": "12847065310"
80 | },
81 | {
82 | "UTCDate": "2019-02-11",
83 | "unixTimeStamp": "1549843200",
84 | "maxGasPrice_Wei": "7000000000000",
85 | "minGasPrice_Wei": "9295",
86 | "avgGasPrice_Wei": "13977805236"
87 | },
88 | {
89 | "UTCDate": "2019-02-12",
90 | "unixTimeStamp": "1549929600",
91 | "maxGasPrice_Wei": "6379000000000",
92 | "minGasPrice_Wei": "5781",
93 | "avgGasPrice_Wei": "13012487105"
94 | },
95 | {
96 | "UTCDate": "2019-02-13",
97 | "unixTimeStamp": "1550016000",
98 | "maxGasPrice_Wei": "34498571428571",
99 | "minGasPrice_Wei": "3892",
100 | "avgGasPrice_Wei": "13713241302"
101 | },
102 | {
103 | "UTCDate": "2019-02-14",
104 | "unixTimeStamp": "1550102400",
105 | "maxGasPrice_Wei": "2221418863432381",
106 | "minGasPrice_Wei": "46298801",
107 | "avgGasPrice_Wei": "19148327564"
108 | },
109 | {
110 | "UTCDate": "2019-02-15",
111 | "unixTimeStamp": "1550188800",
112 | "maxGasPrice_Wei": "33333333333333",
113 | "minGasPrice_Wei": "1",
114 | "avgGasPrice_Wei": "14753437258"
115 | },
116 | {
117 | "UTCDate": "2019-02-16",
118 | "unixTimeStamp": "1550275200",
119 | "maxGasPrice_Wei": "11392000000000",
120 | "minGasPrice_Wei": "1",
121 | "avgGasPrice_Wei": "13510079150"
122 | },
123 | {
124 | "UTCDate": "2019-02-17",
125 | "unixTimeStamp": "1550361600",
126 | "maxGasPrice_Wei": "10940117095785",
127 | "minGasPrice_Wei": "1506",
128 | "avgGasPrice_Wei": "13757940835"
129 | },
130 | {
131 | "UTCDate": "2019-02-18",
132 | "unixTimeStamp": "1550448000",
133 | "maxGasPrice_Wei": "100770093884892",
134 | "minGasPrice_Wei": "1097",
135 | "avgGasPrice_Wei": "17094399315"
136 | },
137 | {
138 | "UTCDate": "2019-02-19",
139 | "unixTimeStamp": "1550534400",
140 | "maxGasPrice_Wei": "100000000000000000",
141 | "minGasPrice_Wei": "800",
142 | "avgGasPrice_Wei": "373905995022"
143 | },
144 | {
145 | "UTCDate": "2019-02-20",
146 | "unixTimeStamp": "1550620800",
147 | "maxGasPrice_Wei": "19000000000000",
148 | "minGasPrice_Wei": "1",
149 | "avgGasPrice_Wei": "16098676684"
150 | },
151 | {
152 | "UTCDate": "2019-02-21",
153 | "unixTimeStamp": "1550707200",
154 | "maxGasPrice_Wei": "10000000000000",
155 | "minGasPrice_Wei": "7",
156 | "avgGasPrice_Wei": "15306757881"
157 | },
158 | {
159 | "UTCDate": "2019-02-22",
160 | "unixTimeStamp": "1550793600",
161 | "maxGasPrice_Wei": "8571428571679",
162 | "minGasPrice_Wei": "13800",
163 | "avgGasPrice_Wei": "14913439608"
164 | },
165 | {
166 | "UTCDate": "2019-02-23",
167 | "unixTimeStamp": "1550880000",
168 | "maxGasPrice_Wei": "21000000000000",
169 | "minGasPrice_Wei": "22",
170 | "avgGasPrice_Wei": "14039107293"
171 | },
172 | {
173 | "UTCDate": "2019-02-24",
174 | "unixTimeStamp": "1550966400",
175 | "maxGasPrice_Wei": "210000000000000",
176 | "minGasPrice_Wei": "11000000",
177 | "avgGasPrice_Wei": "16251853700"
178 | },
179 | {
180 | "UTCDate": "2019-02-25",
181 | "unixTimeStamp": "1551052800",
182 | "maxGasPrice_Wei": "7179842380952",
183 | "minGasPrice_Wei": "50000000",
184 | "avgGasPrice_Wei": "17020990610"
185 | },
186 | {
187 | "UTCDate": "2019-02-26",
188 | "unixTimeStamp": "1551139200",
189 | "maxGasPrice_Wei": "60029121428571",
190 | "minGasPrice_Wei": "122630",
191 | "avgGasPrice_Wei": "17415861033"
192 | },
193 | {
194 | "UTCDate": "2019-02-27",
195 | "unixTimeStamp": "1551225600",
196 | "maxGasPrice_Wei": "42000000000000",
197 | "minGasPrice_Wei": "1000000",
198 | "avgGasPrice_Wei": "16334617513"
199 | },
200 | {
201 | "UTCDate": "2019-02-28",
202 | "unixTimeStamp": "1551312000",
203 | "maxGasPrice_Wei": "237222222222257",
204 | "minGasPrice_Wei": "100000000",
205 | "avgGasPrice_Wei": "18834674068"
206 | }
207 | ]
208 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_daily_avg_gas_price.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_daily_avg_gas_price",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:01:42",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "maxGasPrice_Wei": "60814303896257",
15 | "minGasPrice_Wei": "432495",
16 | "avgGasPrice_Wei": "13234562600"
17 | },
18 | {
19 | "UTCDate": "2019-02-02",
20 | "unixTimeStamp": "1549065600",
21 | "maxGasPrice_Wei": "20000000000000",
22 | "minGasPrice_Wei": "2352",
23 | "avgGasPrice_Wei": "12000569516"
24 | },
25 | {
26 | "UTCDate": "2019-02-03",
27 | "unixTimeStamp": "1549152000",
28 | "maxGasPrice_Wei": "23614285714285",
29 | "minGasPrice_Wei": "269025",
30 | "avgGasPrice_Wei": "11637460620"
31 | },
32 | {
33 | "UTCDate": "2019-02-04",
34 | "unixTimeStamp": "1549238400",
35 | "maxGasPrice_Wei": "200000000000000",
36 | "minGasPrice_Wei": "167342",
37 | "avgGasPrice_Wei": "12082194503"
38 | },
39 | {
40 | "UTCDate": "2019-02-05",
41 | "unixTimeStamp": "1549324800",
42 | "maxGasPrice_Wei": "83012293290087",
43 | "minGasPrice_Wei": "1",
44 | "avgGasPrice_Wei": "12593215644"
45 | },
46 | {
47 | "UTCDate": "2019-02-06",
48 | "unixTimeStamp": "1549411200",
49 | "maxGasPrice_Wei": "3767644726505",
50 | "minGasPrice_Wei": "1",
51 | "avgGasPrice_Wei": "12593166346"
52 | },
53 | {
54 | "UTCDate": "2019-02-07",
55 | "unixTimeStamp": "1549497600",
56 | "maxGasPrice_Wei": "420000000000000",
57 | "minGasPrice_Wei": "10",
58 | "avgGasPrice_Wei": "14057368181"
59 | },
60 | {
61 | "UTCDate": "2019-02-08",
62 | "unixTimeStamp": "1549584000",
63 | "maxGasPrice_Wei": "55524906233331",
64 | "minGasPrice_Wei": "48964",
65 | "avgGasPrice_Wei": "13310836398"
66 | },
67 | {
68 | "UTCDate": "2019-02-09",
69 | "unixTimeStamp": "1549670400",
70 | "maxGasPrice_Wei": "127000000000000",
71 | "minGasPrice_Wei": "1",
72 | "avgGasPrice_Wei": "12390959208"
73 | },
74 | {
75 | "UTCDate": "2019-02-10",
76 | "unixTimeStamp": "1549756800",
77 | "maxGasPrice_Wei": "21000000000000",
78 | "minGasPrice_Wei": "17504",
79 | "avgGasPrice_Wei": "12847065310"
80 | },
81 | {
82 | "UTCDate": "2019-02-11",
83 | "unixTimeStamp": "1549843200",
84 | "maxGasPrice_Wei": "7000000000000",
85 | "minGasPrice_Wei": "9295",
86 | "avgGasPrice_Wei": "13977805236"
87 | },
88 | {
89 | "UTCDate": "2019-02-12",
90 | "unixTimeStamp": "1549929600",
91 | "maxGasPrice_Wei": "6379000000000",
92 | "minGasPrice_Wei": "5781",
93 | "avgGasPrice_Wei": "13012487105"
94 | },
95 | {
96 | "UTCDate": "2019-02-13",
97 | "unixTimeStamp": "1550016000",
98 | "maxGasPrice_Wei": "34498571428571",
99 | "minGasPrice_Wei": "3892",
100 | "avgGasPrice_Wei": "13713241302"
101 | },
102 | {
103 | "UTCDate": "2019-02-14",
104 | "unixTimeStamp": "1550102400",
105 | "maxGasPrice_Wei": "2221418863432381",
106 | "minGasPrice_Wei": "46298801",
107 | "avgGasPrice_Wei": "19148327564"
108 | },
109 | {
110 | "UTCDate": "2019-02-15",
111 | "unixTimeStamp": "1550188800",
112 | "maxGasPrice_Wei": "33333333333333",
113 | "minGasPrice_Wei": "1",
114 | "avgGasPrice_Wei": "14753437258"
115 | },
116 | {
117 | "UTCDate": "2019-02-16",
118 | "unixTimeStamp": "1550275200",
119 | "maxGasPrice_Wei": "11392000000000",
120 | "minGasPrice_Wei": "1",
121 | "avgGasPrice_Wei": "13510079150"
122 | },
123 | {
124 | "UTCDate": "2019-02-17",
125 | "unixTimeStamp": "1550361600",
126 | "maxGasPrice_Wei": "10940117095785",
127 | "minGasPrice_Wei": "1506",
128 | "avgGasPrice_Wei": "13757940835"
129 | },
130 | {
131 | "UTCDate": "2019-02-18",
132 | "unixTimeStamp": "1550448000",
133 | "maxGasPrice_Wei": "100770093884892",
134 | "minGasPrice_Wei": "1097",
135 | "avgGasPrice_Wei": "17094399315"
136 | },
137 | {
138 | "UTCDate": "2019-02-19",
139 | "unixTimeStamp": "1550534400",
140 | "maxGasPrice_Wei": "100000000000000000",
141 | "minGasPrice_Wei": "800",
142 | "avgGasPrice_Wei": "373905995022"
143 | },
144 | {
145 | "UTCDate": "2019-02-20",
146 | "unixTimeStamp": "1550620800",
147 | "maxGasPrice_Wei": "19000000000000",
148 | "minGasPrice_Wei": "1",
149 | "avgGasPrice_Wei": "16098676684"
150 | },
151 | {
152 | "UTCDate": "2019-02-21",
153 | "unixTimeStamp": "1550707200",
154 | "maxGasPrice_Wei": "10000000000000",
155 | "minGasPrice_Wei": "7",
156 | "avgGasPrice_Wei": "15306757881"
157 | },
158 | {
159 | "UTCDate": "2019-02-22",
160 | "unixTimeStamp": "1550793600",
161 | "maxGasPrice_Wei": "8571428571679",
162 | "minGasPrice_Wei": "13800",
163 | "avgGasPrice_Wei": "14913439608"
164 | },
165 | {
166 | "UTCDate": "2019-02-23",
167 | "unixTimeStamp": "1550880000",
168 | "maxGasPrice_Wei": "21000000000000",
169 | "minGasPrice_Wei": "22",
170 | "avgGasPrice_Wei": "14039107293"
171 | },
172 | {
173 | "UTCDate": "2019-02-24",
174 | "unixTimeStamp": "1550966400",
175 | "maxGasPrice_Wei": "210000000000000",
176 | "minGasPrice_Wei": "11000000",
177 | "avgGasPrice_Wei": "16251853700"
178 | },
179 | {
180 | "UTCDate": "2019-02-25",
181 | "unixTimeStamp": "1551052800",
182 | "maxGasPrice_Wei": "7179842380952",
183 | "minGasPrice_Wei": "50000000",
184 | "avgGasPrice_Wei": "17020990610"
185 | },
186 | {
187 | "UTCDate": "2019-02-26",
188 | "unixTimeStamp": "1551139200",
189 | "maxGasPrice_Wei": "60029121428571",
190 | "minGasPrice_Wei": "122630",
191 | "avgGasPrice_Wei": "17415861033"
192 | },
193 | {
194 | "UTCDate": "2019-02-27",
195 | "unixTimeStamp": "1551225600",
196 | "maxGasPrice_Wei": "42000000000000",
197 | "minGasPrice_Wei": "1000000",
198 | "avgGasPrice_Wei": "16334617513"
199 | },
200 | {
201 | "UTCDate": "2019-02-28",
202 | "unixTimeStamp": "1551312000",
203 | "maxGasPrice_Wei": "237222222222257",
204 | "minGasPrice_Wei": "100000000",
205 | "avgGasPrice_Wei": "18834674068"
206 | }
207 | ]
208 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_daily_network_tx_fee.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_daily_network_tx_fee",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:55",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "transactionFee_Eth": "358.558440870590355682"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "transactionFee_Eth": "286.886084685869906669"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "transactionFee_Eth": "253.716463007827151947"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "transactionFee_Eth": "266.90241569706715742"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "transactionFee_Eth": "269.822520562289946328"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "transactionFee_Eth": "283.658211099938063379"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "transactionFee_Eth": "302.806479808971009116"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "transactionFee_Eth": "327.477084042987710456"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "transactionFee_Eth": "292.293379769382648583"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "transactionFee_Eth": "274.093901616766678939"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "transactionFee_Eth": "321.220211172266267345"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "transactionFee_Eth": "316.690456317758054112"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "transactionFee_Eth": "356.530882013252836379"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "transactionFee_Eth": "395.49334556988236845"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "transactionFee_Eth": "408.342429404100591967"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "transactionFee_Eth": "360.428548152031351776"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "transactionFee_Eth": "358.455770384085746798"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "transactionFee_Eth": "491.58184480394059885"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "transactionFee_Eth": "4475.319097090383139395"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "transactionFee_Eth": "465.034300622835283572"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "transactionFee_Eth": "449.925097909843539379"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "transactionFee_Eth": "426.472235177110008375"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "transactionFee_Eth": "385.480492211673279488"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "transactionFee_Eth": "465.38318818023833454"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "transactionFee_Eth": "523.629388293064313163"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "transactionFee_Eth": "525.221598273230275303"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "transactionFee_Eth": "477.562144158920547929"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "transactionFee_Eth": "545.141762162356907132"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_daily_total_gas_used.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_daily_total_gas_used",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:54",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "gasUsed": "32761450415"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "gasUsed": "30168904532"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "gasUsed": "28022576836"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "gasUsed": "28109457360"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "gasUsed": "27984580259"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "gasUsed": "28696360299"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "gasUsed": "29441176225"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "gasUsed": "30304669218"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "gasUsed": "29701599787"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "gasUsed": "26786193364"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "gasUsed": "27611571189"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "gasUsed": "28573833622"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "gasUsed": "29584055361"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "gasUsed": "29051955302"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "gasUsed": "30180437810"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "gasUsed": "29978364164"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "gasUsed": "29860882794"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "gasUsed": "31150438004"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "gasUsed": "31990800940"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "gasUsed": "31658564437"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "gasUsed": "32160208363"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "gasUsed": "31958692019"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "gasUsed": "31537207542"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "gasUsed": "31412524215"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "gasUsed": "32472793305"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "gasUsed": "32859962542"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "gasUsed": "32657440136"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "gasUsed": "33081119561"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_hist_daily_market_cap.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_hist_daily_market_cap",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:34:59",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "supply": "104672819.281250",
15 | "marketCap": "11203.1318476721875",
16 | "price": "107.03"
17 | },
18 | {
19 | "UTCDate": "2019-02-02",
20 | "unixTimeStamp": "1549065600",
21 | "supply": "104688430.906250",
22 | "marketCap": "11620.41583059375",
23 | "price": "111.00"
24 | },
25 | {
26 | "UTCDate": "2019-02-03",
27 | "unixTimeStamp": "1549152000",
28 | "supply": "104703657.031250",
29 | "marketCap": "11225.2790703203125",
30 | "price": "107.21"
31 | },
32 | {
33 | "UTCDate": "2019-02-04",
34 | "unixTimeStamp": "1549238400",
35 | "supply": "104719051.718750",
36 | "marketCap": "11194.466628734375",
37 | "price": "106.90"
38 | },
39 | {
40 | "UTCDate": "2019-02-05",
41 | "unixTimeStamp": "1549324800",
42 | "supply": "104734470.500000",
43 | "marketCap": "11199.256930565",
44 | "price": "106.93"
45 | },
46 | {
47 | "UTCDate": "2019-02-06",
48 | "unixTimeStamp": "1549411200",
49 | "supply": "104749772.843750",
50 | "marketCap": "10946.351262171875",
51 | "price": "104.50"
52 | },
53 | {
54 | "UTCDate": "2019-02-07",
55 | "unixTimeStamp": "1549497600",
56 | "supply": "104765171.468750",
57 | "marketCap": "10927.007384190625",
58 | "price": "104.30"
59 | },
60 | {
61 | "UTCDate": "2019-02-08",
62 | "unixTimeStamp": "1549584000",
63 | "supply": "104780642.750000",
64 | "marketCap": "12520.2390021975",
65 | "price": "119.49"
66 | },
67 | {
68 | "UTCDate": "2019-02-09",
69 | "unixTimeStamp": "1549670400",
70 | "supply": "104795989.812500",
71 | "marketCap": "12518.92894300125",
72 | "price": "119.46"
73 | },
74 | {
75 | "UTCDate": "2019-02-10",
76 | "unixTimeStamp": "1549756800",
77 | "supply": "104809360.156250",
78 | "marketCap": "13161.959448421875",
79 | "price": "125.58"
80 | },
81 | {
82 | "UTCDate": "2019-02-11",
83 | "unixTimeStamp": "1549843200",
84 | "supply": "104822491.250000",
85 | "marketCap": "12658.36404335",
86 | "price": "120.76"
87 | },
88 | {
89 | "UTCDate": "2019-02-12",
90 | "unixTimeStamp": "1549929600",
91 | "supply": "104835855.031250",
92 | "marketCap": "12856.0209024821875",
93 | "price": "122.63"
94 | },
95 | {
96 | "UTCDate": "2019-02-13",
97 | "unixTimeStamp": "1550016000",
98 | "supply": "104848912.531250",
99 | "marketCap": "12824.0704916971875",
100 | "price": "122.31"
101 | },
102 | {
103 | "UTCDate": "2019-02-14",
104 | "unixTimeStamp": "1550102400",
105 | "supply": "104861993.375000",
106 | "marketCap": "12672.57189936875",
107 | "price": "120.85"
108 | },
109 | {
110 | "UTCDate": "2019-02-15",
111 | "unixTimeStamp": "1550188800",
112 | "supply": "104875057.343750",
113 | "marketCap": "12796.854497084375",
114 | "price": "122.02"
115 | },
116 | {
117 | "UTCDate": "2019-02-16",
118 | "unixTimeStamp": "1550275200",
119 | "supply": "104888338.812500",
120 | "marketCap": "12928.53664202875",
121 | "price": "123.26"
122 | },
123 | {
124 | "UTCDate": "2019-02-17",
125 | "unixTimeStamp": "1550361600",
126 | "supply": "104901328.156250",
127 | "marketCap": "14086.15034482125",
128 | "price": "134.28"
129 | },
130 | {
131 | "UTCDate": "2019-02-18",
132 | "unixTimeStamp": "1550448000",
133 | "supply": "104914625.937500",
134 | "marketCap": "15373.140138621875",
135 | "price": "146.53"
136 | },
137 | {
138 | "UTCDate": "2019-02-19",
139 | "unixTimeStamp": "1550534400",
140 | "supply": "104928158.656250",
141 | "marketCap": "15151.6261099625",
142 | "price": "144.40"
143 | },
144 | {
145 | "UTCDate": "2019-02-20",
146 | "unixTimeStamp": "1550620800",
147 | "supply": "104941575.875000",
148 | "marketCap": "15660.43136782625",
149 | "price": "149.23"
150 | },
151 | {
152 | "UTCDate": "2019-02-21",
153 | "unixTimeStamp": "1550707200",
154 | "supply": "104954915.562500",
155 | "marketCap": "15361.2014417275",
156 | "price": "146.36"
157 | },
158 | {
159 | "UTCDate": "2019-02-22",
160 | "unixTimeStamp": "1550793600",
161 | "supply": "104968207.625000",
162 | "marketCap": "15644.46166443",
163 | "price": "149.04"
164 | },
165 | {
166 | "UTCDate": "2019-02-23",
167 | "unixTimeStamp": "1550880000",
168 | "supply": "104981859.593750",
169 | "marketCap": "16742.50696801125",
170 | "price": "159.48"
171 | },
172 | {
173 | "UTCDate": "2019-02-24",
174 | "unixTimeStamp": "1550966400",
175 | "supply": "104995217.750000",
176 | "marketCap": "14008.461952205",
177 | "price": "133.42"
178 | },
179 | {
180 | "UTCDate": "2019-02-25",
181 | "unixTimeStamp": "1551052800",
182 | "supply": "105008589.406250",
183 | "marketCap": "14598.294099256875",
184 | "price": "139.02"
185 | },
186 | {
187 | "UTCDate": "2019-02-26",
188 | "unixTimeStamp": "1551139200",
189 | "supply": "105022110.125000",
190 | "marketCap": "14400.63174034",
191 | "price": "137.12"
192 | },
193 | {
194 | "UTCDate": "2019-02-27",
195 | "unixTimeStamp": "1551225600",
196 | "supply": "105035621.562500",
197 | "marketCap": "14278.54239520625",
198 | "price": "135.94"
199 | },
200 | {
201 | "UTCDate": "2019-02-28",
202 | "unixTimeStamp": "1551312000",
203 | "supply": "105048576.406250",
204 | "marketCap": "14317.0704784078125",
205 | "price": "136.29"
206 | }
207 | ]
208 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_hist_price.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_hist_price",
3 | "module": "pro",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "sort": "asc"
8 | },
9 | "log_timestamp": "2020-10-28-12:35:00",
10 | "res": [
11 | {
12 | "UTCDate": "2019-02-01",
13 | "unixTimeStamp": "1548979200",
14 | "value": "107.03"
15 | },
16 | {
17 | "UTCDate": "2019-02-02",
18 | "unixTimeStamp": "1549065600",
19 | "value": "111.00"
20 | },
21 | {
22 | "UTCDate": "2019-02-03",
23 | "unixTimeStamp": "1549152000",
24 | "value": "107.21"
25 | },
26 | {
27 | "UTCDate": "2019-02-04",
28 | "unixTimeStamp": "1549238400",
29 | "value": "106.90"
30 | },
31 | {
32 | "UTCDate": "2019-02-05",
33 | "unixTimeStamp": "1549324800",
34 | "value": "106.93"
35 | },
36 | {
37 | "UTCDate": "2019-02-06",
38 | "unixTimeStamp": "1549411200",
39 | "value": "104.50"
40 | },
41 | {
42 | "UTCDate": "2019-02-07",
43 | "unixTimeStamp": "1549497600",
44 | "value": "104.30"
45 | },
46 | {
47 | "UTCDate": "2019-02-08",
48 | "unixTimeStamp": "1549584000",
49 | "value": "119.49"
50 | },
51 | {
52 | "UTCDate": "2019-02-09",
53 | "unixTimeStamp": "1549670400",
54 | "value": "119.46"
55 | },
56 | {
57 | "UTCDate": "2019-02-10",
58 | "unixTimeStamp": "1549756800",
59 | "value": "125.58"
60 | },
61 | {
62 | "UTCDate": "2019-02-11",
63 | "unixTimeStamp": "1549843200",
64 | "value": "120.76"
65 | },
66 | {
67 | "UTCDate": "2019-02-12",
68 | "unixTimeStamp": "1549929600",
69 | "value": "122.63"
70 | },
71 | {
72 | "UTCDate": "2019-02-13",
73 | "unixTimeStamp": "1550016000",
74 | "value": "122.31"
75 | },
76 | {
77 | "UTCDate": "2019-02-14",
78 | "unixTimeStamp": "1550102400",
79 | "value": "120.85"
80 | },
81 | {
82 | "UTCDate": "2019-02-15",
83 | "unixTimeStamp": "1550188800",
84 | "value": "122.02"
85 | },
86 | {
87 | "UTCDate": "2019-02-16",
88 | "unixTimeStamp": "1550275200",
89 | "value": "123.26"
90 | },
91 | {
92 | "UTCDate": "2019-02-17",
93 | "unixTimeStamp": "1550361600",
94 | "value": "134.28"
95 | },
96 | {
97 | "UTCDate": "2019-02-18",
98 | "unixTimeStamp": "1550448000",
99 | "value": "146.53"
100 | },
101 | {
102 | "UTCDate": "2019-02-19",
103 | "unixTimeStamp": "1550534400",
104 | "value": "144.40"
105 | },
106 | {
107 | "UTCDate": "2019-02-20",
108 | "unixTimeStamp": "1550620800",
109 | "value": "149.23"
110 | },
111 | {
112 | "UTCDate": "2019-02-21",
113 | "unixTimeStamp": "1550707200",
114 | "value": "146.36"
115 | },
116 | {
117 | "UTCDate": "2019-02-22",
118 | "unixTimeStamp": "1550793600",
119 | "value": "149.04"
120 | },
121 | {
122 | "UTCDate": "2019-02-23",
123 | "unixTimeStamp": "1550880000",
124 | "value": "159.48"
125 | },
126 | {
127 | "UTCDate": "2019-02-24",
128 | "unixTimeStamp": "1550966400",
129 | "value": "133.42"
130 | },
131 | {
132 | "UTCDate": "2019-02-25",
133 | "unixTimeStamp": "1551052800",
134 | "value": "139.02"
135 | },
136 | {
137 | "UTCDate": "2019-02-26",
138 | "unixTimeStamp": "1551139200",
139 | "value": "137.12"
140 | },
141 | {
142 | "UTCDate": "2019-02-27",
143 | "unixTimeStamp": "1551225600",
144 | "value": "135.94"
145 | },
146 | {
147 | "UTCDate": "2019-02-28",
148 | "unixTimeStamp": "1551312000",
149 | "value": "136.29"
150 | }
151 | ]
152 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_last_price.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_matic_last_price",
3 | "module": "stats",
4 | "kwargs": {},
5 | "log_timestamp": "2021-09-20-02:15:30",
6 | "res": {
7 | "ethbtc": "0.00002745",
8 | "ethbtc_timestamp": "1632100462",
9 | "ethusd": "1.291",
10 | "ethusd_timestamp": "1632100466"
11 | }
12 | }
--------------------------------------------------------------------------------
/logs/standard/get_matic_nodes_size.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_eth_nodes_size",
3 | "module": "stats",
4 | "kwargs": {
5 | "start_date": "2019-02-01",
6 | "end_date": "2019-02-28",
7 | "client_type": "geth",
8 | "sync_mode": "default",
9 | "sort": "asc"
10 | },
11 | "log_timestamp": "2020-10-28-12:35:11",
12 | "res": [
13 | {
14 | "blockNumber": "7156164",
15 | "chainTimeStamp": "2019-02-01",
16 | "chainSize": "184726421279",
17 | "clientType": "Geth",
18 | "syncMode": "Default"
19 | },
20 | {
21 | "blockNumber": "7161012",
22 | "chainTimeStamp": "2019-02-02",
23 | "chainSize": "184726654448",
24 | "clientType": "Geth",
25 | "syncMode": "Default"
26 | },
27 | {
28 | "blockNumber": "7165949",
29 | "chainTimeStamp": "2019-02-03",
30 | "chainSize": "184726769049",
31 | "clientType": "Geth",
32 | "syncMode": "Default"
33 | },
34 | {
35 | "blockNumber": "7170805",
36 | "chainTimeStamp": "2019-02-04",
37 | "chainSize": "186974874323",
38 | "clientType": "Geth",
39 | "syncMode": "Default"
40 | },
41 | {
42 | "blockNumber": "7175752",
43 | "chainTimeStamp": "2019-02-05",
44 | "chainSize": "186974913559",
45 | "clientType": "Geth",
46 | "syncMode": "Default"
47 | },
48 | {
49 | "blockNumber": "7180654",
50 | "chainTimeStamp": "2019-02-06",
51 | "chainSize": "186974923662",
52 | "clientType": "Geth",
53 | "syncMode": "Default"
54 | },
55 | {
56 | "blockNumber": "7185533",
57 | "chainTimeStamp": "2019-02-07",
58 | "chainSize": "186974939161",
59 | "clientType": "Geth",
60 | "syncMode": "Default"
61 | },
62 | {
63 | "blockNumber": "7190465",
64 | "chainTimeStamp": "2019-02-08",
65 | "chainSize": "186974941698",
66 | "clientType": "Geth",
67 | "syncMode": "Default"
68 | },
69 | {
70 | "blockNumber": "7195382",
71 | "chainTimeStamp": "2019-02-09",
72 | "chainSize": "188036647969",
73 | "clientType": "Geth",
74 | "syncMode": "Default"
75 | },
76 | {
77 | "blockNumber": "7200281",
78 | "chainTimeStamp": "2019-02-10",
79 | "chainSize": "188036745122",
80 | "clientType": "Geth",
81 | "syncMode": "Default"
82 | },
83 | {
84 | "blockNumber": "7204582",
85 | "chainTimeStamp": "2019-02-11",
86 | "chainSize": "189825908951",
87 | "clientType": "Geth",
88 | "syncMode": "Default"
89 | },
90 | {
91 | "blockNumber": "7208771",
92 | "chainTimeStamp": "2019-02-12",
93 | "chainSize": "189825138765",
94 | "clientType": "Geth",
95 | "syncMode": "Default"
96 | },
97 | {
98 | "blockNumber": "7213043",
99 | "chainTimeStamp": "2019-02-13",
100 | "chainSize": "191029008588",
101 | "clientType": "Geth",
102 | "syncMode": "Default"
103 | },
104 | {
105 | "blockNumber": "7217203",
106 | "chainTimeStamp": "2019-02-14",
107 | "chainSize": "191029044688",
108 | "clientType": "Geth",
109 | "syncMode": "Default"
110 | },
111 | {
112 | "blockNumber": "7221377",
113 | "chainTimeStamp": "2019-02-15",
114 | "chainSize": "191029043090",
115 | "clientType": "Geth",
116 | "syncMode": "Default"
117 | },
118 | {
119 | "blockNumber": "7225536",
120 | "chainTimeStamp": "2019-02-16",
121 | "chainSize": "191029045208",
122 | "clientType": "Geth",
123 | "syncMode": "Default"
124 | },
125 | {
126 | "blockNumber": "7229750",
127 | "chainTimeStamp": "2019-02-17",
128 | "chainSize": "193165253566",
129 | "clientType": "Geth",
130 | "syncMode": "Default"
131 | },
132 | {
133 | "blockNumber": "7233897",
134 | "chainTimeStamp": "2019-02-18",
135 | "chainSize": "193137877427",
136 | "clientType": "Geth",
137 | "syncMode": "Default"
138 | },
139 | {
140 | "blockNumber": "7238097",
141 | "chainTimeStamp": "2019-02-19",
142 | "chainSize": "193137884219",
143 | "clientType": "Geth",
144 | "syncMode": "Default"
145 | },
146 | {
147 | "blockNumber": "7242392",
148 | "chainTimeStamp": "2019-02-20",
149 | "chainSize": "193137888523",
150 | "clientType": "Geth",
151 | "syncMode": "Default"
152 | },
153 | {
154 | "blockNumber": "7246851",
155 | "chainTimeStamp": "2019-02-21",
156 | "chainSize": "193137897277",
157 | "clientType": "Geth",
158 | "syncMode": "Default"
159 | },
160 | {
161 | "blockNumber": "7250875",
162 | "chainTimeStamp": "2019-02-22",
163 | "chainSize": "194181810792",
164 | "clientType": "Geth",
165 | "syncMode": "Default"
166 | },
167 | {
168 | "blockNumber": "7255115",
169 | "chainTimeStamp": "2019-02-23",
170 | "chainSize": "194182026829",
171 | "clientType": "Geth",
172 | "syncMode": "Default"
173 | },
174 | {
175 | "blockNumber": "7259664",
176 | "chainTimeStamp": "2019-02-24",
177 | "chainSize": "196325633666",
178 | "clientType": "Geth",
179 | "syncMode": "Default"
180 | },
181 | {
182 | "blockNumber": "7263727",
183 | "chainTimeStamp": "2019-02-25",
184 | "chainSize": "196296727498",
185 | "clientType": "Geth",
186 | "syncMode": "Default"
187 | },
188 | {
189 | "blockNumber": "7267963",
190 | "chainTimeStamp": "2019-02-26",
191 | "chainSize": "197073035945",
192 | "clientType": "Geth",
193 | "syncMode": "Default"
194 | },
195 | {
196 | "blockNumber": "7272243",
197 | "chainTimeStamp": "2019-02-27",
198 | "chainSize": "197073058856",
199 | "clientType": "Geth",
200 | "syncMode": "Default"
201 | },
202 | {
203 | "blockNumber": "7276521",
204 | "chainTimeStamp": "2019-02-28",
205 | "chainSize": "197073145113",
206 | "clientType": "Geth",
207 | "syncMode": "Default"
208 | }
209 | ]
210 | }
--------------------------------------------------------------------------------
/logs/standard/get_mined_blocks_by_address_paginated.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_mined_blocks_by_address_paginated",
3 | "module": "accounts",
4 | "kwargs": {
5 | "address": "0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b",
6 | "page": 1,
7 | "offset": 100
8 | },
9 | "log_timestamp": "2020-10-28-12:34:42",
10 | "res": [
11 | {
12 | "blockNumber": "3462296",
13 | "timeStamp": "1491118514",
14 | "blockReward": "5194770940000000000"
15 | },
16 | {
17 | "blockNumber": "2691400",
18 | "timeStamp": "1480072029",
19 | "blockReward": "5086562212310617100"
20 | },
21 | {
22 | "blockNumber": "2687700",
23 | "timeStamp": "1480018852",
24 | "blockReward": "5003251945421042780"
25 | },
26 | {
27 | "blockNumber": "2683816",
28 | "timeStamp": "1479962557",
29 | "blockReward": "5001383656218938700"
30 | },
31 | {
32 | "blockNumber": "2679545",
33 | "timeStamp": "1479897472",
34 | "blockReward": "5020577105778940320"
35 | },
36 | {
37 | "blockNumber": "2672925",
38 | "timeStamp": "1479801652",
39 | "blockReward": "5036170186197654897"
40 | },
41 | {
42 | "blockNumber": "2672392",
43 | "timeStamp": "1479793756",
44 | "blockReward": "5040843500234248393"
45 | },
46 | {
47 | "blockNumber": "2671141",
48 | "timeStamp": "1479775525",
49 | "blockReward": "5006088055733760000"
50 | },
51 | {
52 | "blockNumber": "2664645",
53 | "timeStamp": "1479683057",
54 | "blockReward": "5008800961000000000"
55 | },
56 | {
57 | "blockNumber": "2664477",
58 | "timeStamp": "1479680540",
59 | "blockReward": "5014109439959925732"
60 | },
61 | {
62 | "blockNumber": "2660846",
63 | "timeStamp": "1479630668",
64 | "blockReward": "5000000000000000000"
65 | },
66 | {
67 | "blockNumber": "2642337",
68 | "timeStamp": "1479367908",
69 | "blockReward": "5004105076553280000"
70 | },
71 | {
72 | "blockNumber": "2641419",
73 | "timeStamp": "1479355280",
74 | "blockReward": "5000000000000000000"
75 | },
76 | {
77 | "blockNumber": "2640300",
78 | "timeStamp": "1479339496",
79 | "blockReward": "5023598697640000000"
80 | },
81 | {
82 | "blockNumber": "2639848",
83 | "timeStamp": "1479332907",
84 | "blockReward": "5005179590280000000"
85 | },
86 | {
87 | "blockNumber": "2637051",
88 | "timeStamp": "1479293429",
89 | "blockReward": "5002213960000000000"
90 | },
91 | {
92 | "blockNumber": "2635543",
93 | "timeStamp": "1479271781",
94 | "blockReward": "5014593209013280000"
95 | },
96 | {
97 | "blockNumber": "2635084",
98 | "timeStamp": "1479264735",
99 | "blockReward": "5029959474298725916"
100 | },
101 | {
102 | "blockNumber": "2631348",
103 | "timeStamp": "1479210692",
104 | "blockReward": "5000000000000000000"
105 | },
106 | {
107 | "blockNumber": "2630767",
108 | "timeStamp": "1479202668",
109 | "blockReward": "5003950697023093000"
110 | },
111 | {
112 | "blockNumber": "2628591",
113 | "timeStamp": "1479172153",
114 | "blockReward": "5041163634527265335"
115 | },
116 | {
117 | "blockNumber": "2626533",
118 | "timeStamp": "1479142737",
119 | "blockReward": "5043977462285845780"
120 | },
121 | {
122 | "blockNumber": "2624792",
123 | "timeStamp": "1479118006",
124 | "blockReward": "5024064039594111238"
125 | },
126 | {
127 | "blockNumber": "2623221",
128 | "timeStamp": "1479095666",
129 | "blockReward": "5162992739180923544"
130 | },
131 | {
132 | "blockNumber": "2623178",
133 | "timeStamp": "1479094997",
134 | "blockReward": "5037531887125386230"
135 | },
136 | {
137 | "blockNumber": "2620849",
138 | "timeStamp": "1479061791",
139 | "blockReward": "5001449820524157080"
140 | },
141 | {
142 | "blockNumber": "2620401",
143 | "timeStamp": "1479055519",
144 | "blockReward": "5017784804505219936"
145 | },
146 | {
147 | "blockNumber": "2620223",
148 | "timeStamp": "1479053183",
149 | "blockReward": "5016743452592193200"
150 | },
151 | {
152 | "blockNumber": "2619602",
153 | "timeStamp": "1479044814",
154 | "blockReward": "5048257347055762800"
155 | },
156 | {
157 | "blockNumber": "2619248",
158 | "timeStamp": "1479039620",
159 | "blockReward": "5015020109730860860"
160 | },
161 | {
162 | "blockNumber": "2616908",
163 | "timeStamp": "1479006592",
164 | "blockReward": "5004965567064346903"
165 | },
166 | {
167 | "blockNumber": "2613519",
168 | "timeStamp": "1478959195",
169 | "blockReward": "5312500000000000000"
170 | },
171 | {
172 | "blockNumber": "2611583",
173 | "timeStamp": "1478931745",
174 | "blockReward": "5025140000000000000"
175 | },
176 | {
177 | "blockNumber": "2610998",
178 | "timeStamp": "1478923237",
179 | "blockReward": "5003300160000000000"
180 | },
181 | {
182 | "blockNumber": "2608964",
183 | "timeStamp": "1478893241",
184 | "blockReward": "5005775000000000000"
185 | },
186 | {
187 | "blockNumber": "2608003",
188 | "timeStamp": "1478879719",
189 | "blockReward": "5014280513000000000"
190 | },
191 | {
192 | "blockNumber": "2605458",
193 | "timeStamp": "1478843612",
194 | "blockReward": "5021600000000000000"
195 | },
196 | {
197 | "blockNumber": "2604437",
198 | "timeStamp": "1478828818",
199 | "blockReward": "5016790784000000000"
200 | },
201 | {
202 | "blockNumber": "2602203",
203 | "timeStamp": "1478796022",
204 | "blockReward": "5001050000000000000"
205 | },
206 | {
207 | "blockNumber": "2601042",
208 | "timeStamp": "1478779871",
209 | "blockReward": "5000630000000000000"
210 | },
211 | {
212 | "blockNumber": "2597278",
213 | "timeStamp": "1478724485",
214 | "blockReward": "5008721043000000000"
215 | },
216 | {
217 | "blockNumber": "2595078",
218 | "timeStamp": "1478692672",
219 | "blockReward": "5000000000000000000"
220 | },
221 | {
222 | "blockNumber": "2594874",
223 | "timeStamp": "1478689944",
224 | "blockReward": "5010360855000000000"
225 | },
226 | {
227 | "blockNumber": "2594085",
228 | "timeStamp": "1478678111",
229 | "blockReward": "5000630000000000000"
230 | },
231 | {
232 | "blockNumber": "2589303",
233 | "timeStamp": "1478610346",
234 | "blockReward": "5000000000000000000"
235 | },
236 | {
237 | "blockNumber": "2587630",
238 | "timeStamp": "1478587725",
239 | "blockReward": "5000000000000000000"
240 | },
241 | {
242 | "blockNumber": "2587492",
243 | "timeStamp": "1478585672",
244 | "blockReward": "5001601206408472790"
245 | },
246 | {
247 | "blockNumber": "2582792",
248 | "timeStamp": "1478520234",
249 | "blockReward": "5001365501320122590"
250 | },
251 | {
252 | "blockNumber": "2582768",
253 | "timeStamp": "1478519832",
254 | "blockReward": "5000000000000000000"
255 | },
256 | {
257 | "blockNumber": "2581395",
258 | "timeStamp": "1478501446",
259 | "blockReward": "5000000000000000000"
260 | },
261 | {
262 | "blockNumber": "2579198",
263 | "timeStamp": "1478470813",
264 | "blockReward": "5000000000000000000"
265 | },
266 | {
267 | "blockNumber": "2578350",
268 | "timeStamp": "1478459287",
269 | "blockReward": "5000483000000000000"
270 | },
271 | {
272 | "blockNumber": "2576465",
273 | "timeStamp": "1478432623",
274 | "blockReward": "5006452108349175690"
275 | },
276 | {
277 | "blockNumber": "2575994",
278 | "timeStamp": "1478426031",
279 | "blockReward": "5002825220000000000"
280 | },
281 | {
282 | "blockNumber": "2572117",
283 | "timeStamp": "1478369850",
284 | "blockReward": "5000000000000000000"
285 | },
286 | {
287 | "blockNumber": "2571754",
288 | "timeStamp": "1478364393",
289 | "blockReward": "5001050000000000000"
290 | },
291 | {
292 | "blockNumber": "2571378",
293 | "timeStamp": "1478358931",
294 | "blockReward": "5005182900000000000"
295 | },
296 | {
297 | "blockNumber": "2570394",
298 | "timeStamp": "1478344317",
299 | "blockReward": "5005480530693425990"
300 | },
301 | {
302 | "blockNumber": "2570289",
303 | "timeStamp": "1478342639",
304 | "blockReward": "5001260000000000000"
305 | },
306 | {
307 | "blockNumber": "2569628",
308 | "timeStamp": "1478333545",
309 | "blockReward": "5006822799808940516"
310 | },
311 | {
312 | "blockNumber": "2569427",
313 | "timeStamp": "1478330896",
314 | "blockReward": "5003461277779839662"
315 | },
316 | {
317 | "blockNumber": "2568897",
318 | "timeStamp": "1478323342",
319 | "blockReward": "5000000000000000000"
320 | },
321 | {
322 | "blockNumber": "2568870",
323 | "timeStamp": "1478323001",
324 | "blockReward": "5000000000000000000"
325 | },
326 | {
327 | "blockNumber": "2568643",
328 | "timeStamp": "1478319642",
329 | "blockReward": "5000630000000000000"
330 | },
331 | {
332 | "blockNumber": "2568175",
333 | "timeStamp": "1478312941",
334 | "blockReward": "5008917480000000000"
335 | },
336 | {
337 | "blockNumber": "2565878",
338 | "timeStamp": "1478278671",
339 | "blockReward": "5157300000000000000"
340 | },
341 | {
342 | "blockNumber": "2565499",
343 | "timeStamp": "1478273386",
344 | "blockReward": "5003463055555517390"
345 | },
346 | {
347 | "blockNumber": "2565449",
348 | "timeStamp": "1478272616",
349 | "blockReward": "5000000000000000000"
350 | },
351 | {
352 | "blockNumber": "2559919",
353 | "timeStamp": "1478192265",
354 | "blockReward": "5159235850000000000"
355 | },
356 | {
357 | "blockNumber": "2559848",
358 | "timeStamp": "1478191242",
359 | "blockReward": "5019833328674076332"
360 | },
361 | {
362 | "blockNumber": "2559789",
363 | "timeStamp": "1478190244",
364 | "blockReward": "5017437162283654730"
365 | },
366 | {
367 | "blockNumber": "2556923",
368 | "timeStamp": "1478149119",
369 | "blockReward": "5001370514963904520"
370 | },
371 | {
372 | "blockNumber": "2555381",
373 | "timeStamp": "1478126293",
374 | "blockReward": "5000000000000000000"
375 | },
376 | {
377 | "blockNumber": "2554840",
378 | "timeStamp": "1478118596",
379 | "blockReward": "5000572500000000000"
380 | },
381 | {
382 | "blockNumber": "2553732",
383 | "timeStamp": "1478102777",
384 | "blockReward": "5004149254000000000"
385 | },
386 | {
387 | "blockNumber": "2552154",
388 | "timeStamp": "1478079976",
389 | "blockReward": "5007490760224892420"
390 | },
391 | {
392 | "blockNumber": "2551689",
393 | "timeStamp": "1478073499",
394 | "blockReward": "5000525000000000000"
395 | },
396 | {
397 | "blockNumber": "2551566",
398 | "timeStamp": "1478071815",
399 | "blockReward": "5005249234452762580"
400 | },
401 | {
402 | "blockNumber": "2551317",
403 | "timeStamp": "1478067902",
404 | "blockReward": "5007174489283419002"
405 | },
406 | {
407 | "blockNumber": "2549087",
408 | "timeStamp": "1478034629",
409 | "blockReward": "5000630696828489000"
410 | },
411 | {
412 | "blockNumber": "2548741",
413 | "timeStamp": "1478029790",
414 | "blockReward": "5171767179995700000"
415 | },
416 | {
417 | "blockNumber": "2545814",
418 | "timeStamp": "1477986384",
419 | "blockReward": "5004573292002100000"
420 | },
421 | {
422 | "blockNumber": "2537178",
423 | "timeStamp": "1477862634",
424 | "blockReward": "5001890000000000000"
425 | },
426 | {
427 | "blockNumber": "2535977",
428 | "timeStamp": "1477845987",
429 | "blockReward": "5000000000000000000"
430 | },
431 | {
432 | "blockNumber": "2535314",
433 | "timeStamp": "1477836992",
434 | "blockReward": "5028022219859376171"
435 | },
436 | {
437 | "blockNumber": "2534558",
438 | "timeStamp": "1477826617",
439 | "blockReward": "5000000000000000000"
440 | },
441 | {
442 | "blockNumber": "2534345",
443 | "timeStamp": "1477823205",
444 | "blockReward": "5000000000000000000"
445 | },
446 | {
447 | "blockNumber": "2528144",
448 | "timeStamp": "1477731070",
449 | "blockReward": "5013512613018051300"
450 | },
451 | {
452 | "blockNumber": "2520876",
453 | "timeStamp": "1477623653",
454 | "blockReward": "5003871536553332000"
455 | },
456 | {
457 | "blockNumber": "2520416",
458 | "timeStamp": "1477616505",
459 | "blockReward": "5002523635000000000"
460 | },
461 | {
462 | "blockNumber": "2519399",
463 | "timeStamp": "1477601721",
464 | "blockReward": "5000915767999916000"
465 | },
466 | {
467 | "blockNumber": "2517315",
468 | "timeStamp": "1477571709",
469 | "blockReward": "5001421546380968000"
470 | },
471 | {
472 | "blockNumber": "2514582",
473 | "timeStamp": "1477532667",
474 | "blockReward": "5013509399823209520"
475 | },
476 | {
477 | "blockNumber": "2514472",
478 | "timeStamp": "1477531051",
479 | "blockReward": "5000449797501356000"
480 | },
481 | {
482 | "blockNumber": "2514254",
483 | "timeStamp": "1477528007",
484 | "blockReward": "5001365000000000000"
485 | },
486 | {
487 | "blockNumber": "2512085",
488 | "timeStamp": "1477497262",
489 | "blockReward": "5021645534869117867"
490 | },
491 | {
492 | "blockNumber": "2510433",
493 | "timeStamp": "1477473561",
494 | "blockReward": "5029964141803944908"
495 | },
496 | {
497 | "blockNumber": "2508900",
498 | "timeStamp": "1477452401",
499 | "blockReward": "5004643569479670000"
500 | },
501 | {
502 | "blockNumber": "2508774",
503 | "timeStamp": "1477450500",
504 | "blockReward": "5005739467000000000"
505 | },
506 | {
507 | "blockNumber": "2505211",
508 | "timeStamp": "1477399064",
509 | "blockReward": "5066516880499707690"
510 | }
511 | ]
512 | }
--------------------------------------------------------------------------------
/logs/standard/get_normal_txs_by_address_paginated.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_normal_txs_by_address_paginated",
3 | "module": "accounts",
4 | "kwargs": {
5 | "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
6 | "startblock": 0,
7 | "endblock": 99999999,
8 | "page": 1,
9 | "offset": 10,
10 | "sort": "asc"
11 | },
12 | "log_timestamp": "2020-10-28-12:34:31",
13 | "res": [
14 | {
15 | "blockNumber": "0",
16 | "timeStamp": "1438269973",
17 | "hash": "GENESIS_ddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
18 | "nonce": "",
19 | "blockHash": "",
20 | "transactionIndex": "0",
21 | "from": "GENESIS",
22 | "to": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
23 | "value": "10000000000000000000000",
24 | "gas": "0",
25 | "gasPrice": "0",
26 | "isError": "0",
27 | "txreceipt_status": "",
28 | "input": "",
29 | "contractAddress": "",
30 | "cumulativeGasUsed": "0",
31 | "gasUsed": "0",
32 | "confirmations": "11145142"
33 | },
34 | {
35 | "blockNumber": "47884",
36 | "timeStamp": "1438947953",
37 | "hash": "0xad1c27dd8d0329dbc400021d7477b34ac41e84365bd54b45a4019a15deb10c0d",
38 | "nonce": "0",
39 | "blockHash": "0xf2988b9870e092f2898662ccdbc06e0e320a08139e9c6be98d0ce372f8611f22",
40 | "transactionIndex": "0",
41 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
42 | "to": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2",
43 | "value": "5000000000000000000",
44 | "gas": "23000",
45 | "gasPrice": "400000000000",
46 | "isError": "0",
47 | "txreceipt_status": "",
48 | "input": "0x454e34354139455138",
49 | "contractAddress": "",
50 | "cumulativeGasUsed": "21612",
51 | "gasUsed": "21612",
52 | "confirmations": "11097258"
53 | },
54 | {
55 | "blockNumber": "47894",
56 | "timeStamp": "1438948043",
57 | "hash": "0x7e1503d2001cab2f432b56a62a3ee874782c8e33cbd79a664d155a758c1784a2",
58 | "nonce": "1",
59 | "blockHash": "0x2d0a9228f22fe85596d246040d4fd7dc6b1a55920bae02b68e731d55a890b315",
60 | "transactionIndex": "0",
61 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
62 | "to": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2",
63 | "value": "9001000000000000000000",
64 | "gas": "23000",
65 | "gasPrice": "400000000000",
66 | "isError": "0",
67 | "txreceipt_status": "",
68 | "input": "0x454e34354139455138",
69 | "contractAddress": "",
70 | "cumulativeGasUsed": "21612",
71 | "gasUsed": "21612",
72 | "confirmations": "11097248"
73 | },
74 | {
75 | "blockNumber": "49099",
76 | "timeStamp": "1438968015",
77 | "hash": "0xfa73feae5798f97ad1f2c01fa70424f90f2f4fa81d6fe9698bc4db2690b635fe",
78 | "nonce": "2",
79 | "blockHash": "0xc7e6738277354d82421c8430929c8566c4cac80ce8b2c15512dd226b1f47f146",
80 | "transactionIndex": "0",
81 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
82 | "to": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2",
83 | "value": "5000000000000000000",
84 | "gas": "23000",
85 | "gasPrice": "500000000000",
86 | "isError": "0",
87 | "txreceipt_status": "",
88 | "input": "0x454e34354139455138",
89 | "contractAddress": "",
90 | "cumulativeGasUsed": "21612",
91 | "gasUsed": "21612",
92 | "confirmations": "11096043"
93 | },
94 | {
95 | "blockNumber": "49109",
96 | "timeStamp": "1438968167",
97 | "hash": "0xb4b836183334510812525c79ee13722783452716f77b3fd5e4b1ec5a21f7a81e",
98 | "nonce": "3",
99 | "blockHash": "0x7549887277630a31450d802a944e8f28397b1e1f15867b6c75633675323633e4",
100 | "transactionIndex": "2",
101 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
102 | "to": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2",
103 | "value": "988950000000000000000",
104 | "gas": "23000",
105 | "gasPrice": "500000000000",
106 | "isError": "0",
107 | "txreceipt_status": "",
108 | "input": "0x454e34354139455138",
109 | "contractAddress": "",
110 | "cumulativeGasUsed": "64836",
111 | "gasUsed": "21612",
112 | "confirmations": "11096033"
113 | },
114 | {
115 | "blockNumber": "101773",
116 | "timeStamp": "1439827863",
117 | "hash": "0x70bc1a43c9e80caae6b69fe845ba1567826413a8e42d020837c3b09f9cad11c2",
118 | "nonce": "5",
119 | "blockHash": "0xe802363e95a7e4700058c64f308ff726eba63ec7a40083e65a0c8dd9124578fe",
120 | "transactionIndex": "5",
121 | "from": "0x1a56a50c378d21d0aa544ed9a482300c7f6e78ec",
122 | "to": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
123 | "value": "84512559000000000000000",
124 | "gas": "21000",
125 | "gasPrice": "100000000000",
126 | "isError": "0",
127 | "txreceipt_status": "",
128 | "input": "0x",
129 | "contractAddress": "",
130 | "cumulativeGasUsed": "126000",
131 | "gasUsed": "21000",
132 | "confirmations": "11043369"
133 | },
134 | {
135 | "blockNumber": "269968",
136 | "timeStamp": "1442872420",
137 | "hash": "0xf0ee803e146465fcebfe092041e187920832a474b1c989b36eee7e0dc6b3f09c",
138 | "nonce": "4",
139 | "blockHash": "0x4b55bddbcea00085a00903c0ddb31c2933923054a5f8ff080ec8a8bab2a33e1d",
140 | "transactionIndex": "0",
141 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
142 | "to": "0xc98756f014149787cee4f74328c4925dc0ce9779",
143 | "value": "700000000000000000000",
144 | "gas": "21000",
145 | "gasPrice": "300000000000",
146 | "isError": "0",
147 | "txreceipt_status": "",
148 | "input": "0x",
149 | "contractAddress": "",
150 | "cumulativeGasUsed": "21000",
151 | "gasUsed": "21000",
152 | "confirmations": "10875174"
153 | },
154 | {
155 | "blockNumber": "288379",
156 | "timeStamp": "1443187492",
157 | "hash": "0xda7d393b4995cec859e1fbcdb39dfc756e08b7efb17a658988bc6688fbccbc51",
158 | "nonce": "5",
159 | "blockHash": "0x65aaef94de624a53bc14c87d9a8aa668e50413ccfa2b3c9049befbba2084121b",
160 | "transactionIndex": "0",
161 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
162 | "to": "0x4b321f615455ca04969c5057f459a4dad42781ab",
163 | "value": "5001000000000000000000",
164 | "gas": "21000",
165 | "gasPrice": "300000000000",
166 | "isError": "0",
167 | "txreceipt_status": "",
168 | "input": "0x",
169 | "contractAddress": "",
170 | "cumulativeGasUsed": "21000",
171 | "gasUsed": "21000",
172 | "confirmations": "10856763"
173 | },
174 | {
175 | "blockNumber": "301131",
176 | "timeStamp": "1443411359",
177 | "hash": "0x66c11e721b0651c51524f63c085b342efa4a588b4a020530b44e2040242b95bd",
178 | "nonce": "6",
179 | "blockHash": "0x0fa3050e11114f71e88182877adf98c1c32ef714ff4dee2bd9c520d09fc5b65a",
180 | "transactionIndex": "0",
181 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
182 | "to": "0x4c3e0e3c46a5b7222060b774206c92f9cd60d338",
183 | "value": "7000000000000000000000",
184 | "gas": "21000",
185 | "gasPrice": "300000000000",
186 | "isError": "0",
187 | "txreceipt_status": "",
188 | "input": "0x",
189 | "contractAddress": "",
190 | "cumulativeGasUsed": "21000",
191 | "gasUsed": "21000",
192 | "confirmations": "10844011"
193 | },
194 | {
195 | "blockNumber": "305627",
196 | "timeStamp": "1443493144",
197 | "hash": "0xfba2e114f7c0d2b365c8af80e5206c6554e4a48e2001f61eaa4bf34ee79d9c30",
198 | "nonce": "7",
199 | "blockHash": "0xbbd6eea24bb6fd1fe7359a937c216665e396c5c80acadf833d50e0f622d0272e",
200 | "transactionIndex": "0",
201 | "from": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
202 | "to": "0x7e2592a940d9e751a98dd2dcc80d65935ec5b6c7",
203 | "value": "5000000000000000000000",
204 | "gas": "21000",
205 | "gasPrice": "300000000000",
206 | "isError": "0",
207 | "txreceipt_status": "",
208 | "input": "0x",
209 | "contractAddress": "",
210 | "cumulativeGasUsed": "21000",
211 | "gasUsed": "21000",
212 | "confirmations": "10839515"
213 | }
214 | ]
215 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_block_by_number.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_block_by_number",
3 | "module": "proxy",
4 | "kwargs": {
5 | "tag": "0x10d4f"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:21",
8 | "res": {
9 | "difficulty": "0x7",
10 | "extraData": "0xd58301090083626f7286676f312e3133856c696e7578000000000000000000009e035272bd6131a8a57d3822dfb88bde150008697fc840d9cdd718f1b805fab120edd985a2e2399bd8199a5d0507992ceba028015df03bfbebf9cc829f4537e401",
11 | "gasLimit": "0x1312d00",
12 | "gasUsed": "0x0",
13 | "hash": "0x495f55e4115be6687f66c00b3937fbd5c4d8d946649af03904abd8497ec22b1e",
14 | "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
15 | "miner": "0x7fcd58c2d53d980b247f1612fdba93e9a76193e6",
16 | "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
17 | "nonce": "0x0000000000000000",
18 | "number": "0x10d4f",
19 | "parentHash": "0xa738a2cdb5f8ffed270b7be598f367fddc03d22a62512510de021047521352be",
20 | "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
21 | "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
22 | "size": "0x262",
23 | "stateRoot": "0xfa99233ae57fb15a368c2d61b59f3ded114d497c719666f7910facee505bf4e1",
24 | "timestamp": "0x5ed4b578",
25 | "totalDifficulty": "0x75d2a",
26 | "transactions": [],
27 | "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
28 | "uncles": []
29 | }
30 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_block_number.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_block_number",
3 | "module": "proxy",
4 | "kwargs": {},
5 | "log_timestamp": "2021-09-20-02:15:20",
6 | "res": "0x1266501"
7 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_block_transaction_count_by_number.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_block_transaction_count_by_number",
3 | "module": "proxy",
4 | "kwargs": {
5 | "tag": "0x10FB78"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:22",
8 | "res": "0x0"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_call.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_call",
3 | "module": "proxy",
4 | "kwargs": {
5 | "to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0",
6 | "data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724"
7 | },
8 | "log_timestamp": "2021-09-20-02:15:26",
9 | "res": "0x"
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_code_at.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_code_at",
3 | "module": "proxy",
4 | "kwargs": {
5 | "address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:26",
8 | "res": "0x"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_est_gas.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_est_gas",
3 | "module": "proxy",
4 | "kwargs": {
5 | "data": "0x4e71d92d",
6 | "to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843",
7 | "value": "0xff22",
8 | "gas_price": "0x51da038cc",
9 | "gas": "0x5f5e0ff"
10 | },
11 | "log_timestamp": "2021-09-20-02:15:28",
12 | "res": "0x5248"
13 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_gas_price.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_gas_price",
3 | "module": "proxy",
4 | "kwargs": {},
5 | "log_timestamp": "2021-09-20-02:15:28",
6 | "res": "0x84528300"
7 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_storage_position_at.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_storage_position_at",
3 | "module": "proxy",
4 | "kwargs": {
5 | "position": "0x0",
6 | "address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd"
7 | },
8 | "log_timestamp": "2021-09-20-02:15:27",
9 | "res": "0x0000000000000000000000000000000000000000000000000000000000000000"
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_transaction_by_block_number_and_index.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_transaction_by_block_number_and_index",
3 | "module": "proxy",
4 | "kwargs": {
5 | "tag": "0x10d4f",
6 | "index": "0x0"
7 | },
8 | "log_timestamp": "2021-09-20-02:15:24",
9 | "res": null
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_transaction_by_hash.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_transaction_by_hash",
3 | "module": "proxy",
4 | "kwargs": {
5 | "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:23",
8 | "res": null
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_transaction_count.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_transaction_count",
3 | "module": "proxy",
4 | "kwargs": {
5 | "address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:24",
8 | "res": "0x0"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_transaction_receipt.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_transaction_receipt",
3 | "module": "proxy",
4 | "kwargs": {
5 | "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:25",
8 | "res": null
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_proxy_uncle_by_block_number_and_index.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_proxy_uncle_by_block_number_and_index",
3 | "module": "proxy",
4 | "kwargs": {
5 | "tag": "0x210A9B",
6 | "index": "0x0"
7 | },
8 | "log_timestamp": "2021-09-20-02:15:22",
9 | "res": null
10 | }
--------------------------------------------------------------------------------
/logs/standard/get_token_info_by_contract_address.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_token_info_by_contract_address",
3 | "module": "pro",
4 | "kwargs": {
5 | "contract_address": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07"
6 | },
7 | "log_timestamp": "2020-10-28-12:34:53",
8 | "res": [
9 | {
10 | "contractAddress": "0x0e3a2a1f2146d86a604adc220b4967a898d7fe07",
11 | "tokenName": "Gods Unchained Cards",
12 | "symbol": "CARD",
13 | "divisor": "0",
14 | "tokenType": "ERC721",
15 | "totalSupply": "6950384",
16 | "blueCheckmark": "true",
17 | "description": "A TCG on the Ethereum blockchain that uses NFT's to bring real ownership to in-game assets.",
18 | "website": "https://godsunchained.com/",
19 | "email": "",
20 | "blog": "https://medium.com/@fuelgames",
21 | "reddit": "https://www.reddit.com/r/GodsUnchained/",
22 | "slack": "",
23 | "facebook": "https://www.facebook.com/godsunchained/",
24 | "twitter": "https://twitter.com/godsunchained",
25 | "bitcointalk": "",
26 | "github": "",
27 | "telegram": "",
28 | "wechat": "",
29 | "linkedin": "",
30 | "discord": "https://discordapp.com/invite/DKGr2pW",
31 | "whitepaper": ""
32 | }
33 | ]
34 | }
--------------------------------------------------------------------------------
/logs/standard/get_total_eth_supply.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_total_eth_supply",
3 | "module": "stats",
4 | "kwargs": {},
5 | "log_timestamp": "2020-10-28-12:35:10",
6 | "res": "113192200624000000000000000"
7 | }
--------------------------------------------------------------------------------
/logs/standard/get_total_matic_supply.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_total_matic_supply",
3 | "module": "stats",
4 | "kwargs": {},
5 | "log_timestamp": "2021-09-20-02:15:29",
6 | "res": "6652300637100000000000000000"
7 | }
--------------------------------------------------------------------------------
/logs/standard/get_total_supply_by_contract_address.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_total_supply_by_contract_address",
3 | "module": "tokens",
4 | "kwargs": {
5 | "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:30",
8 | "res": "0"
9 | }
--------------------------------------------------------------------------------
/logs/standard/get_tx_receipt_status.json:
--------------------------------------------------------------------------------
1 | {
2 | "method": "get_tx_receipt_status",
3 | "module": "transactions",
4 | "kwargs": {
5 | "txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76"
6 | },
7 | "log_timestamp": "2021-09-20-02:15:33",
8 | "res": {
9 | "status": ""
10 | }
11 | }
--------------------------------------------------------------------------------
/polygonscan/__init__.py:
--------------------------------------------------------------------------------
1 | from .polygonscan import PolygonScan
2 | from .modules.accounts import Accounts as accounts
3 | from .modules.blocks import Blocks as blocks
4 | from .modules.contracts import Contracts as contracts
5 | from .modules.logs import Logs as logs
6 | from .modules.proxy import Proxy as proxy
7 | from .modules.stats import Stats as stats
8 | from .modules.tokens import Tokens as tokens
9 | from .modules.transactions import Transactions as transactions
10 |
--------------------------------------------------------------------------------
/polygonscan/configs/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tarsil/polygonscan-python/9de6b1378b07ce82dd298291e4a324ab0f560eab/polygonscan/configs/__init__.py
--------------------------------------------------------------------------------
/polygonscan/configs/stable.json:
--------------------------------------------------------------------------------
1 | {
2 | "get_proxy_block_number": {
3 | "module": "proxy",
4 | "kwargs": {}
5 | },
6 | "get_proxy_block_by_number": {
7 | "module": "proxy",
8 | "kwargs": {
9 | "tag": "0x10d4f"
10 | }
11 | },
12 | "get_proxy_uncle_by_block_number_and_index": {
13 | "module": "proxy",
14 | "kwargs": {
15 | "tag": "0x210A9B",
16 | "index": "0x0"
17 | }
18 | },
19 | "get_proxy_block_transaction_count_by_number": {
20 | "module": "proxy",
21 | "kwargs": {
22 | "tag": "0x10FB78"
23 | }
24 | },
25 | "get_proxy_transaction_by_hash": {
26 | "module": "proxy",
27 | "kwargs": {
28 | "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1"
29 | }
30 | },
31 | "get_proxy_transaction_by_block_number_and_index": {
32 | "module": "proxy",
33 | "kwargs": {
34 | "tag": "0x10d4f",
35 | "index": "0x0"
36 | }
37 | },
38 | "get_proxy_transaction_count": {
39 | "module": "proxy",
40 | "kwargs": {
41 | "address": "0x2910543af39aba0cd09dbb2d50200b3e800a63d2"
42 | }
43 | },
44 | "get_proxy_transaction_receipt": {
45 | "module": "proxy",
46 | "kwargs": {
47 | "txhash": "0x1e2910a262b1008d0616a0beb24c1a491d78771baa54a33e66065e03b1f46bc1"
48 | }
49 | },
50 | "get_proxy_call": {
51 | "module": "proxy",
52 | "kwargs": {
53 | "to": "0xAEEF46DB4855E25702F8237E8f403FddcaF931C0",
54 | "data": "0x70a08231000000000000000000000000e16359506c028e51f16be38986ec5746251e9724"
55 | }
56 | },
57 | "get_proxy_code_at": {
58 | "module": "proxy",
59 | "kwargs": {
60 | "address": "0xf75e354c5edc8efed9b59ee9f67a80845ade7d0c"
61 | }
62 | },
63 | "get_proxy_storage_position_at": {
64 | "module": "proxy",
65 | "kwargs": {
66 | "position": "0x0",
67 | "address": "0x6e03d9cce9d60f3e9f2597e13cd4c54c55330cfd"
68 | }
69 | },
70 | "get_proxy_gas_price": {
71 | "module": "proxy",
72 | "kwargs": {}
73 | },
74 | "get_proxy_est_gas": {
75 | "module": "proxy",
76 | "kwargs": {
77 | "data": "0x4e71d92d",
78 | "to": "0xf0160428a8552ac9bb7e050d90eeade4ddd52843",
79 | "value": "0xff22",
80 | "gas_price": "0x51da038cc",
81 | "gas": "0x5f5e0ff"
82 | }
83 | },
84 | "get_block_reward_by_block_number": {
85 | "module": "blocks",
86 | "kwargs": {
87 | "block_no": "2165403"
88 | }
89 | },
90 | "get_est_block_countdown_time_by_block_number": {
91 | "module": "blocks",
92 | "kwargs": {
93 | "block_no": "99999999"
94 | }
95 | },
96 | "get_block_number_by_timestamp": {
97 | "module": "blocks",
98 | "kwargs": {
99 | "timestamp": "1578638524",
100 | "closest": "before"
101 | }
102 | },
103 | "get_total_matic_supply": {
104 | "module": "stats",
105 | "kwargs": {}
106 | },
107 | "get_matic_last_price": {
108 | "module": "stats",
109 | "kwargs": {}
110 | },
111 | "get_total_supply_by_contract_address": {
112 | "module": "tokens",
113 | "kwargs": {
114 | "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055"
115 | }
116 | },
117 | "get_acc_balance_by_token_and_contract_address": {
118 | "module": "tokens",
119 | "kwargs": {
120 | "contract_address": "0x57d90b64a1a57749b0f932f1a3395792e12e7055",
121 | "address": "0xe04f27eb70e025b78871a2ad7eabe85e61212761"
122 | }
123 | },
124 | "get_contract_abi": {
125 | "module": "contracts",
126 | "kwargs": {
127 | "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"
128 | }
129 | },
130 | "get_contract_source_code": {
131 | "module": "contracts",
132 | "kwargs": {
133 | "address": "0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413"
134 | }
135 | },
136 | "get_contract_execution_status": {
137 | "module": "transactions",
138 | "kwargs": {
139 | "txhash": "0x15f8e5ea1079d9a0bb04a4c58ae5fe7654b5b2b4463375ff7ffb490aa0032f3a"
140 | }
141 | },
142 | "get_tx_receipt_status": {
143 | "module": "transactions",
144 | "kwargs": {
145 | "txhash": "0x513c1ba0bebf66436b5fed86ab668452b7805593c05073eb2d51d3a52f480a76"
146 | }
147 | },
148 | "get_matic_balance": {
149 | "module": "accounts",
150 | "kwargs": {
151 | "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a"
152 | }
153 | },
154 | "get_matic_balance_multiple": {
155 | "module": "accounts",
156 | "kwargs": {
157 | "addresses": [
158 | "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
159 | "0x63a9975ba31b0b9626b34300f7f627147df1f526",
160 | "0x198ef1ec325a96cc354c7266a038be8b5c558f67"
161 | ]
162 | }
163 | },
164 | "get_normal_txs_by_address": {
165 | "module": "accounts",
166 | "kwargs": {
167 | "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
168 | "startblock": 0,
169 | "endblock": 99999999,
170 | "sort": "asc"
171 | }
172 | },
173 | "get_normal_txs_by_address_paginated": {
174 | "module": "accounts",
175 | "kwargs": {
176 | "address": "0xddbd2b932c763ba5b1b7ae3b362eac3e8d40121a",
177 | "startblock": 0,
178 | "endblock": 99999999,
179 | "page": 1,
180 | "offset": 10,
181 | "sort": "asc"
182 | }
183 | },
184 | "get_internal_txs_by_address": {
185 | "module": "accounts",
186 | "kwargs": {
187 | "address": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
188 | "startblock": 0,
189 | "endblock": 2702578,
190 | "sort": "asc"
191 | }
192 | },
193 | "get_internal_txs_by_address_paginated": {
194 | "module": "accounts",
195 | "kwargs": {
196 | "address": "0x2c1ba59d6f58433fb1eaee7d20b26ed83bda51a3",
197 | "startblock": 0,
198 | "endblock": 2702578,
199 | "page": 1,
200 | "offset": 10,
201 | "sort": "asc"
202 | }
203 | },
204 | "get_internal_txs_by_txhash": {
205 | "module": "accounts",
206 | "kwargs": {
207 | "txhash": "0x40eb908387324f2b575b4879cd9d7188f69c8fc9d87c901b9e2daaea4b442170"
208 | }
209 | },
210 | "get_internal_txs_by_block_range_paginated": {
211 | "module": "accounts",
212 | "kwargs": {
213 | "startblock": 0,
214 | "endblock": 2702578,
215 | "page": 1,
216 | "offset": 10,
217 | "sort": "asc"
218 | }
219 | },
220 | "get_erc20_token_transfer_events_by_address": {
221 | "module": "accounts",
222 | "kwargs": {
223 | "address": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
224 | "startblock": 0,
225 | "endblock": 999999999,
226 | "sort": "asc"
227 | }
228 | },
229 | "get_erc20_token_transfer_events_by_address_paginated": {
230 | "module": "accounts",
231 | "kwargs": {
232 | "address": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
233 | "startblock": 0,
234 | "endblock": 999999999,
235 | "page": 1,
236 | "offset": 10,
237 | "sort": "asc"
238 | }
239 | },
240 | "get_erc20_token_transfer_events_by_contract_address_paginated": {
241 | "module": "accounts",
242 | "kwargs": {
243 | "contract_address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
244 | "page": 1,
245 | "offset": 100,
246 | "sort": "asc"
247 | }
248 | },
249 | "get_erc20_token_transfer_events_by_address_and_contract_paginated": {
250 | "module": "accounts",
251 | "kwargs": {
252 | "contract_address": "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
253 | "address": "0x4e83362442b8d1bec281594cea3050c8eb01311c",
254 | "page": 1,
255 | "offset": 100,
256 | "sort": "asc"
257 | }
258 | },
259 | "get_erc721_token_transfer_events_by_address": {
260 | "module": "accounts",
261 | "kwargs": {
262 | "address": "0x6975be450864c02b4613023c2152ee0743572325",
263 | "startblock": 0,
264 | "endblock": 999999999,
265 | "sort": "asc"
266 | }
267 | },
268 | "get_erc721_token_transfer_events_by_contract_address_paginated": {
269 | "module": "accounts",
270 | "kwargs": {
271 | "contract_address": "0x06012c8cf97bead5deae237070f9587f8e7a266d",
272 | "page": 1,
273 | "offset": 100,
274 | "sort": "asc"
275 | }
276 | },
277 | "get_erc721_token_transfer_events_by_address_and_contract_paginated": {
278 | "module": "accounts",
279 | "kwargs": {
280 | "contract_address": "0x06012c8cf97bead5deae237070f9587f8e7a266d",
281 | "address": "0x6975be450864c02b4613023c2152ee0743572325",
282 | "page": 1,
283 | "offset": 100,
284 | "sort": "asc"
285 | }
286 | },
287 | "get_mined_blocks_by_address": {
288 | "module": "accounts",
289 | "kwargs": {
290 | "address": "0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b"
291 | }
292 | },
293 | "get_mined_blocks_by_address_paginated": {
294 | "module": "accounts",
295 | "kwargs": {
296 | "address": "0x9dd134d14d1e65f84b706d6f205cd5b1cd03a46b",
297 | "page": 1,
298 | "offset": 100
299 | }
300 | }
301 | }
--------------------------------------------------------------------------------
/polygonscan/core/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tarsil/polygonscan-python/9de6b1378b07ce82dd298291e4a324ab0f560eab/polygonscan/core/__init__.py
--------------------------------------------------------------------------------
/polygonscan/core/async_client.py:
--------------------------------------------------------------------------------
1 | import polygonscan
2 | from aiohttp import ClientSession, ClientTimeout
3 | from polygonscan.core.base import BaseClient
4 | from polygonscan.enums.fields_enum import FieldsEnum as fields
5 | from polygonscan.utils.parsing import ResponseParser as parser
6 |
7 |
8 | class AsyncClient(BaseClient):
9 | async def _build(self):
10 | for func, v in self._config.items():
11 | if not func.startswith("_"): # disabled if _
12 | attr = getattr(getattr(polygonscan, v["module"]), func)
13 | setattr(self, func, await self._exec(attr))
14 | return self
15 |
16 | async def _exec(self, func):
17 | async def wrapper(*args, **kwargs):
18 | url = (
19 | f"{fields.PREFIX}"
20 | f"{func(*args, **kwargs)}"
21 | f"{fields.API_KEY}"
22 | f"{self._api_key}"
23 | )
24 | if self._debug:
25 | print(f"\n{url}\n")
26 | async with self._session.get(url) as response:
27 | return parser.parse(await response.json())
28 |
29 | return wrapper
30 |
31 | async def __aenter__(self):
32 | if self._timeout:
33 | timeout = ClientTimeout(total=self._timeout)
34 | else:
35 | timeout = None
36 | self._session = ClientSession(timeout=timeout)
37 | return await self._build()
38 |
39 | async def __aexit__(self, exc_type, exc_val, exc_tb):
40 | await self._session.close()
41 |
42 | @classmethod
43 | async def from_session(cls, api_key: str, session: ClientSession, **kwargs):
44 | client = AsyncClient(api_key, **kwargs)
45 | client._session = session
46 | return await client._build()
--------------------------------------------------------------------------------
/polygonscan/core/base.py:
--------------------------------------------------------------------------------
1 | import json
2 | from importlib import resources
3 |
4 | from polygonscan import configs
5 |
6 | CONFIG_FILE = "stable.json"
7 |
8 |
9 | class BaseClient:
10 | def __init__(
11 | self,
12 | api_key: str,
13 | debug: bool = False, # display generated URLs for debugging purposes
14 | timeout: int = None, # timeout for requests (None - no timeout, for backward compatibility)
15 | ):
16 | self._config = self._load_config()
17 | self._api_key = api_key
18 | self._debug = debug
19 | self._timeout = timeout
20 |
21 | @staticmethod
22 | def _load_config(config_file: str = CONFIG_FILE) -> dict:
23 | with resources.path(configs, config_file) as path, open(path, "r") as f:
24 | return json.load(f)
--------------------------------------------------------------------------------
/polygonscan/core/sync_client.py:
--------------------------------------------------------------------------------
1 | import polygonscan
2 | from polygonscan.core.base import BaseClient
3 | from polygonscan.enums.fields_enum import FieldsEnum as fields
4 | from polygonscan.utils.parsing import ResponseParser as parser
5 | from requests import Session
6 |
7 |
8 | class SyncClient(BaseClient):
9 | def _build(self):
10 | for func, v in self._config.items():
11 | if not func.startswith("_"): # disabled if _
12 | attr = getattr(getattr(polygonscan, v["module"]), func)
13 | setattr(self, func, self._exec(attr))
14 | return self
15 |
16 | def _exec(self, func):
17 | def wrapper(*args, **kwargs):
18 | url = (
19 | f"{fields.PREFIX}"
20 | f"{func(*args, **kwargs)}"
21 | f"{fields.API_KEY}"
22 | f"{self._api_key}"
23 | )
24 | if self._debug:
25 | print(f"\n{url}\n")
26 | with self._session.get(url, timeout=self._timeout) as response:
27 | return parser.parse(response.json())
28 |
29 | return wrapper
30 |
31 | def __enter__(self):
32 | self._session = Session()
33 | return self._build()
34 |
35 | def __exit__(self, exc_type, exc_val, exc_tb):
36 | self._session.close()
37 |
38 | @classmethod
39 | def from_session(cls, api_key: str, session: Session, **kwargs):
40 | client = SyncClient(api_key, **kwargs)
41 | client._session = session
42 | return client._build()
--------------------------------------------------------------------------------
/polygonscan/enums/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tarsil/polygonscan-python/9de6b1378b07ce82dd298291e4a324ab0f560eab/polygonscan/enums/__init__.py
--------------------------------------------------------------------------------
/polygonscan/enums/actions_enum.py:
--------------------------------------------------------------------------------
1 | from dataclasses import dataclass
2 |
3 |
4 | @dataclass(frozen=True)
5 | class ActionsEnum:
6 | BALANCE_HISTORY: str = "balancehistory"
7 | BALANCE_MULTI: str = "balancemulti"
8 | BALANCE: str = "balance"
9 | CHAIN_SIZE: str = "chainsize"
10 | DAILY_AVG_BLOCK_SIZE: str = "dailyavgblocksize"
11 | DAILY_AVG_BLOCK_TIME: str = "dailyavgblocktime"
12 | DAILY_AVG_GAS_LIMIT: str = "dailyavggaslimit"
13 | DAILY_AVG_GAS_PRICE: str = "dailyavggasprice"
14 | DAILY_AVG_HASH_RATE: str = "dailyavghashrate"
15 | DAILY_AVG_NET_DIFFICULTY: str = "dailyavgnetdifficulty"
16 | DAILY_BLK_COUNT: str = "dailyblkcount"
17 | DAILY_BLOCK_REWARDS: str = "dailyblockrewards"
18 | DAILY_GAS_USED: str = "dailygasused"
19 | DAILY_NET_UTILIZATION: str = "dailynetutilization"
20 | DAILY_NEW_ADDRESS: str = "dailynewaddress"
21 | DAILY_TX: str = "dailytx"
22 | DAILY_TXN_FEE: str = "dailytxnfee"
23 | DAILY_UNCLE_BLK_COUNT: str = "dailyuncleblkcount"
24 | ETH_BLOCK_NUMBER: str = "eth_blockNumber"
25 | ETH_CALL: str = "eth_call"
26 | ETH_DAILY_MARKET_CAP: str = "ethdailymarketcap"
27 | ETH_DAILY_PRICE: str = "ethdailyprice"
28 | ETH_ESTIMATE_GAS: str = "eth_estimateGas"
29 | ETH_GAS_PRICE: str = "eth_gasPrice"
30 | ETH_GET_BLOCK_BY_NUMBER: str = "eth_getBlockByNumber"
31 | ETH_GET_BLOCK_TRANSACTION_COUNT_BY_NUMBER: str = (
32 | "eth_getBlockTransactionCountByNumber"
33 | )
34 | ETH_GET_CODE: str = "eth_getCode"
35 | ETH_GET_STORAGE_AT: str = "eth_getStorageAt"
36 | ETH_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX: str = (
37 | "eth_getTransactionByBlockNumberAndIndex"
38 | )
39 | ETH_GET_TRANSACTION_BY_HASH: str = "eth_getTransactionByHash"
40 | ETH_GET_TRANSACTION_COUNT: str = "eth_getTransactionCount"
41 | ETH_GET_TRANSACTION_RECEIPT: str = "eth_getTransactionReceipt"
42 | ETH_GET_UNCLE_BY_BLOCK_NUMBER_AND_INDEX: str = "eth_getUncleByBlockNumberAndIndex"
43 | ETH_PRICE: str = "ethprice"
44 | ETH_SUPPLY: str = "ethsupply"
45 | GAS_ESTIMATE: str = "gasestimate"
46 | GAS_ORACLE: str = "gasoracle"
47 | GET_ABI: str = "getabi"
48 | GET_BLOCK_COUNTDOWN: str = "getblockcountdown"
49 | GET_BLOCK_NUMBER_BY_TIME: str = "getblocknobytime"
50 | GET_BLOCK_REWARD: str = "getblockreward"
51 | GET_MINED_BLOCKS: str = "getminedblocks"
52 | GET_SOURCE_CODE: str = "getsourcecode"
53 | GET_STATUS: str = "getstatus"
54 | GET_TX_RECEIPT_STATUS: str = "gettxreceiptstatus"
55 | TOKEN_BALANCE_HISTORY: str = "tokenbalancehistory"
56 | TOKEN_BALANCE: str = "tokenbalance"
57 | TOKEN_INFO: str = "tokeninfo"
58 | TOKEN_SUPPLY_HISTORY: str = "tokensupplyhistory"
59 | TOKEN_SUPPLY: str = "tokensupply"
60 | TOKENNFTTX: str = "tokennfttx"
61 | TOKENTX: str = "tokentx"
62 | TXLIST_INTERNAL: str = "txlistinternal"
63 | TXLIST: str = "txlist"
64 |
--------------------------------------------------------------------------------
/polygonscan/enums/fields_enum.py:
--------------------------------------------------------------------------------
1 | from dataclasses import dataclass
2 |
3 |
4 | @dataclass(frozen=True)
5 | class FieldsEnum:
6 | ACTION: str = "&action="
7 | ADDRESS: str = "&address="
8 | API_KEY: str = "&apikey="
9 | BLOCK_TYPE: str = "&blocktype="
10 | BLOCKNO: str = "&blockno="
11 | BOOLEAN: str = "&boolean="
12 | CLIENT_TYPE: str = "&clienttype="
13 | CLOSEST: str = "&closest="
14 | CONTRACT_ADDRESS: str = "&contractaddress="
15 | DATA: str = "&data="
16 | END_BLOCK: str = "&endblock="
17 | END_DATE: str = "&enddate="
18 | GAS_PRICE: str = "&gasPrice="
19 | GAS: str = "&gas="
20 | HEX: str = "&hex="
21 | INDEX: str = "&index="
22 | MODULE: str = "module="
23 | OFFSET: str = "&offset="
24 | PAGE: str = "&page="
25 | POSITION: str = "&position="
26 | PREFIX: str = "https://api.polygonscan.com/api?"
27 | SORT: str = "&sort="
28 | START_BLOCK: str = "&startblock="
29 | START_DATE: str = "&startdate="
30 | SYNC_MODE: str = "&syncmode="
31 | TAG: str = "&tag="
32 | TIMESTAMP: str = "×tamp="
33 | TO: str = "&to="
34 | TXHASH: str = "&txhash="
35 | VALUE: str = "&value="
36 |
--------------------------------------------------------------------------------
/polygonscan/enums/modules_enum.py:
--------------------------------------------------------------------------------
1 | from dataclasses import dataclass
2 |
3 |
4 | @dataclass(frozen=True)
5 | class ModulesEnum:
6 | ACCOUNT: str = "account"
7 | BLOCK: str = "block"
8 | CONTRACT: str = "contract"
9 | GASTRACKER: str = "gastracker"
10 | PROXY: str = "proxy"
11 | LOGS: str = "logs"
12 | STATS: str = "stats"
13 | TOKEN: str = "token"
14 | TRANSACTION: str = "transaction"
15 |
16 |
--------------------------------------------------------------------------------
/polygonscan/enums/tags_enum.py:
--------------------------------------------------------------------------------
1 | from dataclasses import dataclass
2 |
3 |
4 | @dataclass(frozen=True)
5 | class TagsEnum:
6 | ACCOUNT: str = "account"
7 | LATEST: str = "latest"
8 |
--------------------------------------------------------------------------------
/polygonscan/modules/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tarsil/polygonscan-python/9de6b1378b07ce82dd298291e4a324ab0f560eab/polygonscan/modules/__init__.py
--------------------------------------------------------------------------------
/polygonscan/modules/accounts.py:
--------------------------------------------------------------------------------
1 | from functools import reduce
2 | from typing import List
3 |
4 | from polygonscan.enums.actions_enum import ActionsEnum as actions
5 | from polygonscan.enums.fields_enum import FieldsEnum as fields
6 | from polygonscan.enums.modules_enum import ModulesEnum as modules
7 | from polygonscan.enums.tags_enum import TagsEnum as tags
8 |
9 |
10 | class Accounts:
11 | @staticmethod
12 | def get_matic_balance(address: str) -> str:
13 | url = (
14 | f"{fields.MODULE}"
15 | f"{modules.ACCOUNT}"
16 | f"{fields.ACTION}"
17 | f"{actions.BALANCE}"
18 | f"{fields.ADDRESS}"
19 | f"{address}"
20 | f"{fields.TAG}"
21 | f"{tags.LATEST}"
22 | )
23 | return url
24 |
25 | @staticmethod
26 | def get_matic_balance_multiple(addresses: List[str]) -> str:
27 | # NOTE: Max 20 wallets at a time
28 | address_list = reduce(lambda w1, w2: str(w1) + "," + str(w2), addresses)
29 | url = (
30 | f"{fields.MODULE}"
31 | f"{modules.ACCOUNT}"
32 | f"{fields.ACTION}"
33 | f"{actions.BALANCE_MULTI}"
34 | f"{fields.ADDRESS}"
35 | f"{address_list}"
36 | f"{fields.TAG}"
37 | f"{tags.LATEST}"
38 | )
39 | return url
40 | # r = requests.get(url)
41 | # return [conversions.to_ticker_unit(r["balance"]) for r in parser.get_result(r)]
42 |
43 | @staticmethod
44 | def get_normal_txs_by_address(
45 | address: str, startblock: int, endblock: int, sort: str,
46 | ) -> str:
47 | # NOTE: Returns the last 10k events
48 | url = (
49 | f"{fields.MODULE}"
50 | f"{modules.ACCOUNT}"
51 | f"{fields.ACTION}"
52 | f"{actions.TXLIST}"
53 | f"{fields.ADDRESS}"
54 | f"{address}"
55 | f"{fields.START_BLOCK}"
56 | f"{str(startblock)}"
57 | f"{fields.END_BLOCK}"
58 | f"{str(endblock)}"
59 | f"{fields.SORT}"
60 | f"{sort}"
61 | )
62 | return url
63 |
64 | @staticmethod
65 | def get_normal_txs_by_address_paginated(
66 | address: str, page: int, offset: int, startblock: int, endblock: int, sort: str,
67 | ) -> str:
68 | url = (
69 | f"{fields.MODULE}"
70 | f"{modules.ACCOUNT}"
71 | f"{fields.ACTION}"
72 | f"{actions.TXLIST}"
73 | f"{fields.ADDRESS}"
74 | f"{address}"
75 | f"{fields.START_BLOCK}"
76 | f"{str(startblock)}"
77 | f"{fields.END_BLOCK}"
78 | f"{str(endblock)}"
79 | f"{fields.SORT}"
80 | f"{sort}"
81 | f"{fields.PAGE}"
82 | f"{str(page)}"
83 | f"{fields.OFFSET}"
84 | f"{str(offset)}"
85 | )
86 | return url
87 |
88 | @staticmethod
89 | def get_internal_txs_by_address(
90 | address: str, startblock: int, endblock: int, sort: str,
91 | ) -> str:
92 | # NOTE: Returns the last 10k events
93 | url = (
94 | f"{fields.MODULE}"
95 | f"{modules.ACCOUNT}"
96 | f"{fields.ACTION}"
97 | f"{actions.TXLIST_INTERNAL}"
98 | f"{fields.ADDRESS}"
99 | f"{address}"
100 | f"{fields.START_BLOCK}"
101 | f"{str(startblock)}"
102 | f"{fields.END_BLOCK}"
103 | f"{str(endblock)}"
104 | f"{fields.SORT}"
105 | f"{sort}"
106 | )
107 | return url
108 |
109 | @staticmethod
110 | def get_internal_txs_by_address_paginated(
111 | address: str, page: int, offset: int, startblock: int, endblock: int, sort: str,
112 | ) -> str:
113 | url = (
114 | f"{fields.MODULE}"
115 | f"{modules.ACCOUNT}"
116 | f"{fields.ACTION}"
117 | f"{actions.TXLIST_INTERNAL}"
118 | f"{fields.ADDRESS}"
119 | f"{address}"
120 | f"{fields.START_BLOCK}"
121 | f"{str(startblock)}"
122 | f"{fields.END_BLOCK}"
123 | f"{str(endblock)}"
124 | f"{fields.SORT}"
125 | f"{sort}"
126 | f"{fields.PAGE}"
127 | f"{str(page)}"
128 | f"{fields.OFFSET}"
129 | f"{str(offset)}"
130 | )
131 | return url
132 |
133 | @staticmethod
134 | def get_internal_txs_by_txhash(txhash: str) -> str:
135 | # NOTE: Returns the last 10k events
136 | url = (
137 | f"{fields.MODULE}"
138 | f"{modules.ACCOUNT}"
139 | f"{fields.ACTION}"
140 | f"{actions.TXLIST_INTERNAL}"
141 | f"{fields.TXHASH}"
142 | f"{txhash}"
143 | )
144 | return url
145 |
146 | @staticmethod
147 | def get_internal_txs_by_block_range_paginated(
148 | startblock: int, endblock: int, page: int, offset: int, sort: str,
149 | ) -> str:
150 | # NOTE: Returns the last 10k events
151 | url = (
152 | f"{fields.MODULE}"
153 | f"{modules.ACCOUNT}"
154 | f"{fields.ACTION}"
155 | f"{actions.TXLIST_INTERNAL}"
156 | f"{fields.START_BLOCK}"
157 | f"{str(startblock)}"
158 | f"{fields.END_BLOCK}"
159 | f"{str(endblock)}"
160 | f"{fields.SORT}"
161 | f"{sort}"
162 | f"{fields.PAGE}"
163 | f"{str(page)}"
164 | f"{fields.OFFSET}"
165 | f"{str(offset)}"
166 | )
167 | return url
168 |
169 | @staticmethod
170 | def get_erc20_token_transfer_events_by_address(
171 | address: str, startblock: int, endblock: int, sort: str,
172 | ) -> str:
173 | # NOTE: Returns the last 10k events
174 | url = (
175 | f"{fields.MODULE}"
176 | f"{modules.ACCOUNT}"
177 | f"{fields.ACTION}"
178 | f"{actions.TOKENTX}"
179 | f"{fields.ADDRESS}"
180 | f"{address}"
181 | f"{fields.START_BLOCK}"
182 | f"{str(startblock)}"
183 | f"{fields.END_BLOCK}"
184 | f"{str(endblock)}"
185 | f"{fields.SORT}"
186 | f"{sort}"
187 | )
188 | return url
189 |
190 | @staticmethod
191 | def get_erc20_token_transfer_events_by_address_paginated(
192 | address: str, page: int, offset: int, startblock: int, endblock: int, sort: str,
193 | ) -> str:
194 | # NOTE: Returns the last 10k events
195 | url = (
196 | f"{fields.MODULE}"
197 | f"{modules.ACCOUNT}"
198 | f"{fields.ACTION}"
199 | f"{actions.TOKENTX}"
200 | f"{fields.ADDRESS}"
201 | f"{address}"
202 | f"{fields.START_BLOCK}"
203 | f"{str(startblock)}"
204 | f"{fields.END_BLOCK}"
205 | f"{str(endblock)}"
206 | f"{fields.SORT}"
207 | f"{sort}"
208 | f"{fields.PAGE}"
209 | f"{str(page)}"
210 | f"{fields.OFFSET}"
211 | f"{str(offset)}"
212 | )
213 | return url
214 |
215 | @staticmethod
216 | def get_erc20_token_transfer_events_by_contract_address_paginated(
217 | contract_address: str, page: int, offset: int, sort: str
218 | ) -> str:
219 |
220 | url = (
221 | f"{fields.MODULE}"
222 | f"{modules.ACCOUNT}"
223 | f"{fields.ACTION}"
224 | f"{actions.TOKENTX}"
225 | f"{fields.CONTRACT_ADDRESS}"
226 | f"{contract_address}"
227 | f"{fields.SORT}"
228 | f"{sort}"
229 | f"{fields.PAGE}"
230 | f"{str(page)}"
231 | f"{fields.OFFSET}"
232 | f"{str(offset)}"
233 | )
234 | return url
235 |
236 | @staticmethod
237 | def get_erc20_token_transfer_events_by_address_and_contract_paginated(
238 | contract_address: str, address: str, page: int, offset: int, sort: str
239 | ) -> str:
240 |
241 | url = (
242 | f"{fields.MODULE}"
243 | f"{modules.ACCOUNT}"
244 | f"{fields.ACTION}"
245 | f"{actions.TOKENTX}"
246 | f"{fields.CONTRACT_ADDRESS}"
247 | f"{contract_address}"
248 | f"{fields.ADDRESS}"
249 | f"{address}"
250 | f"{fields.SORT}"
251 | f"{sort}"
252 | f"{fields.PAGE}"
253 | f"{str(page)}"
254 | f"{fields.OFFSET}"
255 | f"{str(offset)}"
256 | )
257 | return url
258 |
259 | @staticmethod
260 | def get_erc721_token_transfer_events_by_address(
261 | address: str, startblock: int, endblock: int, sort: str,
262 | ) -> str:
263 | url = (
264 | f"{fields.MODULE}"
265 | f"{modules.ACCOUNT}"
266 | f"{fields.ACTION}"
267 | f"{actions.TOKENNFTTX}"
268 | f"{fields.ADDRESS}"
269 | f"{address}"
270 | f"{fields.START_BLOCK}"
271 | f"{str(startblock)}"
272 | f"{fields.END_BLOCK}"
273 | f"{str(endblock)}"
274 | f"{fields.SORT}"
275 | f"{sort}"
276 | )
277 | return url
278 |
279 | @staticmethod
280 | def get_erc721_token_transfer_events_by_contract_address_paginated(
281 | contract_address: str, page: int, offset: int, sort: str
282 | ) -> str:
283 | url = (
284 | f"{fields.MODULE}"
285 | f"{modules.ACCOUNT}"
286 | f"{fields.ACTION}"
287 | f"{actions.TOKENNFTTX}"
288 | f"{fields.CONTRACT_ADDRESS}"
289 | f"{contract_address}"
290 | f"{fields.SORT}"
291 | f"{sort}"
292 | f"{fields.PAGE}"
293 | f"{str(page)}"
294 | f"{fields.OFFSET}"
295 | f"{str(offset)}"
296 | )
297 | return url
298 |
299 | @staticmethod
300 | def get_erc721_token_transfer_events_by_address_and_contract_paginated(
301 | contract_address: str, address: str, page: int, offset: int, sort: str
302 | ) -> str:
303 | url = (
304 | f"{fields.MODULE}"
305 | f"{modules.ACCOUNT}"
306 | f"{fields.ACTION}"
307 | f"{actions.TOKENNFTTX}"
308 | f"{fields.CONTRACT_ADDRESS}"
309 | f"{contract_address}"
310 | f"{fields.ADDRESS}"
311 | f"{address}"
312 | f"{fields.SORT}"
313 | f"{sort}"
314 | f"{fields.PAGE}"
315 | f"{str(page)}"
316 | f"{fields.OFFSET}"
317 | f"{str(offset)}"
318 | )
319 | return url
320 |
321 | @staticmethod
322 | def get_mined_blocks_by_address(address: str) -> str:
323 | url = (
324 | f"{fields.MODULE}"
325 | f"{modules.ACCOUNT}"
326 | f"{fields.ACTION}"
327 | f"{actions.GET_MINED_BLOCKS}"
328 | f"{fields.ADDRESS}"
329 | f"{address}"
330 | f"{fields.BLOCK_TYPE}"
331 | f"blocks"
332 | )
333 | return url
334 |
335 | @staticmethod
336 | def get_mined_blocks_by_address_paginated(
337 | address: str, page: int, offset: int
338 | ) -> str:
339 | url = (
340 | f"{fields.MODULE}"
341 | f"{modules.ACCOUNT}"
342 | f"{fields.ACTION}"
343 | f"{actions.GET_MINED_BLOCKS}"
344 | f"{fields.ADDRESS}"
345 | f"{address}"
346 | f"{fields.BLOCK_TYPE}"
347 | f"blocks"
348 | f"{fields.PAGE}"
349 | f"{str(page)}"
350 | f"{fields.OFFSET}"
351 | f"{str(offset)}"
352 | )
353 | return url
354 |
--------------------------------------------------------------------------------
/polygonscan/modules/blocks.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 |
5 |
6 | class Blocks:
7 | @staticmethod
8 | def get_block_reward_by_block_number(block_no: str) -> str:
9 | url = (
10 | f"{fields.MODULE}"
11 | f"{modules.BLOCK}"
12 | f"{fields.ACTION}"
13 | f"{actions.GET_BLOCK_REWARD}"
14 | f"{fields.BLOCKNO}"
15 | f"{block_no}"
16 | )
17 | return url
18 |
19 | @staticmethod
20 | def get_est_block_countdown_time_by_block_number(block_no: str) -> str:
21 | url = (
22 | f"{fields.MODULE}"
23 | f"{modules.BLOCK}"
24 | f"{fields.ACTION}"
25 | f"{actions.GET_BLOCK_COUNTDOWN}"
26 | f"{fields.BLOCKNO}"
27 | f"{block_no}"
28 | )
29 | return url
30 |
31 | @staticmethod
32 | def get_block_number_by_timestamp(timestamp: int, closest: str) -> str:
33 | # NOTE: Supports UNIX timestamps in seconds
34 | url = (
35 | f"{fields.MODULE}"
36 | f"{modules.BLOCK}"
37 | f"{fields.ACTION}"
38 | f"{actions.GET_BLOCK_NUMBER_BY_TIME}"
39 | f"{fields.TIMESTAMP}"
40 | f"{timestamp}"
41 | f"{fields.CLOSEST}"
42 | f"{closest}"
43 | )
44 | return url
45 |
--------------------------------------------------------------------------------
/polygonscan/modules/contracts.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 |
5 |
6 | class Contracts:
7 | @staticmethod
8 | def get_contract_abi(address: str) -> str:
9 | url = (
10 | f"{fields.MODULE}"
11 | f"{modules.CONTRACT}"
12 | f"{fields.ACTION}"
13 | f"{actions.GET_ABI}"
14 | f"{fields.ADDRESS}"
15 | f"{address}"
16 | )
17 | return url
18 |
19 | @staticmethod
20 | def get_contract_source_code(address: str) -> str:
21 | url = (
22 | f"{fields.MODULE}"
23 | f"{modules.CONTRACT}"
24 | f"{fields.ACTION}"
25 | f"{actions.GET_SOURCE_CODE}"
26 | f"{fields.ADDRESS}"
27 | f"{address}"
28 | )
29 | return url
30 |
--------------------------------------------------------------------------------
/polygonscan/modules/logs.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 |
5 |
6 | class Logs:
7 | @staticmethod
8 | def get_logs(
9 | from_block: int,
10 | to_block: int,
11 | address: str,
12 | topic_0: str = "",
13 | topic_1: str = "",
14 | topic_2: str = "",
15 | topic_3: str = "",
16 | topic_0_1_opr: str = "",
17 | topic_1_2_opr: str = "",
18 | topic_2_3_opr: str = "",
19 | topic_0_2_opr: str = "",
20 | topic_0_3_opr: str = "",
21 | topic_1_3_opr: str = "",
22 | ):
23 | """This is an alternative to the native eth_getLogs. An address and/or
24 | topic_x parameters are required. When multiple topic_x parameters are
25 | used, the topic_x_y_opr ("and"/"or" operator) is also required.
26 | **NOTE: Only the first 1000 results are returned.**
27 | Args:
28 | from_block (int): Start block of the query.
29 | to_block (int): End block of the query.
30 | address (str): Address of the logs.
31 | topic_0 (str, optional): Topic 0 in the logs. Defaults to "".
32 | topic_1 (str, optional): Topic 1 in the logs. Defaults to "".
33 | topic_2 (str, optional): Topic 2 in the logs. Defaults to "".
34 | topic_3 (str, optional): Topic 3 in the logs. Defaults to "".
35 | topic_0_1_opr (str, optional): Logical operator between topic 0 and 1. Defaults to "".
36 | topic_1_2_opr (str, optional): Logical operator between topic 1 and 2. Defaults to "".
37 | topic_2_3_opr (str, optional): Logical operator between topic 2 and 3. Defaults to "".
38 | topic_0_2_opr (str, optional): Logical operator between topic 0 and 2. Defaults to "".
39 | topic_0_3_opr (str, optional): Logical operator between topic 0 and 3. Defaults to "".
40 | topic_1_3_opr (str, optional): Logical operator between topic 1 and 3. Defaults to "".
41 | Returns:
42 | dict: The event logs in a dictionary, including topics and data fields.
43 | Example::
44 | from polygonscan import PolygonScan
45 | async with PolygonScan(YOUR_API_KEY) as client:
46 | print(
47 | await client.get_logs(
48 | from_block=4993830,
49 | to_block=4993832,
50 | address="0xe561479bebee0e606c19bb1973fc4761613e3c42",
51 | topic_0="0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
52 | topic_0_1_opr="and",
53 | topic_1="0x000000000000000000000000730e2065b9daee84c3003c05bf6d2b3a08e55667"
54 | )
55 | )
56 | Results::
57 | [
58 | {
59 | "address": "0xe561479bebee0e606c19bb1973fc4761613e3c42",
60 | "topics": [
61 | "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
62 | "0x000000000000000000000000730e2065b9daee84c3003c05bf6d2b3a08e55667",
63 | "0x000000000000000000000000d7d19938eae260d7f0e0a4c36e665ff4cf4b7acc"
64 | ],
65 | "data": "0x000000000000000000000000000000000000000000000000076cd96f53f24b0a",
66 | "blockNumber": "0x4c3326",
67 | "timeStamp": "0x602e9ef1",
68 | "gasPrice": "0x2540be400",
69 | "gasUsed": "0x1b0f2",
70 | "logIndex": "0xf7",
71 | "transactionHash": "0x73844fcfc6beab2e973a897c9573f4d79811b12213ce263045a203e0d3cea90e",
72 | "transactionIndex": "0xb9"
73 | }
74 | ]
75 | """
76 | return (
77 | f"{fields.MODULE}"
78 | f"{modules.LOGS}"
79 | f"{fields.ACTION}"
80 | f"{actions.GET_LOGS}"
81 | f"{fields.FROM_BLOCK}"
82 | f"{from_block}"
83 | f"{fields.TO_BLOCK}"
84 | f"{to_block}"
85 | f"{fields.ADDRESS}"
86 | f"{address}"
87 | # topic 0
88 | f"{fields.TOPIC_0}"
89 | f"{topic_0}"
90 | #
91 | # Everything below is optional. If not provided by user, then
92 | # they remain empty and do not affect the tail of the url.
93 | #
94 | # topic 0_x operators
95 | f"{fields.TOPIC_0_1_OPR*bool(topic_0_1_opr)}"
96 | f"{topic_0_1_opr}"
97 | f"{fields.TOPIC_0_2_OPR*bool(topic_0_2_opr)}"
98 | f"{topic_0_2_opr}"
99 | f"{fields.TOPIC_0_3_OPR*bool(topic_0_3_opr)}"
100 | f"{topic_0_3_opr}"
101 | # topic 1
102 | f"{fields.TOPIC_1*bool(topic_1)}"
103 | f"{topic_1}"
104 | # topic 1_x operators
105 | f"{fields.TOPIC_1_2_OPR*bool(topic_1_2_opr)}"
106 | f"{topic_1_2_opr}"
107 | f"{fields.TOPIC_1_3_OPR*bool(topic_1_3_opr)}"
108 | f"{topic_1_3_opr}"
109 | # topic 2
110 | f"{fields.TOPIC_2*bool(topic_2)}"
111 | f"{topic_2}"
112 | # topic 2_x operators
113 | f"{fields.TOPIC_2_3_OPR*bool(topic_2_3_opr)}"
114 | f"{topic_2_3_opr}"
115 | # topic 3
116 | f"{fields.TOPIC_3*bool(topic_3)}"
117 | f"{topic_3}"
118 | )
--------------------------------------------------------------------------------
/polygonscan/modules/proxy.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 | from polygonscan.enums.tags_enum import TagsEnum as tags
5 |
6 |
7 | class Proxy:
8 | @staticmethod
9 | def get_proxy_block_number() -> str:
10 | url = (
11 | f"{fields.MODULE}"
12 | f"{modules.PROXY}"
13 | f"{fields.ACTION}"
14 | f"{actions.ETH_BLOCK_NUMBER}"
15 | )
16 | return url
17 |
18 | @staticmethod
19 | def get_proxy_block_by_number(tag: str) -> str:
20 | url = (
21 | f"{fields.MODULE}"
22 | f"{modules.PROXY}"
23 | f"{fields.ACTION}"
24 | f"{actions.ETH_GET_BLOCK_BY_NUMBER}"
25 | f"{fields.TAG}"
26 | f"{tag}"
27 | f"{fields.BOOLEAN}"
28 | f"true"
29 | )
30 | return url
31 |
32 | @staticmethod
33 | def get_proxy_uncle_by_block_number_and_index(tag: str, index: str) -> str:
34 | url = (
35 | f"{fields.MODULE}"
36 | f"{modules.PROXY}"
37 | f"{fields.ACTION}"
38 | f"{actions.ETH_GET_UNCLE_BY_BLOCK_NUMBER_AND_INDEX}"
39 | f"{fields.TAG}"
40 | f"{tag}"
41 | f"{fields.INDEX}"
42 | f"{index}"
43 | )
44 | return url
45 |
46 | @staticmethod
47 | def get_proxy_block_transaction_count_by_number(tag: str) -> str:
48 | url = (
49 | f"{fields.MODULE}"
50 | f"{modules.PROXY}"
51 | f"{fields.ACTION}"
52 | f"{actions.ETH_GET_BLOCK_TRANSACTION_COUNT_BY_NUMBER}"
53 | f"{fields.TAG}"
54 | f"{tag}"
55 | )
56 | return url
57 |
58 | @staticmethod
59 | def get_proxy_transaction_by_hash(txhash: str) -> str:
60 | url = (
61 | f"{fields.MODULE}"
62 | f"{modules.PROXY}"
63 | f"{fields.ACTION}"
64 | f"{actions.ETH_GET_TRANSACTION_BY_HASH}"
65 | f"{fields.TXHASH}"
66 | f"{txhash}"
67 | )
68 | return url
69 |
70 | @staticmethod
71 | def get_proxy_transaction_by_block_number_and_index(tag: str, index: str) -> str:
72 | url = (
73 | f"{fields.MODULE}"
74 | f"{modules.PROXY}"
75 | f"{fields.ACTION}"
76 | f"{actions.ETH_GET_TRANSACTION_BY_BLOCK_NUMBER_AND_INDEX}"
77 | f"{fields.TAG}"
78 | f"{tag}"
79 | f"{fields.INDEX}"
80 | f"{index}"
81 | )
82 | return url
83 |
84 | @staticmethod
85 | def get_proxy_transaction_count(address: str) -> str:
86 | url = (
87 | f"{fields.MODULE}"
88 | f"{modules.PROXY}"
89 | f"{fields.ACTION}"
90 | f"{actions.ETH_GET_TRANSACTION_COUNT}"
91 | f"{fields.ADDRESS}"
92 | f"{address}"
93 | f"{fields.TAG}"
94 | f"{tags.LATEST}"
95 | )
96 | return url
97 |
98 | @staticmethod
99 | def get_proxy_transaction_receipt(txhash: str) -> str:
100 | url = (
101 | f"{fields.MODULE}"
102 | f"{modules.PROXY}"
103 | f"{fields.ACTION}"
104 | f"{actions.ETH_GET_TRANSACTION_RECEIPT}"
105 | f"{fields.TXHASH}"
106 | f"{txhash}"
107 | )
108 | return url
109 |
110 | @staticmethod
111 | def get_proxy_call(to: str, data: str) -> str:
112 | url = (
113 | f"{fields.MODULE}"
114 | f"{modules.PROXY}"
115 | f"{fields.ACTION}"
116 | f"{actions.ETH_CALL}"
117 | f"{fields.TO}"
118 | f"{to}"
119 | f"{fields.DATA}"
120 | f"{data}"
121 | f"{fields.TAG}"
122 | f"{tags.LATEST}"
123 | )
124 | return url
125 |
126 | @staticmethod
127 | def get_proxy_code_at(address: str) -> str:
128 | url = (
129 | f"{fields.MODULE}"
130 | f"{modules.PROXY}"
131 | f"{fields.ACTION}"
132 | f"{actions.ETH_GET_CODE}"
133 | f"{fields.ADDRESS}"
134 | f"{address}"
135 | f"{fields.TAG}"
136 | f"{tags.LATEST}"
137 | )
138 | return url
139 |
140 | @staticmethod
141 | def get_proxy_storage_position_at(position: str, address: str) -> str:
142 | url = (
143 | f"{fields.MODULE}"
144 | f"{modules.PROXY}"
145 | f"{fields.ACTION}"
146 | f"{actions.ETH_GET_STORAGE_AT}"
147 | f"{fields.ADDRESS}"
148 | f"{address}"
149 | f"{fields.POSITION}"
150 | f"{position}"
151 | f"{fields.TAG}"
152 | f"{tags.LATEST}"
153 | )
154 | return url
155 |
156 | @staticmethod
157 | def get_proxy_gas_price() -> str:
158 | # NOTE: Results are in WEI
159 | url = (
160 | f"{fields.MODULE}"
161 | f"{modules.PROXY}"
162 | f"{fields.ACTION}"
163 | f"{actions.ETH_GAS_PRICE}"
164 | )
165 | return url
166 |
167 | @staticmethod
168 | def get_proxy_est_gas(
169 | to: str, data: str, value: str, gas_price: str, gas: str
170 | ) -> str:
171 | url = (
172 | f"{fields.MODULE}"
173 | f"{modules.PROXY}"
174 | f"{fields.ACTION}"
175 | f"{actions.ETH_ESTIMATE_GAS}"
176 | f"{fields.DATA}"
177 | f"{data}"
178 | f"{fields.TO}"
179 | f"{to}"
180 | f"{fields.VALUE}"
181 | f"{value}"
182 | f"{fields.GAS_PRICE}"
183 | f"{gas_price}"
184 | f"{fields.GAS}"
185 | f"{gas}"
186 | )
187 | return url
188 |
--------------------------------------------------------------------------------
/polygonscan/modules/stats.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 |
5 |
6 | class Stats:
7 | @staticmethod
8 | def get_total_matic_supply() -> str:
9 | url = (
10 | f"{fields.MODULE}"
11 | f"{modules.STATS}"
12 | f"{fields.ACTION}"
13 | f"{actions.ETH_SUPPLY}"
14 | )
15 | return url
16 |
17 | @staticmethod
18 | def get_matic_last_price() -> str:
19 | url = (
20 | f"{fields.MODULE}"
21 | f"{modules.STATS}"
22 | f"{fields.ACTION}"
23 | f"{actions.ETH_PRICE}"
24 | )
25 | return url
26 |
--------------------------------------------------------------------------------
/polygonscan/modules/tokens.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 | from polygonscan.enums.tags_enum import TagsEnum as tags
5 |
6 |
7 | class Tokens:
8 | @staticmethod
9 | def get_total_supply_by_contract_address(contract_address: str) -> str:
10 | url = (
11 | f"{fields.MODULE}"
12 | f"{modules.STATS}"
13 | f"{fields.ACTION}"
14 | f"{actions.TOKEN_SUPPLY}"
15 | f"{fields.CONTRACT_ADDRESS}"
16 | f"{contract_address}"
17 | )
18 | return url
19 |
20 | @staticmethod
21 | def get_acc_balance_by_token_and_contract_address(
22 | contract_address: str, address: str
23 | ) -> str:
24 | url = (
25 | f"{fields.MODULE}"
26 | f"{modules.ACCOUNT}"
27 | f"{fields.ACTION}"
28 | f"{actions.TOKEN_BALANCE}"
29 | f"{fields.CONTRACT_ADDRESS}"
30 | f"{contract_address}"
31 | f"{fields.ADDRESS}"
32 | f"{address}"
33 | f"{fields.TAG}"
34 | f"{tags.LATEST}"
35 | )
36 | return url
37 |
--------------------------------------------------------------------------------
/polygonscan/modules/transactions.py:
--------------------------------------------------------------------------------
1 | from polygonscan.enums.actions_enum import ActionsEnum as actions
2 | from polygonscan.enums.fields_enum import FieldsEnum as fields
3 | from polygonscan.enums.modules_enum import ModulesEnum as modules
4 |
5 |
6 | class Transactions:
7 | @staticmethod
8 | def get_contract_execution_status(txhash: str) -> str:
9 | url = (
10 | f"{fields.MODULE}"
11 | f"{modules.TRANSACTION}"
12 | f"{fields.ACTION}"
13 | f"{actions.GET_STATUS}"
14 | f"{fields.TXHASH}"
15 | f"{txhash}"
16 | )
17 | return url
18 |
19 | @staticmethod
20 | def get_tx_receipt_status(txhash: str) -> str:
21 | url = (
22 | f"{fields.MODULE}"
23 | f"{modules.TRANSACTION}"
24 | f"{fields.ACTION}"
25 | f"{actions.GET_TX_RECEIPT_STATUS}"
26 | f"{fields.TXHASH}"
27 | f"{txhash}"
28 | )
29 | return url
30 |
--------------------------------------------------------------------------------
/polygonscan/polygonscan.py:
--------------------------------------------------------------------------------
1 | import json
2 | from importlib import resources
3 |
4 | from polygonscan.core.async_client import AsyncClient
5 | from polygonscan.core.base import BaseClient
6 | from polygonscan.core.sync_client import SyncClient
7 |
8 |
9 | class PolygonScan:
10 | """Client factory."""
11 |
12 | def __new__(cls, api_key: str, asynchronous=True, debug=False, timeout=None) -> BaseClient:
13 | """Create a new client.
14 | Args:
15 | api_key (str): Your polygonscan.com API key.
16 | asynchronous (bool, optional): Whether client is async or not. Defaults to True.
17 | debug (bool, optional): Display generated URLs for debugging. Defaults to False.
18 | timeout (int, optional): Timeout for requests. Defaults to None.
19 | Returns:
20 | BaseClient: polygonscan client.
21 | """
22 | if asynchronous:
23 | return AsyncClient(api_key=api_key, debug=debug, timeout=timeout)
24 | return SyncClient(api_key=api_key, debug=debug, timeout=timeout)
25 |
--------------------------------------------------------------------------------
/polygonscan/utils/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tarsil/polygonscan-python/9de6b1378b07ce82dd298291e4a324ab0f560eab/polygonscan/utils/__init__.py
--------------------------------------------------------------------------------
/polygonscan/utils/conversions.py:
--------------------------------------------------------------------------------
1 | from decimal import Decimal
2 |
3 |
4 | class Conversions:
5 | @staticmethod
6 | def to_ticker_unit(val: int, decimals: int = 18) -> Decimal:
7 | factor = Decimal("10") ** Decimal("-{}".format(decimals))
8 | return Decimal(val) * factor
9 |
10 | @staticmethod
11 | def to_smallest_unit(val: int, decimals: int = 18) -> Decimal:
12 | factor = Decimal("10") ** Decimal("+{}".format(decimals))
13 | return Decimal(val) * factor
--------------------------------------------------------------------------------
/polygonscan/utils/parsing.py:
--------------------------------------------------------------------------------
1 | import requests
2 |
3 |
4 | class ResponseParser:
5 | @staticmethod
6 | def parse(response: dict):
7 | result = response["result"]
8 | if "status" in response.keys():
9 | status = bool(int(response["status"]))
10 | message = response["message"]
11 | assert status, f"{result} -- {message}"
12 | else:
13 | # GETH or Parity proxy msg format
14 | # TODO: see if we need those values
15 | jsonrpc = response["jsonrpc"]
16 | cid = int(response["id"])
17 | return result
--------------------------------------------------------------------------------
/run_tests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | clear
3 | export API_KEY=$1
4 | pip install coverage
5 | coverage run -m unittest discover && coverage report -m
--------------------------------------------------------------------------------
/setup.py:
--------------------------------------------------------------------------------
1 | from setuptools import setup
2 |
3 | setup(
4 | name="polygonscan-python",
5 | version="1.0.2",
6 | description="A minimal, complete, python API for polygonscan.com.",
7 | url="https://github.com/tarsil/polygonscan-python",
8 | author="Tiago A. Silva",
9 | license="MIT",
10 | packages=[
11 | "polygonscan",
12 | "polygonscan.configs",
13 | "polygonscan.core",
14 | "polygonscan.enums",
15 | "polygonscan.modules",
16 | "polygonscan.utils",
17 | ],
18 | python_requires='>=3.8',
19 | install_requires=["aiohttp", "requests"],
20 | include_package_data=True,
21 | zip_safe=False,
22 | )
23 |
--------------------------------------------------------------------------------
/test/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/tarsil/polygonscan-python/9de6b1378b07ce82dd298291e4a324ab0f560eab/test/__init__.py
--------------------------------------------------------------------------------
/test/test_polygon_async.py:
--------------------------------------------------------------------------------
1 | import asyncio
2 | import json
3 | import os
4 | from datetime import datetime
5 | from unittest import IsolatedAsyncioTestCase
6 |
7 | from polygonscan import PolygonScan
8 |
9 | CONFIG_PATH = "polygonscan/configs/stable.json"
10 | API_KEY = os.environ["API_KEY"]
11 |
12 |
13 | def load(fname):
14 | with open(fname, "r") as f:
15 | return json.load(f)
16 |
17 |
18 | def dump(data, fname):
19 | with open(fname, "w") as f:
20 | json.dump(data, f, indent=2)
21 |
22 |
23 | class Case(IsolatedAsyncioTestCase):
24 | _MODULE = ""
25 |
26 | async def test_methods(self):
27 | print(f"\nMODULE: {self._MODULE}")
28 | config = load(CONFIG_PATH)
29 | async with PolygonScan(api_key=API_KEY, asynchronous=True, debug=True) as polygon:
30 | for fun, v in config.items():
31 | if not fun.startswith("_"): # disabled if _
32 | if v["module"] == self._MODULE:
33 | res = await getattr(polygon, fun)(**v["kwargs"])
34 | print(f"ASYNC: True, METHOD: {fun}, RTYPE: {type(res)}")
35 | fname = f"logs/standard/{fun}.json"
36 | log = {
37 | "method": fun,
38 | "module": v["module"],
39 | "kwargs": v["kwargs"],
40 | "log_timestamp": datetime.now().strftime(
41 | "%Y-%m-%d-%H:%M:%S"
42 | ),
43 | "res": res,
44 | }
45 | dump(log, fname)
46 | await asyncio.sleep(0.5)
47 |
48 |
49 | class TestAccounts(Case):
50 | _MODULE = "accounts"
51 |
52 |
53 | class TestBlocks(Case):
54 | _MODULE = "blocks"
55 |
56 |
57 | class TestContracts(Case):
58 | _MODULE = "contracts"
59 |
60 |
61 | class TestLogs(Case):
62 | _MODULE = "logs"
63 |
64 |
65 | class TestProxy(Case):
66 | _MODULE = "proxy"
67 |
68 |
69 | class TestStats(Case):
70 | _MODULE = "stats"
71 |
72 |
73 | class TestTokens(Case):
74 | _MODULE = "tokens"
75 |
76 |
77 | class TestTransactions(Case):
78 | _MODULE = "transactions"
--------------------------------------------------------------------------------
/test/test_polygon_from_session.py:
--------------------------------------------------------------------------------
1 | import os
2 | from unittest import TestCase
3 | from unittest.async_case import IsolatedAsyncioTestCase
4 |
5 | from aiohttp import ClientSession
6 | from polygonscan.core.async_client import AsyncClient
7 | from polygonscan.core.sync_client import SyncClient
8 |
9 | from requests import Session
10 |
11 | CONFIG_PATH = "polygon/configs/stable.json"
12 | API_KEY = os.environ["API_KEY"]
13 |
14 |
15 | class TestSyncSession(TestCase):
16 | def test_from_session_sync(self):
17 | client = SyncClient.from_session(
18 | api_key=API_KEY,
19 | session=Session(),
20 | )
21 | self.assertTrue(client.get_matic_last_price())
22 |
23 |
24 | class TestAsyncSession(IsolatedAsyncioTestCase):
25 | async def test_from_session_async(self):
26 | client = await AsyncClient.from_session(
27 | api_key=API_KEY,
28 | session=ClientSession(),
29 | )
30 | self.assertTrue(await client.get_matic_last_price())
--------------------------------------------------------------------------------
/test/test_polygon_sync.py:
--------------------------------------------------------------------------------
1 | import json
2 | import os
3 | import time
4 | from datetime import datetime
5 | from unittest import TestCase
6 |
7 | from polygonscan import PolygonScan
8 |
9 | CONFIG_PATH = "polygonscan/configs/stable.json"
10 | API_KEY = os.environ["API_KEY"]
11 |
12 |
13 | def load(fname):
14 | with open(fname, "r") as f:
15 | return json.load(f)
16 |
17 |
18 | def dump(data, fname):
19 | with open(fname, "w") as f:
20 | json.dump(data, f, indent=2)
21 |
22 |
23 | class Case(TestCase):
24 | _MODULE = ""
25 |
26 | def test_methods(self):
27 | print(f"\nMODULE: {self._MODULE}")
28 | config = load(CONFIG_PATH)
29 | with PolygonScan(api_key=API_KEY, asynchronous=False, debug=True) as polygon:
30 | for fun, v in config.items():
31 | if not fun.startswith("_"): # disabled if _
32 | if v["module"] == self._MODULE:
33 | res = getattr(polygon, fun)(**v["kwargs"])
34 | print(f"ASYNC: False, METHOD: {fun}, RTYPE: {type(res)}")
35 | fname = f"logs/standard/{fun}.json"
36 | log = {
37 | "method": fun,
38 | "module": v["module"],
39 | "kwargs": v["kwargs"],
40 | "log_timestamp": datetime.now().strftime(
41 | "%Y-%m-%d-%H:%M:%S"
42 | ),
43 | "res": res,
44 | }
45 | dump(log, fname)
46 | time.sleep(0.5)
47 |
48 |
49 | class TestAccounts(Case):
50 | _MODULE = "accounts"
51 |
52 |
53 | class TestBlocks(Case):
54 | _MODULE = "blocks"
55 |
56 |
57 | class TestContracts(Case):
58 | _MODULE = "contracts"
59 |
60 |
61 | class TestLogs(Case):
62 | _MODULE = "logs"
63 |
64 |
65 | class TestProxy(Case):
66 | _MODULE = "proxy"
67 |
68 |
69 | class TestStats(Case):
70 | _MODULE = "stats"
71 |
72 |
73 | class TestTokens(Case):
74 | _MODULE = "tokens"
75 |
76 |
77 | class TestTransactions(Case):
78 | _MODULE = "transactions"
--------------------------------------------------------------------------------