Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Add gas fees #102

Open
ethedev opened this issue Jun 12, 2022 · 0 comments
Open

API: Add gas fees #102

ethedev opened this issue Jun 12, 2022 · 0 comments

Comments

@ethedev
Copy link
Member

ethedev commented Jun 12, 2022

Description

We need to add a primary call to the etherscan api with a fallback to a secondary api of public choice to get the updated gas fees value of ethereum blockchain.

/gas

{
  "slow": 124,
  "normal": 134,
  "fast": 164
}

Follow the .env.example to add or use secrets if needed.

Requirements

  • Adding call for the specified endpoint.
  • Caching the data using cron every 5 seconds to the mongo database.
  • Making sure to serve the user the cached data and not have them call 3rd parties.
  • On your PR include examples of what the endpoint is returning.
  • Use your own mongo database for testing.
  • Documenting the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant