Skip to content

amberdata/amberdata-example-gas-station

Repository files navigation

amberdata-example-gas-station

Build your own Ethereum Gas Station using Amberdata.io API!

Check out the demo page!

Clone:

git clone git@github.com:amberdata/amberdata-example-gas-station.git

1. Get API Key

Go to amberdata.io and click "Get started"

2. Build:

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.

Resources

Licensing

This project is licensed under the Apache Licence 2.0.

About

Build your own Ethereum Gas Station using Amberdata.io API!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •