cURL
curl --request GET \ --url 'https://eth.blockscout.com/api/?module=stats&action=coinprice'
{ "message": "OK", "result": { "coin_btc": "0.05", "coin_btc_timestamp": "1234567890", "coin_usd": "1500.00", "coin_usd_timestamp": "1234567890" }, "status": "1" }
Returns latest price of native coin in USD and BTC.
Module name (must be 'stats')
stats
Action name (must be 'coinprice')
coinprice
Successful response
Status code (1 = OK)
1
Response message
"OK"
Was this page helpful?