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=token
  • Get ERC-20 or ERC-721 token by contract address
  • Get token holders by contract address
Export as PDF
  1. Developer Support
  2. Quaiscan API
  3. JSON RPC & Quai Compatible RPC Endpoints

Token

?module=token

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

Get ERC-20 or ERC-721 token by contract address

getToken

Info on name, symbol, supply and type for a token contract address.

Example

https://quaiscan.io/api
   ?module=token
   &action=getToken
   &contractaddress={contractaddressHash}
Parameter
Description

contractaddress

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

{
  "message": "OK",
  "result": {
    "cataloged": true,
    "contractAddress": "0x0000000000000000000000000000000000000000",
    "decimals": "18",
    "name": "Example Token",
    "symbol": "ET",
    "totalSupply": "1000000000",
    "type": "ERC-20"
  },
  "status": "1"
}

Get token holders by contract address

getTokenHolders

Returns an array of token holder's accounts and amounts held for a specified token contract address.

Example

https://quaiscan.io/api
   ?module=token
   &action=getTokenHolders
   &contractaddress={contractaddressHash}
   &page={integer}
   &offset={integer}
Parameter
Description

contractaddress

string containing the contract address hash of the ERC-20/ERC-721 token

page

optional nonnegative integer representing the page number used for pagination. 'offset' must also be provided.

offset

optional nonnegative integer representing the max number of records to return when paginating. 'page' must also be provided.

{
  "message": "OK",
  "result": [
    {
      "address": "0x005f644097F8f0E9f996Dca4F4F23aBB6C1Cc8b3",
      "value": "153737849289497644937838"
    },
  ],
  "status": "1"
}

PreviousStatsNextTransaction

Last updated 7 months ago

👩‍💻