question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getOrders() returns last offer across all collections instead of offers for provided item?

See original GitHub issue

Hello All,

I’m struggling to get highest bid on a given item. On Wyvern API it was running smoothly for me. Now, regardless if I provide asset_contract_address and token_id, delete them or put some random strings inside, the function always returns last offer across all collections instead of offers for provided item. Please kindly help me solve this problem, am I missing something here?

seaport.api.getOrders({
          protocol: "seaport",
          asset_contract_address: "0xea917326e8a95299c02655fe947962c43a11487f",
          token_id: "4474",
          limit: 1,
          side: "bid"
        })

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
krzysztofmncommented, Jun 27, 2022

Thanks for trying to help out here!

I have changed the code as per your suggestions to:

assetContractAddress: "0xea917326e8a95299c02655fe947962c43a11487f",
tokenIds: ["4474"],

getOrders now return: { next: null, previous: null, orders: [] }

As you can see, there are a few offers on this item: https://opensea.io/assets/ethereum/0xea917326e8a95299c02655fe947962c43a11487f/4474

0reactions
krzysztofmncommented, Jun 29, 2022

@georgep21 For my needs I’m fetching bids only. What I’m able to do is fetch one highest non-collection offer. I understand that including collections offers is under development, so I’ll just have to wait.

In the meantime I have another problem, but opened a new issue for it - #635

Read more comments on GitHub >

github_iconTop Results From Across the Web

GetOrders - API Reference - eBay Developers Program
The new format is a non-parsable string, globally unique across all eBay marketplaces, and consistent for both single line item and multiple line...
Read more >
Orders API v0 reference - Amazon-Services-API
Returns orders created or updated during the time frame indicated by the specified ... InvoiceUnconfirmed (All items in the order have been shipped....
Read more >
Part 6: Creating Product and Order Controllers - Microsoft Learn
In this tutorial, learn how to create product and order controllers for a Web API with Entity Framework.
Read more >
GetOrders - Kibo Commerce
A list of requested items. All returned data is provided in an items array. For a failed request, the returned response may be...
Read more >
40 Java Collections Interview Questions and Answers
Why there is not a method like Iterator.add() to add elements to the ... Collections are used in every programming language and initial...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found