Tool is designed to empower Web3 developers by providing real-time, accurate, and relevant gas price data for the top EVM (Ethereum Virtual Machine) compatible blockchains. Our goal is to streamline your development process by offering easy access to essential network information through a free, public API.
- Top EVM Chains Support: Access gas price data from the most popular EVM-compatible blockchains.
- Real-Time Data: Stay up-to-date with the latest gas prices, ensuring efficient and cost-effective transactions.
- Free Public API: Easy and open access for all developers. No API key required.
Install
cd ui
yarn installPrepare configuration
Copy .env.template to .env.local and edit it.
cp .env.template .env.localRun server in development mode
Go to https://localhost:3000 in your browser.
yarn devBuild static files
They will be placed in out directory.
yarn buildInstall
cd backend
go install Prepare configuration
Copy config.example.yaml to config.yaml to the same directory and edit it.
cp config.example.yaml config.yamlRun server in development mode
go run cmd/cli/main.go serverRequest data from server
curl -X GET http://localhost:8080/ | jqBuild application
go build -o gasprice-oracle cmd/cli/main.goGET "/"- get latest gas price data
The API returns data in JSON format. Here is an example of a successful response:
{
"networkName": {
"updatedAt": 1700149263,
"slow": 100000000,
"normal": 100000000,
"fast": 100000000,
"fastest": 100000000
}
}Slow, normal, fast, and fastest strategies for gas price are in wei.
- Ethereum
- Binance Smart Chain
- Polygon
- Avalanche
- Fantom
- Arbitrum One
- Base
- Fantom
- Optimism
- more to be added...
Distributed under the MIT License. See LICENSE for more information.