Skip to content

GET contract doesn't return total supply #6

@nickpater

Description

@nickpater

Expected Behavior

When making a request to https://qtum.info/api/contract/fe59cbc1704e89a698571413a81f0de9d8f00c69 I would suspect the qrc20 object to contain the totalSupply.

Current Behavior

The end-point returns only the name and symbol in the qrc20 object.

Steps to Reproduce

  1. Go to this end-point https://qtum.info/api/contract/fe59cbc1704e89a698571413a81f0de9d8f00c69
  2. Compare the result with the documentation https://github.com/qtumproject/qtuminfo-api/blob/master/doc/contract.md#contract-information

Context (Environment)

I'm trying to get up-to-date total supplies for tokens on QTUM. For example INK.

Detailed Description

The GET /contract/:contract end-point doesn't return all the information that is stated in the documentation. It only returns the name and symbol of a QRC20 token, while the documentation says that it would also return the decimals, totalSupply, version, holders and transactions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions