Errors when trying to partial fulfill an order #1543
-
Hi guys, I am trying to create a script to buy a NFT on opensea (testnet). I made a script to find the order of the NFT and then I am trying to buy but the problem is that it buys all the NFT listed instead of just 1. This is my first script:
then someone online told me to use opensea and use its fulfillOrder to buy only one item, but the problem is that the getOrders returns signatures with value null and when I attempt to fulfillOrder it throws an error saying it can't be null. Eventually, I tried to sign it myself using signMessage but then it gives me another error telling me no such account exists. can someone help me? this is my final result:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
fulfillOrder does get the fulfillment signature, is the order hash on the order model provided? |
Beta Was this translation helpful? Give feedback.
-
Thank you for trying to help, Yes order model does have the order hash in fact
but as you can see the signature is null but for some reason the fullfillorder of seaport needs it. Do you know if there is a way to get it? |
Beta Was this translation helpful? Give feedback.
yes it works now i just had to use
const seaport = openseaSDK.seaport_v1_6;
instead ofconst seaport = new Seaport(provider);
and the signature was null so I had to sign it with this method
openseaSDK.api.generateFulfillmentData(...)