Candy Shop
  • 🍭Candy Shop
    • About Candy Shop
    • Why Candy Shop
    • Features & Services
    • Roadmap
    • Partnership
    • Team
  • 🛫SDK (For Developers)
    • Introduction
    • Solana
      • Creating Your Shop
      • Marketplace
      • Mint NFT
      • Edition Drop
      • Auctions
      • Credit Card Payments
      • Testing Your Shop
      • FAQ
    • Ethereum / Polygon
      • Creating Your Shop
      • Marketplace
      • FAQ
  • 🏝️No Code (For Everyone)
    • 🚧Coming soon...
  • 🧩Fractionalization
    • Introduction
    • How to Trade Fractions
    • Fees
    • FAQ
  • 💎Tokenomics
    • Notice & Disclaimer
    • The Token: LQN
  • 💼Legal
    • Candy Shop API Terms of Service
    • Privacy Policy
Powered by GitBook
On this page
  • Install Candy Shop
  • Use Candy Shop
  1. SDK (For Developers)
  2. Ethereum / Polygon

Creating Your Shop

(In Beta for Polygon, Ethereum coming soon)

PreviousEthereum / PolygonNextMarketplace

Last updated 2 years ago

Check out the in the Github repo and its deployed version .

Our Ethereum and Polygon shops are built on Opensea's smart contract, which is open source and the standard for NFT trading and auctions on EVM chains. Candy Shop provides a backend that powers marketplace features such as verified collections, filter, search and more.

You can create and configure your Candy Shop through the , including the following:

  • Create a shop with ETH, MATIC or an ERC20 token as transaction currency

  • Define and restrict NFT collections that can be bought and sold on your shop

Install Candy Shop

npm install @liqnft/candy-shop

or

yarn add @liqnft/candy-shop

Use Candy Shop

Create a CandyShop instance in your code base to use Candy Shop.

const candyShop = await EthCandyShop.initEthCandyShop({
  shopCreatorAddress: "0x36326211D644a78b74B92d69eebB475545Ef4537", // Candy Shop owner address
  treasuryMint: "0x0000000000000000000000000000000000000000", // Candy Shop transaction currency
  programId: "0x00000000006c3852cbEf3e08E8dF289169EdE581", // Candy Shop program ID
  env: "MUMBAI", // network
  settings: settings // (optional) additional shop settings
});

Network can take one of the following parameters:

  • Ethereum Mainnet: ETH

  • Ethereum Goerli Testnet: GOERLI

  • Polygon Mainnet: MATIC

  • Polygon Mumbai Testnet: MUMBAI

Additional Settings

You may pass an additional settings object to customize your shop:

  • priceDecimals: number

    • number of decimals to display for price numbers (default is 3)

  • volumeDecimals: number

    • number of decimals to display for volume numbers (default is 1)

Default settings

const settings = {
  priceDecimals: 3,
  volumeDecimals: 1,
};
🛫
example
here
Seaport
Admin Panel