Skip to content

gas bench: add MetaMask oracle (Phase B, part 1) - #1499

Merged
Flotapponnier merged 3 commits into
devfrom
feat/gas-bench-metamask-v2
Jul 26, 2026
Merged

gas bench: add MetaMask oracle (Phase B, part 1)#1499
Flotapponnier merged 3 commits into
devfrom
feat/gas-bench-metamask-v2

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Adds MetaMask (gas.api.cx.metamask.io) as the 4th gas oracle. Public no-key endpoint that powers the MetaMask wallet's suggested-fee UI in production.

  • EIP-1559 native (returns per-tier suggestedMaxPriorityFeePerGas + estimatedBaseFee)
  • Tier mapping: low→p25, medium→p50, high→p90 (mirrors the wallet's slow/market/fast selector)
  • Cadence: 12s per chain (aligned with PublicNode for cadence parity)
  • Covers all 3 chains including Avalanche where Etherscan free tier is restricted

Verified locally: 5+ successful polls per chain in 50s, predictions emit for all tiers, no throttling.

@Flotapponnier
Flotapponnier merged commit 81f1485 into dev Jul 26, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the feat/gas-bench-metamask-v2 branch July 26, 2026 06:00
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.

1 participant