📘
DG Live
  • Introduction
    • 📗Introduction
  • Getting Started
    • 📗Getting Started
  • Marketplace
    • ⛏️Create a New NFT Collection
    • ⛏️Mint an Item in the Collection
    • 👮Metadata Standards
    • 💲Royalty Management
    • 🛍️Buying an item
    • 🛒Selling an item
  • Business Manager
    • 📗Getting Started
    • ⚙️Overview
    • 👱‍♂️Profile
    • 🏠Scenes
      • Scene implementation code
      • Scene Panorama
      • Scene Marketplace
        • Slots
        • Market panorama
      • Scene Scheduling
      • Scene Groups
      • Sharing a Scene
      • Deleting a Scene
    • 📈Market Analytics
    • 🔌API Auth
    • 📘API Reference
  • Developer Resources
    • 📊Marketplace Plugin
    • 🛒Marketplace SDK
      • ⚙️Installation
      • 📪Basic usage
    • 🌐Metaverse SDK
      • Basic Usage
      • Advanced Usage
    • 🔌API Reference
      • Marketplace Methods
      • Business Manager API
    • 📔Smart Contract Reference
      • Methods
        • Buy
        • Sell
        • Cancel
        • BuyForGift
        • isActive
        • getPrice
      • Events
        • Buy
        • Sell
        • Cancel
        • BuyForGift
  • Tutorials & Resources
    • 🏪Creating a metaverse store
      • Creating a Decentraland Scene
      • Create an account on the business manager
      • Place an item for sale
    • 🙌Sample Scene
  • Use Cases
    • ⏯️Exploring Use Cases
    • 🎨Digital Art Gallery in the Metaverse and Web
    • 🖥️NFT Gaming Platform
    • 🎮Virtual Concert Experience
    • 👔Fashion Industry and Virtual Avatars
Powered by GitBook
On this page
  1. Developer Resources
  2. Metaverse SDK

Basic Usage

To get started with the Metaverse SDK, follow these steps:

  1. Install the SDK on your Decentraland scene by running the following command: npm i -B dg-world-marketplace-sdk@latest

  2. Import the SDK into your project.

    import {
      DgWorldMarketplace,
      MarketplaceOptions,
    } from "dg-world-marketplace-sdk";
    
  3. Initialize the SDK with your scene Id credentials obtained from the Business Manager.

    new DgWorldMarketplace({  
    previewEnv: 'prod' as any,
      network: 'MATIC' as any,
      engine,
      zoneId: YOUR_ZONE_ID,
    });
  4. Thats it! .

PreviousMetaverse SDKNextAdvanced Usage

Last updated 2 years ago

🌐