Quaiscan
  • Quaiscan Open-Source Explorer
  • 🙎Using Quaiscan
    • Getting Started
      • Glossary of Terms
      • Main Menu
      • Blocks
      • Transaction Types
    • Token Support
      • ERC-1155 Support
  • 👩‍💻Developer Support
    • Quaiscan API
      • REST API Endpoints
      • GraphQL
      • JSON RPC & Quai Compatible RPC Endpoints
        • Account
        • Block
        • Contract
        • Logs
        • Stats
        • Token
        • Transaction
        • Quai RPC API
    • Smart Contract Verification
      • Quaiscan UI
      • Quaiscan smart-contract verification API
      • Hardhat Verification Plugin
    • Local Deployment
  • FAQs
    • User FAQs
    • Developer FAQs
  • 🧩Resources
    • Media kit
    • Release Notes
      • v1.0.0
    • Discussion
    • GitHub Repo
Powered by GitBook
On this page
  • https://quaiscan.io/api?module=stats
  • Get ERC-20 or ERC-721 token total supply by contract address
  • Get total coin supply from DB minus burnt number
  • Get latest price of native coin in USD and BTC in more general format
Export as PDF
  1. Developer Support
  2. Quaiscan API
  3. JSON RPC & Quai Compatible RPC Endpoints

Stats

?module=stats

PreviousLogsNextToken

Last updated 7 months ago

https://quaiscan.io/api?module=stats

Get or token total supply by contract address

tokensupply

Example

https://quaiscan.io/api
   ?module=stats
   &action=tokensupply
   &contractaddress={contractAddressHash}
Parameter
Description

contractaddress

string containing the contract address hash - a 160-bit code used for identifying contracts.

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

Get total coin supply from DB minus burnt number

coinsupply

Example:

// Some code
Parameter
Description

param

description

// Some code

Get latest price of native coin in USD and BTC in more general format

coinprice

Example:

// Some code
Parameter
Description

param

description

// Some code
👩‍💻
ERC-20
ERC-721