on master help sign in
Merge pull request #1147 from urbit/pkova/v2-api

lib: update etherscan gastracker api from deprecated v1 to v2

commit6867b78bf2e65d5f9fa68254602b81d7444764cf authorPyry Kovanen <pkova@users.noreply.github.com> dateMon 20 Oct 2025, 14:16 (1 year ago) parent6768e78582098f
2 files changed+4−3
package.json+1−1 src/lib/getSuggestedGasPrice.js+3−2
package.json+1−1
@@ -1,6 +1,6 @@
11{
22 "name": "bridge",
3− "version": "3.2.12",
3+ "version": "3.2.14",
44 "description": "An application for interacting with Azimuth",
55 "repository": {
66 "type": "git",
src/lib/getSuggestedGasPrice.js+3−2
@@ -54,10 +54,11 @@ const getGasForNetwork = async providerUrl => {
5454 }
5555 ),
5656 fetch(
57− `${providerUrl}/api` +
57+ `${providerUrl}/v2/api` +
5858 '?module=gastracker' +
5959 '&action=gasoracle' +
60− '&apikey=CG52E4R96W56GIKUI4IJ8CH9EZIXPUW1W8',
60+ '&apikey=CG52E4R96W56GIKUI4IJ8CH9EZIXPUW1W8' +
61+ '&chainid=1',
6162 {
6263 method: 'GET',
6364 cache: 'no-cache',