Skip to content

Can't create sell orders (listings) that reflect on OpenSea #92

@ajaybha

Description

@ajaybha

Thanks for this library, it looks very promising (esp. with support of ethers and different networks like Polygon) which are missing in OpenSea.js SDK.

I am trying to use this to create sellorder/listings in bulk for a ERC721 contract. Though the transaction succeeds, there is no sale listing created for the said item on OpenSea.

But if I follow the create Order with fullfill orders (as in sample), the sale is reflected in OpenSea and I can see Transfer of the token between offerrer and fulfiller.

Chain: Polygon Mumbai
Contract: ERC721 - deployed and items minted already

-------------------------- code snippet for brevity --------------------------
const { executeAllActions } = await seaport.createOrder(
{
offer: [
{
itemType: ItemType.ERC721,
token: deployment.address,
identifier: "1",
}
],
consideration: [
{
amount: ethers.utils.parseEther("0.040").toString(),
recipient: offerer,
}
],
}
);
const order: OrderWithCounter = await executeAllActions();

// this part also works well, the token sale is reflected on Open Sea
/*const { executeAllActions: executeFullfillActions} = 
    await seaport.fulfillOrder({
        order,
        accountAddress:fulfiller,
    });
const txn = await executeFullfillActions();
console.log(`transaction hash:${txn.hash}`);*/

// this goes through, I can see the transaction on polygonscan, but the sale listing is not created on OpenSea
const txmethod = await seaport.validate([order]);
await txmethod.buildTransaction()
const tx = await txmethod.transact();
console.log(`Transaction Hash:${tx.hash}`);
await tx.wait();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions