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

Added 1 field to display decimals in api https://api.koios.rest/api/v0/account_assets #127

Closed
DCOneCrypto opened this issue Nov 13, 2022 · 3 comments · Fixed by #142
Closed
Assignees
Milestone

Comments

@DCOneCrypto
Copy link
Contributor

Added 1 field to display decimals in api https://api.koios.rest/api/v0/account_assets. If we need to display the correct balance to the account balance we need to make the asset_info call for each asset to get the "decimals" field, so for wallets with nft > 100 tokens we need > 100 call command. Example "assets": [
{
"policy_id": "29d222ce763455e3d7a09a665ce554f00ac89d2e99a1a83d267170c6",
"assets": [
{
"asset_name": "4d494e",
"asset_name_ascii": "MIN",
"balance": "1859630215"
},
{
"asset_name": "4d494e74",
"asset_name_ascii": "MINt",
"balance": "1842795018"
}
]
},
.But my wallet MIN balance is only 1859 and Mint balance is only 1842.
Thank you for your interest

@rdlrt rdlrt added this to the Koios vNext milestone Nov 14, 2022
@Scitz0 Scitz0 moved this to Next Up in Koios Project Nov 17, 2022
@Scitz0
Copy link
Contributor

Scitz0 commented Nov 17, 2022

Dependent on #124
Add decimals to all asset objects that contain quantity.

@Scitz0 Scitz0 self-assigned this Nov 17, 2022
@DCOneCrypto
Copy link
Contributor Author

Dependent on #124 Add decimals to all asset objects that contain quantity.

Yes! Wish to add decimals to all tokens with quantity

@rdlrt rdlrt moved this from Next Up to Testing in Koios Project Dec 22, 2022
@rdlrt rdlrt linked a pull request Jan 19, 2023 that will close this issue
@rdlrt
Copy link
Contributor

rdlrt commented Jan 19, 2023

Fixed by linked PR, will be part of koios-1.0.10

@rdlrt rdlrt closed this as completed Jan 19, 2023
@rdlrt rdlrt moved this from Testing to Completed in Koios Project Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

3 participants