- Minting: Minting of tokens to your wallet from the Sequence Builder
- Wallet Authentication: Use of Web SDK to authenticate a user
- Marketplace SDK set up: Basic Guide to Configure the Marketplace SDK
- Displaying collections: Retrieve and display the marketplace’s available collections.
- Listings and Offers: Enable users to list tokens for sale or make offers
1. Minting
The first step is to create a collectible from the Sequence Builder and mint a few tokens, which can be accomplished with this guide and to use thetokenId
you minted in the following steps to query and fulfill orders.
2. Wallet Authentication
For your project, you’ll need a way to authenticate your user with a wallet. For this guide we’ll use anEmbedded Wallet
with Web SDK
connector which can authenticate users using Google or Apple auth, in addition to user brought wallets like Coinbase or Metamask.
Install Packages
Either you can start from a great foundation with our Marketplace Boilerplate, which already includes all of this integrated with a great UI, or we will walk you through how to use React from scratch here. Start by creating a project in a folder of your name choosing:npm
<project_name> folder
pnpm
Create a config
config.ts
Make sure to add all the chainIds you’re going to use
Create a layout in the main.tsx
main.tsx
Authentication Component
To complete the Authentication, you will need the authentication componentApp.tsx
3. Marketplace SDK set up
Marketplace SDK is a comprehensive toolkit that seamlessly integrates our Marketplaces into applications. More about Marketplace SDKAdd the required CSS imports to your main styles file
index.css
Configure Tailwind CSS plugin in vite.config.ts
vite.config.ts
Add the Marketplace SDK config
config.ts
Add the Marketplace SDK Providers Alongside Your Web SDK Providers
main.tsx
4. Displaying collections
To display the marketplace collections we need to create a folder namedCollections
inside the src/components
directory. Within this folder, we will create two files: index.tsx
and Collection.tsx
.
Collection.tsx
index.tsx
5. Listings and Offers
This section is for integrating the listings and offers from our marketplace into our UI.Create a Types File
Before starting this, we need a file with some types for our components insidesrc/utils
. We’ll use this to type our functions and keep our codebase consistent and maintainable.
types.ts
Set Up the Collectibles Components
To create the Items page and its components, we need to add a new folder named Collectibles inside the src/components directory. Within this folder, we will create two files:index.tsx
and Collectible.tsx
.
Collectible.tsx
index.tsx
App.tsx
file
App.tsx