LogoLogo
Testnet BscScan
Testnet BscScan
  • Testnet BscScan
  • 🎯API Endpoints
    • Accounts
    • Contracts
    • Transactions
    • Blocks
    • Logs
    • Geth/Parity Proxy
    • Tokens
    • Stats
  • Visit Testnet BscScan
Powered by GitBook
On this page
  • Get Total Supply of BNB on the BNB Smart Chain
  • Get Validators List on the BNB Smart Chain
  • Get BNB Last Price

Was this helpful?

  1. API Endpoints

Stats

PreviousTokens

Last updated 3 years ago

Was this helpful?

Get Total Supply of BNB on the BNB Smart Chain

Returns the current amount of BNB in circulation.

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

Try this endpoint in your

No parameters required.

Sample Response

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

Tip : The result is returned in

Easily convert BNB units using our

Get Validators List on the BNB Smart Chain

Returns the top 21 validators for the BNB Smart Chain.

https://api-testnet.bscscan.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 BNB Last Price

Returns the latest price of 1 BNB.

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

No parameters required.

Sample Response

{
   "status":"1",
   "message":"OK",
   "result":{
      "ethbtc":"0.008882",
      "ethbtc_timestamp":"1631688267",
      "ethusd":"417.41",
      "ethusd_timestamp":"1631688267"
   }
}

Try this endpoint in your

Tip : The timestamps are represented in

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