Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get-token-info documentation is different from the API data #245

Open
FinalFrontierPrototyping opened this issue Nov 3, 2022 · 5 comments

Comments

@FinalFrontierPrototyping

Hello,

I am implementing Ethplorer in my project. I noticed that the get-token-info is different from the actual API call:

Documentation:

{
address: # token address,
totalSupply: # total token supply,
name: # token name,
symbol: # token symbol,
decimals: # number of significant digits,
price: { # token price (false, if not available),
rate: # current price in currency,
currency: # token price currency (USD),
diff: # 24 hours rate difference (in percent),
diff7d: # 7 days rate difference (in percent),
diff30d: # 30 days rate difference (in percent),
marketCapUsd: # market cap (USD),
availableSupply: # available supply,
volume24h: # 24 hours volume,
ts: # last rate update timestamp,
},
publicTags: [] # [optional] one or more tags from https://ethplorer.io/tag/,
owner: # token owner address,
countOps: # total count of token operations,
totalIn: # total amount of incoming tokens,
totalOut: # total amount of outgoing tokens,
transfersCount: # total number of token operations,
ethTransfersCount: # [optional] total number of ethereum operations,
holdersCount: # total number of token holders,
issuancesCount: # total count of token issuances,
image: # [optional] token image url,
description: # [optional] token description,
website: # [optional] token website url,
lastUpdated: # last updated timestamp,
}

API Call:
{
"address": "0x2b591e99afe9f32eaa6214f7b7629768c40eeb39",
"name": "HEX",
"decimals": "8",
"symbol": "HEX",
"totalSupply": "58155180128736744713",
"owner": "",
"txsCount": 1830264,
"transfersCount": 3109936,
"lastUpdated": 1667511641,
"issuancesCount": 1055704,
"holdersCount": 310882,
"image": "/images/HEX2b591e99.png",
"website": "https://hex.com",
"ethTransfersCount": 0,
"price": {
"rate": 0.03924476800557123,
"diff": -3,
"diff7d": -8.9,
"ts": 1667512020,
"marketCapUsd": 6805477384.937584,
"availableSupply": 173411074413.06497,
"volume24h": 7594780.32979642,
"volDiff1": -36.69057597277082,
"volDiff7": -0.8260291777996116,
"volDiff30": -12.097591119921304,
"diff30d": 17.069084350204577,
"bid": 0.163126,
"currency": "USD"
},
"countOps": 3109936
}

I haven't crosschecked all data, but e.g. the following data is missing and not labeled as optional in the documentation:
totalIn: # total amount of incoming tokens,
totalOut: # total amount of outgoing tokens,

Is the documentation outdated, or is something else wrong?

Thanks.

@alexesnsk
Copy link

totalIn, totalOut is not available for the moment.

@CarlosBellange
Copy link

I would like to have a chat with the responsible of the overview when it comes to the ethplorer.

It is important- Pm. [email protected]

@FinalFrontierPrototyping
Copy link
Author

TxCount is not mentioned in the documentation at all. Can you please add it?

Thanks.

@FinalFrontierPrototyping
Copy link
Author

I would like to have a chat with the responsible of the overview when it comes to the ethplorer.

It is important- Pm. [email protected]

Your question is off topic. Why do you use this topic?

@pjdiiori
Copy link

pjdiiori commented Nov 14, 2022

@alexesnsk I'm working with a typescript implementation and noticed another inconsistency — the documented type of tokenInfo.decimals is number, but in actuality, the API returns a string for this property. Let me know if I should open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@FinalFrontierPrototyping @alexesnsk @CarlosBellange @pjdiiori and others