Returns the price of the native token in USD and BTC
cURL
curl --request GET \ --url 'https://eth.blockscout.com/api/?apikey=&module=stats&action=ethprice'
{ "status": "1", "message": "OK", "result": { "ethbtc": "<string>", "ethbtc_timestamp": "<string>", "ethusd": "<string>", "ethusd_timestamp": "<string>" } }
Optional API key for increased rate limits.
Without API key:
With API key:
Usage: Add apikey=YOUR_KEY to any request query string.
apikey=YOUR_KEY
Module name (must be 'stats')
stats
ethprice
Token price retrieved successfully
Status code (1 = OK)
1
Response message
"OK"
Show child attributes
Was this page helpful?