Docs

Create batch listings on marketplaces

Adam Majmudar

You can now use our TypeScript SDK to create batches of listings on any of your marketplace contracts (both Marketplace and MarketplaceV3 are supported).

The API on Marketplace looks like the following

// To create a batch of direct listings
const listings = [..];
const results = await marketplace.direct.createListingsBatch(listings);
// Create a batch of auctions
const auctions = [..];
const results = await marketplace.auction.createListingsBatch(auctions);

And the API on MarketplaceV3 looks like this:

// Create a batch of direct listings
const listings = [..];
const results = await marketplace.directListings.createListingsBatch(listings);
// Create a batch of english auctions
const auctions = [..];
const results = await marketplace.englishAuctions.createAuctionsBatch(auctions)

Now you can create many listings with a single function call!