Create your NFT Art Gallery
A simple NFT Collectibles contract where you can create a limited set of NFTs available
Details
  • All NFTs have the same price setPricePerPack
  • All NFTS are identified via the metadata via a baseURI & tokenURI
  • You can create an unlimited Amount of Packs or unlimited by providing limitedAmount as 0
  • You can set the tokenBaseURI Information Metadata for each NFT at setBaseTokenURI if you want all the NFTs to have the same base structure - examplehttps://bepronetwork.github.io/B.E.P.R.O/meta/
    • This will make the tokenID the suffix of the baseURI - for example for the NFT number 1, the tokenURI will be https://bepronetwork.github.io/B.E.P.R.O/meta/1 - structure as baseURI + tokenURI
    • Ensure the API returns data structures similar to this one
    • This will make systems such as opensea automatically gather the metadata for your NFT directly from your API
  • You can also set each one independently via the call setTokenURI({tokenID, URI}) - this will make it abandon the baseURI standard - structure as tokenURI
1
const { ERC721Collectibles } = require("bepro-js");
2
3
let erc721Contract = new ERC721Collectibles({
4
opt : { web3Connection : 'https://kovan.infura.io/v3' }
5
});
6
7
// Deploy
8
const res = await erc721Contract.deploy({
9
name: "Art | BEPRO",
10
symbol: "B.E.P.R.O",
11
limitedAmount: 100,
12
erc20Purchase: "0xDAI_ADDRESS", // tokenAddress,
13
feeAddress: "0xFEE_ADDRESS", // substitute with a given address for the purchase of the pack
14
});
15
16
// Assert Information - if already deployed
17
await erc721Contract.__assert();
18
19
// Set Pack Price
20
await erc721Contract.setPricePerPack({newPrice : 1000 /* $1000 DAI */});
21
22
// Access methods
23
let contractAddress = erc721Contract.getAddress();
Copied!
Looking for more functions?
See all available functions here
Copy link