Etherscan API V2 Connection Test
Testing URL:
https://api.etherscan.io/v2/api?module=gastracker&action=gasoracle&apikey=ZR2CAV375V5R3GCHWYVNZNBZZGTNZ5KH78&chainid=1
Testing cURL connection...
HTTP Response Code: 200
cURL Success!
API Response:
{"status":"1","message":"OK","result":{"LastBlock":"25307498","SafeGasPrice":"0.124107013","ProposeGasPrice":"0.124885297","FastGasPrice":"0.129085297","suggestBaseFee":"0.124085297","gasUsedRatio":"0.385910716615181,0.741751216666667,0.736881566666667,0.325701633333333,0.549025708571944"}}
Parsed JSON:
Array
(
[status] => 1
[message] => OK
[result] => Array
(
[LastBlock] => 25307498
[SafeGasPrice] => 0.124107013
[ProposeGasPrice] => 0.124885297
[FastGasPrice] => 0.129085297
[suggestBaseFee] => 0.124085297
[gasUsedRatio] => 0.385910716615181,0.741751216666667,0.736881566666667,0.325701633333333,0.549025708571944
)
)
✅ API V2 IS WORKING!
Safe Gas Price: 0.124107013 Gwei
Propose Gas Price: 0.124885297 Gwei
Fast Gas Price: 0.129085297 Gwei