Build your own Ethereum Gas Station using Amberdata.io API!
Check out the demo page!
git clone git@github.com:amberdata/amberdata-example-gas-station.git
Go to amberdata.io and click "Get started"
Building with Amberdata.io is as simple as a few axios request:
let getGasPredictions = async () => {
return await axios({
method:'get',
url: 'https://web3api.io/api/v1/transactions/gas/predictions',
headers: {"x-api-key": "YOUR_API_KEY_HERE"}
})
}
See source here.
let getGasPercentiles = async () => {
return await axios({
method:'get',
url: 'https://web3api.io/api/v1/transactions/gas/percentiles',
headers: {"x-api-key": "YOUR_API_KEY_HERE"}
})
}
See source here.
This project is licensed under the Apache Licence 2.0.