Welcome to BlocksScan
  • Introduction
  • ✨GETTING STARTED
    • Endpoint URLs
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks (WIP)
    • Logs
    • Geth/Parity Proxy (WIP)
    • Tokens
    • Gas Tracker (WIP)
    • Stats
  • ✅CONTRACT VERIFICATION
    • What's Contract Verification
    • Multichain Verification(WIP)
    • Supported Chains
    • Common Verification Errors
    • Contract Verification Plugins
  • 🔧MISC TOOLS & UTILITIES
    • Libraries (WIP)
  • 🤝Support
    • FAQ
    • Rate Limits
    • Common Error Messages
    • Getting Help
    • Visit Blocksscan.io
Powered by GitBook
On this page
  • Get Total Supply of XDC
  • Get XDC Last Price
  • Get XDC Nodes Size (Coming Soon)
  • Get Total Nodes Count
  • Get Daily Network Transaction Fee
  • Get Daily New Address Count
  • Get Daily Network Utilization
  • Get Daily Average Network Hash Rate (Coming Soon)
  • Get Daily Transaction Count
  • Get Daily Average Network Difficulty (Coming Soon)
  • Get XDC Historical Daily Market Cap
  • Get XDC Historical Price
  1. API Endpoints

Stats

PreviousGas Tracker (WIP)NextWhat's Contract Verification

Last updated 3 months ago

Get Total Supply of XDC

Returns the current amount of Ether in circulation excluding ETH2 Staking rewards and EIP1559 burnt fees.

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

Try this endpoint in your

No parameters required.

Sample Response

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

Tip : Easily convert XDC units using our

Get XDC Last Price

Returns the latest price of 1 XDC.

https://api.xdcscan.io/api
   ?module=stats
   &action=xdcprice
   &apikey=YourApiKeyToken

Try this endpoint in your

No parameters required.

Sample Response

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

Tip : The timestamps are represented in

Get XDC Nodes Size (Coming Soon)

Returns the size of the XDC blockchain, in bytes, over a date range.

https://api.xdcscan.io/api
   ?module=stats
   &action=chainsize
   &startdate=2024-08-10
   &enddate=2024-08-15
   &clienttype=geth
   &syncmode=default
   &sort=asc
   &apikey=YourApiKeyToken

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-06-01

enddate

the ending date in yyyy-MM-dd format, eg. 2024-07-10

clienttype

the XDC [node client] to use, either geth or parity

syncmode

the [type of node] to run, either default or archive

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "blockNumber":"7156164",
         "chainTimeStamp":"2019-02-01",
         "chainSize":"184726421279",
         "clientType":"Geth",
         "syncMode":"Default"
      }
      {
         "blockNumber":"7276521",
         "chainTimeStamp":"2019-02-28",
         "chainSize":"197073145113",
         "clientType":"Geth",
         "syncMode":"Default"
      }
   ]
}

Get Total Nodes Count

Returns the total number of discoverable XDC nodes.

https://api.xdcscan.io/api
   ?module=stats
   &action=nodecount
   &apikey=YourApiKeyToken

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "UTCDate":"2021-06-29",
      "TotalNodeCount":"6413"
   }
}

Returns the amount of transaction fees paid to miners per day.

https://api.xdcscan.io/api
   ?module=stats
   &action=dailytxnfee
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "transactionFee_Eth":"358.558440870590355682"
      }
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "transactionFee_Eth":"545.141762162356907132"
      }
   ]
}

Returns the number of new XDC addresses created per day.

https://api.xdcscan.io/api
   ?module=stats
   &action=dailynewaddress
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "newAddressCount":54081
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "newAddressCount":53117
      }
   ]
}

Returns the daily average gas used over gas limit, in percentage.

https://api.xdcscan.io/api
   ?module=stats
   &action=dailynetutilization
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "networkUtilization":"0.8464"
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "networkUtilization":"0.9472"
      }
   ]
}

Returns the historical measure of processing power of the XDC network.

https://api.xdcscan.io/api
   ?module=stats
   &action=dailyavghashrate
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "networkHashRate":"143116.0140"
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "networkHashRate":"157689.3983"
      }
   ]
}

Returns the number of transactions performed on the XDC blockchain per day.

https://api.xdcscan.io/api
   ?module=stats
   &action=dailytx
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "transactionCount":498856
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "transactionCount":541458
      }
   ]
}

Returns the historical mining difficulty of the XDC network.

https://api.xdcscan.io/api
   ?module=stats
   &action=dailyavgnetdifficulty
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "networkDifficulty":"2,408.028"
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "networkDifficulty":"2,927.453"
      }
   ]
}

Returns the historical XDC daily market capitalization.

https://api.xdcscan.io/api
   ?module=stats
   &action=xdcdailymarketcap
   &startdate=2024-08-10
   &enddate=2024-08-15
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "supply":"104672819.281250",
         "marketCap":"11203.1318476721875",
         "price":"107.03"
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "supply":"105048576.406250",
         "marketCap":"14317.0704784078125",
         "price":"136.29"
      }
   ]
}

Returns the historical price of 1 XDC.

https://api.xdcscan.io/api
   ?module=stats
   &action=xdcdailyprice
   &startdate=2024-08-10
   &enddate=2024-08-10
   &sort=asc
   &apikey=YourApiKeyToken 

Query Parameters

Parameter
Description

startdate

the starting date in yyyy-MM-dd format, eg. 2019-02-01

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "UTCDate":"2019-02-01",
         "unixTimeStamp":"1548979200",
         "value":"107.03"
      },
      {
         "UTCDate":"2019-02-28",
         "unixTimeStamp":"1551312000",
         "value":"136.29"
      }
   ]
}

Try this endpoint in your

Tip : The chainSize is represented in bytes.

Try this endpoint in your

Get Daily Network Transaction Fee

Try this endpoint in your

Get Daily New Address Count

Try this endpoint in your

Get Daily Network Utilization

Try this endpoint in your

Get Daily Average Network Hash Rate (Coming Soon)

Try this endpoint in your

Tip : The networkHashRate is represented in .

Get Daily Transaction Count

Try this endpoint in your

Get Daily Average Network Difficulty (Coming Soon)

Try this endpoint in your

​​ Tip : The networkDifficulty is represented in .

Get XDC Historical Daily Market Cap

Try this endpoint in your

​​ Tip : The marketCap is represented in illion US Dollars ( USD ).

Get XDC Historical Price

Try this endpoint in your

​​ Tip : The value is represented in US Dollars ( USD ).

🎯
⛓️
💰
🔗
📖
🔗
⏳
browser
unit converter.
browser
Unix timestamp.
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔗
browser
🔥
GigaHashes ( GH/s )
🔗
browser
🔗
browser
🔥
TeraHashes ( TH/s )
🔗
browser
💰
m
🔗
browser