Created
January 19, 2024 08:32
-
-
Save DOBEN/e035ef44705cdf8919f72c98a25d54eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "CIS2Token", | |
| "symbol": "TOK", | |
| "decimals": 0, | |
| "description": "CIS2Token is an example of a stablecoin.", | |
| "thumbnail": { "url": "https://dev.euroe.com/persistent/token-icon/png/32x32.png" }, | |
| "display": { "url": "https://dev.euroe.com/persistent/token-icon/png/256x256.png" }, | |
| "artifact": { "url": "https://dev.euroe.com/persistent/token-icon/png/256x256.png" }, | |
| "unique": false | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@HassanKhan26373 Concordium has the
wallet-proxyapi, where you can query the balance per smart contract index per account per tokenIdhttps://github.com/Concordium/concordium-wallet-proxy
e.g.
https://wallet-proxy.testnet.concordium.com/v1/CIS2TokenBalance/6607/0/3DbpA7svR2SH1NCqqDAZvjwxtaNhrd7xzEETbfSa4RMsDzkKta?tokenId=3d01001dc33eaf03%2C3d01001375671804%2C3d010051a3200b05%2C3c0100f651a56004%2Cb4010062b7c00d02%2C3a04002400561400%2C3a04006917771b01%2C3a0400302789aa05%2C3a0400ddd928c701
The idea is that you have to add a token (that you are interested in) to your wallet before the balance information are queried from the
wallet-proxy, as such we don't have an endpoint to return all possible tokens per account in the above API.Alternatively, you can write your own indexer or explore indexers written by the community if they fit your use case.
https://github.com/ccdexplorer/ccdexplorer-api (community written)
https://ccdexplorer.io/