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

feat(API): Add gas-prices endpoint #1335

Merged
merged 3 commits into from
Jan 3, 2025
Merged

feat(API): Add gas-prices endpoint #1335

merged 3 commits into from
Jan 3, 2025

Conversation

nicholaspai
Copy link
Member

Can be used to determine what gas price the API is computing

Can be used to determine what gas price the API is computing
Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 7:58pm
sepolia-frontend-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 3, 2025 7:58pm

nicholaspai added a commit to across-protocol/sdk that referenced this pull request Jan 3, 2025
… / nativeGasCost

If we divide `tokenGasCost / nativeGasCost` then we'll get the L1GasCost + L2GasPrice components for the gas price for OpStack, because OpStack adds this L1GasCost component to the full total gas cost.

The SDK should return the `gasPrice = baseFee + priorityFee` to help with debugging against the API, for example against this PR across-protocol/frontend#1335
@nicholaspai nicholaspai merged commit 177ef0f into master Jan 3, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants