Gnosisscan
HomeTwitterKnowledge Base
  • Introduction
  • ✨Getting Started
    • Creating an Account
    • Getting an API key
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth Proxy
    • Tokens
    • Stats
  • 📖Tutorials
    • Signing Raw Transactions
    • Read/Write Smart Contracts
    • Verifying Contracts Programmatically
  • 🏆API PRO
    • API PRO
    • Using API PRO
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Getting Help
  • Visit Gnosisscan.io
Powered by GitBook
On this page
  • Get Total Supply of xDAI
  • Get xDAI Last Price
  1. API Endpoints

Stats

PreviousTokensNextSigning Raw Transactions

Last updated 2 years ago

Get Total Supply of xDAI

Returns the current amount of xDAI in circulation.

https://api.gnosisscan.io/api
   ?module=stats
   &action=ethsupply
   &apikey=YourApiKeyToken

Try this endpoint in your

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":"189210550499000000000000000"
}

Tip : Easily convert Ethereum units using our

Get xDAI Last Price

Returns the latest price of 1 xDAI.

https://api.gnosisscan.io/api
   ?module=stats
   &action=ethprice
   &apikey=YourApiKeyToken

Try this endpoint in your

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "ethbtc":"0.07364",
      "ethbtc_timestamp":"1663342777",
      "ethusd":"1444.58",
      "ethusd_timestamp":"1663342774"
   }
}

Tip : The timestamps are represented in

🎯
🔗
📖
🔗
⏳
browser
unit converter.
browser
Unix timestamp.