Sell NFT of my smart contract on opensea

can i sell NFT minted from my smart contract to opensea and if so how do i do?

You can list your contract using this process: Get Listed | OpenSea

1 Like

Thank you for replying. I added my smart contract address but got error like this

Make sure your ABI and chain you’re using in your wallet is correct.

You can post your code.

const serverUrl = "XXXX";
const appId = "XXXX";
Moralis.start({ serverUrl, appId });

async function login() {
    let user = Moralis.User.current();`Preformatted text`
    if (!user) {
      user = await Moralis.authenticate();
    console.log("logged in user:", user);

async function sell() {
    try {
        // const expirationTime = Math.round( / 1000 + 60 * 60 * 24);
        await Moralis.Plugins.opensea.createSellOrder({
        network: 'testnet',
        tokenAddress: '0x07e78Fa46472eb0834DB4Ad1fD7F708C5727F475',
        tokenId: '1',
        tokenType: 'ERC721',
        userAddress: '0xE5AF356c1C95fECd984593f00412a9F9F6caC530',
        startAmount: 1,
        endAmount: 1,
        // expirationTime: expirationTime, Only set if you startAmount > endAmount
    } catch (error) {

I also add this in HTML
<script src=""></script> <script src=""></script>

Is this a contract address on rinkeby? I could not find this on etherscan.

Opensea plugin only supports mainnet and rinkeby testnet.

it’s smart contract on the Mumbai network. I don’t know if Moralis support selling NFT minted from Polygon network, because our application is using Polygon network and I want to sell it to Opensea

The docs says it only supports ETH mainnet and Rinkeby, so you won’t be able to use the OpenSea plugin with that contract.

do you know any way to solve my case? Hope everybody help please

Sorry I can’t find another way to create a sell order from code. The OpenSea SDK also doesn’t seem to support Polygon currently.

Thanks for your reply