on master help sign in
lib: update etherscan gastracker api from deprecated v1 to v2
4bc52fapkova
src/lib/getSuggestedGasPrice.js+3−2
@@ -54,10 +54,11 @@ const getGasForNetwork = async providerUrl => {
54 }
54 }
55 ),
55 ),
56 fetch(
56 fetch(
57− `${providerUrl}/api` +
57+ `${providerUrl}/v2/api` +
58 '?module=gastracker' +
58 '?module=gastracker' +
59 '&action=gasoracle' +
59 '&action=gasoracle' +
60− '&apikey=CG52E4R96W56GIKUI4IJ8CH9EZIXPUW1W8',
60+ '&apikey=CG52E4R96W56GIKUI4IJ8CH9EZIXPUW1W8' +
61+ '&chainid=1',
61 {
62 {
62 method: 'GET',
63 method: 'GET',
63 cache: 'no-cache',
64 cache: 'no-cache',