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]: Token balances subscription #361

Open
1 task
rsodre opened this issue Dec 17, 2024 · 0 comments
Open
1 task

[Feature]: Token balances subscription #361

rsodre opened this issue Dec 17, 2024 · 0 comments

Comments

@rsodre
Copy link
Contributor

rsodre commented Dec 17, 2024

Feature Request

Provide a way to subscribe to new and changed token balances.

Depends on dojo#2819

Proposed Solution

Add a function to the SDK package that subscribes to Torii token balances.

Alternatives

Fetching all tokens periodically to apply changes, which is expensive.

Related Code

This is how we fetch tokens. The subscription should return the same data:

https://github.com/dojoengine/dojo.js/blob/main/packages/sdk/src/index.ts#L192-L200

Additional context

No response

If the feature is accepted, would you be willing to contribute it?

  • Yes I would be willing to contribute
@rsodre rsodre changed the title [Feature]: Token balances [Feature]: Token balances subscription Dec 17, 2024
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