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! .

Last updated