ViewBlock / zilliqa-js-viewblock

A library interfacing with the Zilliqa blockchain and ViewBlock's APIs
MIT License
19 stars 20 forks source link

[ GraphQL API ] Viewblock address api not showing token key datas #15

Open notsonika opened 2 years ago

notsonika commented 2 years ago

Summary

I needed to access wallet info with the balance of specific address (including token), so I came across this API https://graphql-docs.viewblock.io/#tag-Address It should be returning me token value but its not. I double-checked if i have token in this wallet or not & I have few tokens in this address

Actual behavior Its giving me tokens: null

Expected behavior It should give me

hash: [String](https://graphql-docs.viewblock.io/#/definitions/String)
The token hash

name: [String](https://graphql-docs.viewblock.io/#/definitions/String)
The name of the token

symbol: [String](https://graphql-docs.viewblock.io/#/definitions/String)
The symbol of the token

decimals: [Float](https://graphql-docs.viewblock.io/#/definitions/Float)
Token decimals

score: [Float](https://graphql-docs.viewblock.io/#/definitions/Float)
The computed score based on public information (see https://github.com/Ashlar/cryptometa)

balance: [String](https://graphql-docs.viewblock.io/#/definitions/String)

Screenshot

Screen Shot 2022-02-04 at 7 36 32 PM