thepeanutgalleryandco / create-and-mint-nft-collection

This code repo has been created to help NFT enthusiasts to create their generative art via the Hashlips generative art codebase and then to utilize the NFTPort API service to upload their NFT files and finally mint them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] Cancel NFTs On Sale On Opensea

thepeanutgalleryandco opened this issue · comments

Summary

If a user decides to change their pricing strategy, then they want to be able to remove the items from being sale in an automated way.

Basic example

I want to move the price of my NFTs from 0.003 WETH to 0.0025 WETH to cater for pricing changes, then I would like to run a script that removes NFT editions X to Y. After this is done, I can run the sell_nfts script to put the items on sale again.

Motivation

Changing pricing strategies.

Added a new script that will allow users to remove their NFTs from being on sale like when they would like to change their pricing strategy or simply stop selling for a period of time.

  • Update the constants/account_details.js file's contract_address field with the contract that contains the NFTs that needs to be put up for sale. Also update the chain field with the chain that the NFT exists on.

  • Update the utils/opensea/cancel_on_sale_nfts.js script's fields

    • START_EDITION - Set the start edition of the collection where you want to start selling NFTs from.
    • END_EDITION - Set the end edition of the collection where you want to stop selling NFTs at.
    • walletPrivateKey - Set the private key of the wallet that you would like to import and use. Upon importing a private key, the imported wallet will automatically be chosen.