Skip to content

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

Description

@atrefonas

ℹ 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions