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

When querying for user's tokens IDs, default and max values are low #87

Open
mikedotexe opened this issue Oct 16, 2022 · 0 comments
Open

Comments

@mikedotexe
Copy link
Contributor

mikedotexe commented Oct 16, 2022

The default and maximum value when returning token information seems to be shared with these consts here:

const DEFAULT_LIMIT: u32 = 10;
const MAX_LIMIT: u32 = 100;

These may be quite low for certain use cases.

If you query tokens you will get something like this:

nftInfo {
  tokens: [
    '489', '491', '492',
    '494', '495', '496',
    '497', '498', '499',
    '500'
  ]
}

You must pass in the parameters start_after or limit in order to increase this, where the limit is maxed out at 100.

I feel like both the default and maximum could be increased for queries that return only token IDs.

This might involve separating different constants for various queries that may return larger payloads than just the ID.

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