We know how to bulk NFTs on OpenSea with the help of IPFS and ERC1155.
But, how we could set the price for them as well? Or in another word, how we could put them for sale all at once while we're minting NFTs?
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract NFTContract is ERC1155, Ownable {
using SafeMath for uint256;
constructor() ERC1155("ipfs://pathhhhh/{id}.json"){
for(uint i= 1; i<10000; i++){
_mint(msg.sender, i, 1, "");
}
}
}
Environment
Remix