createSellOrder function doesn't work
class Opensea { constructor({ network, privateKey, apiKey, rpcUrl, accountAddress } = {}) { this.network = network; this.privateKey = privateKey; this.apiKey = apiKey; this.rpcUrl = rpcUrl; this.accountAddress = accountAddress;
// Wallet Provider
this.provider = new HDWalletProvider(
this.privateKey,
this.rpcUrl,
);
this.web3 = new Web3(this.provider);
// Opensea API
const options = {
networkName: this.network
}
this.headers = {
accept: 'application/json'
}
if (this.network === 'main') {
options.apiKey = this.apiKey;
this.headers['X-API-KEY'] = this.apiKey;
}
this.seaport = new opensea.OpenSeaSDK(this.provider, options);
} }
const opensea = new Opensea({
network:NETWORK === "mainnet" ? Network.Main : Network.Goerli,
privateKey:PRIVATE_KEY,
apiKey:OPENSEA_API_KEY,
rpcUrl:"https://eth-" + NETWORK + ".g.alchemy.com/v2/" + NODE_API_KEY,
accountAddress:signer.address
});
await opensea.seaport.createSellOrder(postData);

I confirmed that my code works until March 8th.
Fulfillment Endpoints https://docs.opensea.io/changelog/fulfillment-endpoints On February 23rd, 2023 we released two new fulfillment endpoints which contain all of the information needed to fulfill offers and listings
I think this problem appears because of the above change. please share me the solution to this problem.
I am using "opensea-js": "^4.0.13". After installing the latest version, 4.0.23, the project stops running with an error saying that the node module cannot be found.
@CoolDevMan there was an issue with the build folder structure on 4.0.23 which has been remedied on 4.0.24
@JoshuaSchmidt-OpenSea Thank you very much. I just installed version 4.0.24 and confirmed that the createSellOrder function works normally. However, in order to execute the createSellOrder function, allowPartialFills in line 691 of node_modules\opensea-js\lib\sdk.js must be set to false.
https://github.com/ProjectOpenSea/opensea-js/issues/801 You can check the details in the previous issue.