- Python v3.9 (Any Python version greater than 3.6 because of f strings)
- API Key from infura.io
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
Set PROJECT_ID to your infura.io API Key
flask run
pytest .
GET /api/gas_price
{
"prices": {
"fast": {
"base_fee": "3.60",
"priority_fee": "1.86",
"value": "5.46"
},
"normal": {
"base_fee": "3.60",
"priority_fee": "1.56",
"value": "5.16"
},
"slow": {
"base_fee": "3.60",
"priority_fee": "1.19",
"value": "4.79"
}
}
}