predict ethereum gas price
Project description
gasprice
estimates ethereum gas price based on recent blocks and provides a simple api
hosted
- https://gasprice.poa.network (kindly deployed by poa network)
installation
requires python 3.6 and an ethereum full node. infura.io won't work as it doesn't allow setting up filter
.
pip install gasprice
there is an example of systemd service if you want to run it as a service.
usage
gasprice
Options:
-h, --host 127.0.0.1
-p, --port 8000
-s, --skip-warmup
ethereum rpc url can be set with ETH_RPC_URL
environment variable (default http://localhost:8545
).
api
{
"block_number": 4813900,
"block_time": 14.9,
"health": true,
"slow": 1,
"standard": 4,
"fast": 20,
"instant": 40
}
slow
, standard
, fast
and instant
values represent minimal gas price of the latest 200 blocks. by default slow represents 30% probability, standard is 60%, fast is 90% and instant is 100%.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gasprice-1.2.0.tar.gz
.
File metadata
- Download URL: gasprice-1.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.12 CPython/3.7.3 Darwin/18.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | abf5c294aac2acbaf7b0a706db53eb633e87b986c566ac400c83259f91ef181e |
|
MD5 | 6ca16bb8144deb354c930dd73f0a75c3 |
|
BLAKE2b-256 | 80dc6aa465c8094fc92f703bf35553060cc58371f3b4c7f1372e4855981a367d |
File details
Details for the file gasprice-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: gasprice-1.2.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.12 CPython/3.7.3 Darwin/18.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53078c97c24638c07f8a1faae97c96fb9ed9debe1c3c03e6d2df209548d09159 |
|
MD5 | a045e4e3c3c08016e8b699e749f352ac |
|
BLAKE2b-256 | 16a6b20a02d81e52cd7db9c06438e37cc08b33100823ff63611fda2335e7d475 |