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

getUtxos(t, n) returns data when it shouldn't (pagination is broken or inconsistent) #873

Open
latheesan-k opened this issue Oct 12, 2023 · 1 comment

Comments

@latheesan-k
Copy link

In my wallet, I have approx 2,500 UTXOs, however If I asked nami to return result from page 999999999, it returns data when it should've been an empty array or null

demo:

image

@yHSJ
Copy link

yHSJ commented Oct 18, 2023

@latheesan-k This is because you are passing in arguments incorrectly. This behavior is actually exactly as expected.

According to the specification in CIP-30, the paginate argument is of type Paginate, which is defined as:

type Paginate = {|
      page: number,
      limit: number,
    |};

You'll notice in the Nami source code the page parameter that is sent to Blockfrost defaults to 1 if either paginate or paginate.page is falsy.

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

2 participants