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

Feature request: Add a "onBalanceChange(...)" event #150

Closed
honungsburk opened this issue Dec 19, 2021 · 1 comment
Closed

Feature request: Add a "onBalanceChange(...)" event #150

honungsburk opened this issue Dec 19, 2021 · 1 comment

Comments

@honungsburk
Copy link

Motivation

My website https://native-asset.com/ would like access to such an endpoint since that would allow me to update the GUI whenever assets have been successfully minted/burned. For example, the app currently doesn't allow you to burn more tokens than you have in your wallet. However, this value becomes invalid after minting/burning and currently you need to refresh the entire app to get the correct values. A onBalanceChange(...) event would significantly improve the UX for the user, allowing the app to do this automatically.

Proposed Function Signature

cardano.onBalanceChange((balance : value) => void)
@honungsburk
Copy link
Author

I'll close this issue in favor of the discussion happening on the CIP draft

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

1 participant