-
Hi, I'm trying to create a listing using seaport api. However, I've been staring at my code for a while now, and can't list this nft. I created parameters and generated the signature. Not sure why I'm getting a 400 bad request. Any help would be appreciated. Here's my code: Edit: added consideration for original creator and subtracted that from the first consideration. I am still getting a 400 bad request error though. Edit 2: removed code in question, code in answer more relevant and helpful |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Ok, after a while of trying to figure out a possible way to list on Opensea and help, I found a way to list assets on Opensea.
Important Notes: However, the structure of order requires slightly different types for some of the parameters of the order. So, you can see in the code below the changes made. In order to list on Opensea, the Opensea fee and creator fee need to included and subtracted from the original listing price. The counter isn't supposed to be included as part of the parameters in the first Learn more about signOrder and the structure of orderParameters. Pro: it works. Con: requires API key, relies on Opensea Api. Code:
|
Beta Was this translation helpful? Give feedback.
-
@0xAskar Hey, this ticket was super helpful in clarifying that seaport order vs the opensea order. Spent a good chunk of time trying to figure out why my createOrders w/ seaport were just showing up on opensea. Was curious though, could you give a little more detail on how you calculate consideration 2 and 3 - You hand in returns, but what calculation is in that function? Also how do you determine item 2 recipient? I've seen |
Beta Was this translation helpful? Give feedback.
-
@0xAskar the 500 error is solved. Such a dumb mistake... I was taking the returned order object and updating it. (changing the conduitKey to opensea's) - so the order I was submitting didn't match the signed order... conduitKey is an optional arg of Then I got errors with the fees I was calculating, but solved that faster. Took the above mentioned basis points and write new objects of type function to get basis points
creating order
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@0xAskar All the errors from my side are solved and now it gives this error "We encountered an exception while processing your request. Please try again later." with error:500 |
Beta Was this translation helpful? Give feedback.
Ok, after a while of trying to figure out a possible way to list on Opensea and help, I found a way to list assets on Opensea.
order
structure that is compatible with thesignOrder
from Seaport which generates thesignature
from the user.order
andsignature
into the api routehttps://api.opensea.io/v2/orders/ethereum/seaport/listings
.Important Notes: However, the structure of order requires slightly different types for some of the parameters of the order. So, you can see in the code below the changes made. In order to list on Opensea, the Opensea fee and creator fee need to included and subtracted from the original listing price. The counter…