Skip to content

Contract Details


Retrieve the details of a given ZRC-2 contract.

Parameters

Name Type Required Description
token String Required The smart contract address of the token (leave empty when using symbol)
symbol String Required The symbol of the token (leave empty when using token)

Example Request

Query

query TokenDetail($input: TokenDetailInput) {
  getTokenDetail(input: $input) {
    contractAddress
    tokenName
    tokenSymbol
    init_supply
    totalSupply
    standard
    decimals
    ownerAddress
    type
  }
}

Query Variables

{
  "input": {
    "token": "0x98a71b463a33bbff650d123bf04f1f32d1c8b508",
    "symbol": ""
  }
}

HTTP Headers

{
  "Authorization": "Bearer <insert token>"
}

Example Response

{
  "data": {
    "getTokenDetail": {
      "contractAddress": "0x98a71b463a33bbff650d123bf04f1f32d1c8b508",
      "tokenName": "Wrapped ZIL Token",
      "tokenSymbol": "wZIL",
      "init_supply": "0",
      "totalSupply": "41166677135704200",
      "standard": "ZRC2",
      "decimals": "12",
      "ownerAddress": "0x7E30D1c942282784630EBfedba1FFbDE3647f472",
      "type": "ASSET_CONTRACT"
    }
  }
}