PictureNFT (Non-Fungible Token) dapp where users can create, list, sell, and tip creators:
-
Minting PictureNFTs: - Users can create unique PictureNFTs by uploading their digital artwork or images. - Each PictureNFT is represented by a distinct token on the blockchain, making it one-of-a-kind.
-
View Owned PictureNFTs: - Users can retrieve a list of PictureNFT IDs associated with their connected wallet address. - This allows them to keep track of their owned tokens.
-
Listing PictureNFTs for Sale: - Owners of PictureNFTs can set an asking price and list their tokens on the marketplace. - Potential buyers can view these listings and decide whether to purchase.
-
Exploring Marketplace Listings: - Users can browse the marketplace to discover available PictureNFTs. - Listings include details such as the creator, description, and asking price.
-
Buying PictureNFTs: - Interested buyers can purchase listed PictureNFTs by transferring the specified amount of the native cryptocurrency (e.g., SUI). - Ownership of the token is transferred upon successful purchase.
-
Tipping Creators: - Users who appreciate a particular PictureNFT can tip the creator directly. - Tipping fosters a supportive community and encourages artists to continue creating.
Remember, PictureNFTs represent digital art, photography, or other visual content, and their uniqueness is guaranteed by blockchain technology.
To deploy and use the smart contract, follow these steps:
-
Move Compiler Installation: Ensure you have the Move compiler installed. You can find the Move compiler and instructions on how to install it at Sui Docs.
-
Compile the Smart Contract: For this contract to compile successfully, please ensure you switch the dependencies to whichever you installed.
framework/devnetfor Devnet,framework/testnetfor Testnet
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/devnet" }then build the contract by running
sui move build
- Deployment: Deploy the compiled smart contract to your blockchain platform of choice.
sui client publish --gas-budget 100000000 --json