📖
Bepro.Network
  • Welcome!
  • bepro-js
    • About BEPRO.JS
    • Start building
      • Installation
      • How To Guides
        • Create a Web3Connection
        • Create an ERC-20 Token
        • Create your NFT Art Gallery
        • Create other Project
    • Use Cases
    • How to Contribute
      • Create an Object
    • External Links
      • SDK Documentation
      • GitHub
  • BEPRO.Network
    • Why The Bepro.Network?
    • Protocol Workflow
    • The Bepro.Network
    • $BEPRO
    • Bug Bounty
  • Community
    • BEPRO Tokenomics
    • Discord Server
    • Support
Powered by GitBook
On this page

Was this helpful?

  1. bepro-js
  2. Start building
  3. How To Guides

Create your NFT Art Gallery

PreviousCreate an ERC-20 TokenNextCreate other Project

Last updated 3 years ago

Was this helpful?

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 will make systems such as 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

const { ERC721Collectibles } = require("bepro-js");

let erc721Contract = new ERC721Collectibles({
 opt : { web3Connection : 'https://kovan.infura.io/v3' }
});

// Deploy
const res = await erc721Contract.deploy({
    name: "Art | BEPRO",
    symbol: "B.E.P.R.O",
    limitedAmount: 100,
    erc20Purchase: "0xDAI_ADDRESS", // tokenAddress,
    feeAddress: "0xFEE_ADDRESS", // substitute with a given address for the purchase of the pack
  });

// Assert Information - if already deployed 
await erc721Contract.__assert();

// Set Pack Price
await erc721Contract.setPricePerPack({newPrice : 1000 /* $1000 DAI */});

// Access methods
let contractAddress = erc721Contract.getAddress();

Looking for more functions?

See all available functions

this one
opensea
here