BTTCScan
HomeTwitterKnowledge Base
Donau BTTCScan
Donau BTTCScan
  • Testnet BTTCScan
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth/Parity Proxy
    • Tokens
    • Stats
  • Visit Testnet BTTCScan
Powered by GitBook
On this page
  • Get Total Supply of BTT on the BTTC Chain
  • Get Validators List on the BTTC Chain
  • Get BTTC Last Price
  1. API Endpoints

Stats

PreviousTokens

Last updated 1 year ago

Get Total Supply of BTT on the BTTC Chain

Returns the current amount of BTTC in circulation.

https://api-testnet.bttcscan.com/api?
   module=stats
   &action=ethsupply
   &apikey=YourApiKeyToken

Try this endpoint in your

No parameters required.

Sample Response

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

Tip : The result is returned in

Easily convert BTTC units using our

Get Validators List on the BTTC Chain

Returns the top 21 validators for the BTTC Chain.

https://api-testnet.bttcscan.com/api
   ?module=stats
   &action=validators
   &apikey=YourApiKeyToken

Try this endpoint in your

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":[
      {
         "validatorAddress":"0xa2959d3f95eae5dc7d70144ce1b73b403b7eb6e0",
         "validatorName":"",
         "validatorStatus":"0",
         "validatorVotingPower":"57117720201036",
         "validatorVotingPowerProportion":"0.2525"
      },
      {
         "validatorAddress":"0x980a75ecd1309ea12fa2ed87a8744fbfc9b863d5",
         "validatorName":"",
         "validatorStatus":"0",
         "validatorVotingPower":"47750269234362",
         "validatorVotingPowerProportion":"0.2110"
      },
      {
         "validatorAddress":"0xb71b214cb885500844365e95cd9942c7276e7fd8",
         "validatorName":"",
         "validatorStatus":"0",
         "validatorVotingPower":"47435564868228",
         "validatorVotingPowerProportion":"0.2097"
      }
   ]
}

Get BTTC Last Price

Returns the latest price of 1 BTTC.

https://api-testnet.bttcscan.com/api
   ?module=stats
   &action=ethprice
   &apikey=YourApiKeyToken

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "ethbtc":"0.00000688215489650237",
      "ethbtc_timestamp":"1686211620",
      "ethusd":"0.000000528951101708199",
      "ethusd_timestamp":"1686210960"
   }
}

Try this endpoint in your

Tip : The timestamps are represented in

🎯
🔗
📖
🔗
browser
wei.
unit converter.
browser
🔗
browser
⌛
Unix timestamp.