NFT Marketplace

Introduction

This guide shows you how to create an Embeddable for your NFT Marketplace App.

Prerequisites

Before using an embeddable, you will need to have an App built to integrate into the embeddable. In this example, we will be using the NFT Marketplace App similar to the one built in the NFT Marketplace App. So before continuing with this guide make sure you have done the following:

Let's Get Started

Access Embeddables Page

Connect your wallet to the web-app. Go to the dashboard, and select "Embeddables" (the <> button) from the sidebar on the left of the page:

Similar to our Apps in the assets page, each embeddable you create is linked to your connected address and chain. This means changing the connected wallet or chain will change the available embeddables to view.

Setting up the Embeddable

To start a new embeddable, click on the " + New Embeddable" button:

This will open up a panel that has the configurations for your embeddable. Here you specify the following:

  1. The Coin Denom: The token micro-denomination to be used to buy from your application. Since I am using the Andromeda chain in this example, then I will use "uandr".

  2. App Name: The name of embeddable application. Will be presented as header in your embeddable page.

  3. Twitter URL: An optional url for the twitter account of the project that will be presented in the embeddable.

  4. Banner Image URL: An optional URL pointing at a banner image which will be displayed on your embeddable. Must start with "https://".

Adding the Type of Embeddable

Now we need to add the type of collection we are looking to embed. Since our App in this example uses the Marketplace ADO, then we need to select the marketplace embeddable. Press on "+ Add Collection", choose "Marketplace Embeddable" and click “Add Collection” again.

Configuring the Marketplace Embeddable

Adding the marketplace embeddable opens a new panel to configure. Here we need to specify the following:

It is recommended that you open the assets page in a separate tab to be able to copy the needed information as leaving the current page will delete your progress so far

  • Marketplace Address: The address of the marketplace component in the App whose NFT sales you want to have in your embeddable interface.

Go back to your Assets tab, open the App that contains your Marketplace component, then copy the address and paste it in the embeddable panel:

  • CW721 Address: The address of the CW721 component in the App. Also copy the address of your "cw721" ADO and paste it in the embeddable panel.

  • Collection Name: The consumer-facing name for this Embeddable. Name it whatever you wish!

  • Twitter URL: An optional url for the twitter account of the project that will be presented in the embeddable.

  • Featured Token Id: An optional token Id of the NFT token which you wish to display as the main face of your NFT collection.

Preview and Publish

Now that he embeddable panels are set up, we can publish our embeddable. Before publishing though, we can preview the interface to make sure it looks the way we want it:

  • Click Publish, which will invoke a preview/download popup

  • Preview: Click "Open Preview" to view your Embeddable’s preview page.

  • Name and Deploy: If everything looks good, go back and name your new Embeddable, then hit “Publish”.

Your embeddable is now live, after you approve the transaction.

Checking the Embeddable in your Web-App.

Go to the Embeddables page, click the ‘three dots menu’ (…) on the upper right corner of your new Embeddable, then click VIEW to see your new Embeddable.

Viewing and Sharing your Embeddables

Click the "Deployment" link on your Embeddable to view the Embeddable’s deployed page. This link can be shared with your users to be used to interact with your Application. In our case, they would be able to buy the NFTs.

Editing Embeddables

Clicking the Update button on your Embeddable's dropdown menu allows you to update the Embeddable’s details:

Last updated