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

Fix: Switch function to check asset optin due to wallets that have over 1000 assets #335

Open
atrefonas opened this issue Dec 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@atrefonas
Copy link
Contributor

ℹ Overview

The current API used doesn't work for wallets with over 1000 assets.

See this PR which fixes it for Algodex Mailbox algodex/algodex-mailbox#263

For example these wallets on Mainnet:
LWT6235B2XIVC3BB4ENQGD72S3QE5JJCWOZAUPBJ2PXPZGCAMXPFIG5UCM
XBOMMMEOIUWEOPDKT4T5AVZY7F52X25GVKW2B4COREGMNYCLQ2GHFOUOM4

From algoexplorer:

"We recommend dApps to simply use our indexer to fetch >1000 assets
Base URL: https://indexer.algoexplorerapi.io
Endpoint: GET /v2/accounts/{account-id}/assets"

📝 Related Issues

💻 System Configuration

  • Operating System:
    • Edition:
    • Version:
    • Build:
  • Browser:
    • Type:
    • Version:
@atrefonas atrefonas added the bug Something isn't working label Dec 12, 2022
@atrefonas atrefonas changed the title Fix: Switch function to check asset optin Fix: Switch function to check asset optin due to wallets that have over 1000 assets Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant