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

[ethereum-gas-tracker] Current gas prices are not being fetched #15385

Open
0xF16 opened this issue Nov 15, 2024 · 4 comments · May be fixed by #15478
Open

[ethereum-gas-tracker] Current gas prices are not being fetched #15385

0xF16 opened this issue Nov 15, 2024 · 4 comments · May be fixed by #15478
Labels
bug Something isn't working extension: ethereum-gas-tracker Issues related to the ethereum-gas-tracker extension extension Issues related to one of the extensions in the Store

Comments

@0xF16
Copy link

0xF16 commented Nov 15, 2024

Extension

https://www.raycast.com/vinch/ethereum-gas-tracker

Raycast Version

1.85.2

macOS Version

15.1

Description

Seems like the api endpoint used to provide gas prices is not working (https://api.0x3.studio/gas).

Steps To Reproduce

  1. Enable extension and activate menu item
  2. When clicking on it this is the error i get on the screen. Anyway, gas prices seems to be fetched from few days ago (when it was working)
    CleanShot 2024-11-15 at 13 09 19@2x

Current Behaviour

No response

Expected Behaviour

No response

@0xF16 0xF16 added bug Something isn't working extension Issues related to one of the extensions in the Store labels Nov 15, 2024
@raycastbot raycastbot added the extension: ethereum-gas-tracker Issues related to the ethereum-gas-tracker extension label Nov 15, 2024
@raycastbot
Copy link
Collaborator

Thank you for opening this issue!

🔔 @vinch you might want to have a look.

💡 Author and Contributors commands

The author and contributors of vinch/ethereum-gas-tracker can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@xmok
Copy link
Contributor

xmok commented Nov 16, 2024

Under the hood the current API was just making a call to Etherscan's Gas Tracker API endpoint. We can modify the extension to directly call the endpoint at https://docs.etherscan.io/etherscan-v2/api-endpoints/gas-tracker but it will mean a user needs to plug in their own API key. Is probably best for @vinch to weigh in first, though.

reference: https://github.com/0x3studio/0x3studio-api/blob/main/pages/api/gas.ts

@0xF16
Copy link
Author

0xF16 commented Nov 16, 2024

I believe it's a good option to consider. The free rate limit is 5 requests per second or 100,000 requests per day (like 1.15 req/s if maxed out and distributed evenly throughout a day). This limit seems sufficient. If there's an option also to choose a frequency, that would be great! Like pulling every 6 seconds or at any other frequency.

@xmok
Copy link
Contributor

xmok commented Nov 17, 2024

We can definitely tweak the interval (see: https://developers.raycast.com/information/lifecycle/background-refresh#manifest).
Let's wait a couple of days until the author can chime in otherwise I'd be happy to modify the extension accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: ethereum-gas-tracker Issues related to the ethereum-gas-tracker extension extension Issues related to one of the extensions in the Store
Projects
None yet
3 participants