From e78a984b4e8a58e05c1fb070b716025b4ff194ec Mon Sep 17 00:00:00 2001 From: nischitpra <20742197+nischitpra@users.noreply.github.com> Date: Mon, 8 Sep 2025 12:45:14 +0000 Subject: [PATCH] polygon amoy gasstation update (#8004) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## PR-Codex overview This PR updates the gas fee data source for the Polygon network in the `fee-data.ts` file, specifically changing the URL for the testnet case. ### Detailed summary - In the `fee-data.ts` file, the return URL for the case `80002` has been changed from `"https://gasstation-testnet.polygon.technology/v2"` to `"https://gasstation.polygon.technology/amoy"`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Bug Fixes** * Updated the gas fee data source for Polygon Amoy (chain 80002) to the current gas station endpoint, improving accuracy and reliability of priority fee estimates. * Enhances transaction success rates and fee predictions for users interacting with the Amoy network. * No changes for Polygon mainnet (137). --- packages/thirdweb/src/gas/fee-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/thirdweb/src/gas/fee-data.ts b/packages/thirdweb/src/gas/fee-data.ts index 16ab15862bd..fa721426d9b 100644 --- a/packages/thirdweb/src/gas/fee-data.ts +++ b/packages/thirdweb/src/gas/fee-data.ts @@ -242,7 +242,7 @@ function getGasStationUrl(chainId: 137 | 80002): string { case 137: return "https://gasstation.polygon.technology/v2"; case 80002: - return "https://gasstation-testnet.polygon.technology/v2"; + return "https://gasstation.polygon.technology/amoy"; } }