Krypto Pandaz
Krypto Pandaz

How to publish a large NFT collection on OpenSea: Part 1

Adam Tworkiewicz
Red Digit 7

--

You have been following the exponential growth of NFT transactions. You keep hearing about 12-year-olds who have made millions selling NFT’s. Perhaps you have even bought a few NFTs or even created a small collection yourself. You know that large NFT collections are where all the action is. I’m writing this in early February 2022. This is what the top collections chart by transaction volume looks like:

You need thousands of items to become a top-tier collection. How does one create such a large collection? It’s very different from building a small collection manually. In this article, we will describe how we published the Krypto Pandaz collection.

We will focus on the technical steps. We are not going to cover marketing, the initial sales process, and other activities that you need to get right to have a relevant NFT collection.

The technical process involves multiple steps. We have divided the content into 3 parts:

Part 1 (this story)

  • Decide which blockchain you want to use
  • Define a smart contract

Part 2

  • Create images and a metadata server

Part 3

  • Setup Infura
  • Add crypto to the wallet you will use to deploy the contract
  • Deploy the contract
  • Mint tokens
  • Setup your collection on OpenSea

Prerequisites

What skills do you need to have or hire? :

  • Understanding of how blockchains work
  • Solidity — smart contract definition language
  • A modern development language that can manipulate images and has libraries for web 3 — we will use TypeScript
  • Art skills to create image layers

Armed with these skills, we can start the process of generating a large NFT collection.

Decide which blockchain you want to use

OpenSea currently supports the following blockchains:

  1. Ethereum —the largest of all 3 in terms of NFT items published on OpenSea. It’s also the biggest in terms of spending. People spend 100x more on NFT’s on Ethereum than on NFT’s on Polygon. Ethereum’s problem is high gas fees. When you publish a contract, mint an NFT, or approve a transaction, it costs money. Especially minting NFT’s is expensive if you have thousands of tokens to create. At the time of writing, the costs of minting 10k tokens through a standard ERC-721 contract on Ethereum go in thousands of dollars.
  2. Polygon — Ethereum’s L2 network. It has much lower gas fees. It will cost you less than $100 to publish an ERC-721 contract and mint 10k NFT’s. The issue here is that people are spending 100x less on NFT’s on Polygon than on Ethereum.
  3. Klatyn — recently added by OpenSea. It’s compatible with Ethereum smart contracts. It has the smallest footprint on OpenSea. I’ve not explored it much.

For our first collection, we decided to go with Polygon. We were not comfortable with the upfront cost that Ethereum required. We wanted to learn the process and be OK with making mistakes with smaller amounts of money.

Define a smart contract

It’s time to define a Solidity contract. OpenSea supports so-called ERC 721 and ERC 1155 contracts:

  • ERC 721 — this standard describes how to store information about NFT ownership on Ethereum. It also defines what operations can be performed and how they happen. In most basic terms, an NFT is a place in a smart contract that can hold ownership information. There is no NFT metadata in the contract. When you buy an NFT, you instruct OpenSea to insert your wallet address in a map in the contract that manages the NFT.
  • ERC 1155 — this is an extension to ERC 721 and currency token contracts. It defines how to store many tokens and many NFT collections in a single contract. If you intend to deploy multiple NFT collections or want to mix an NFT collection with a token, ERC 1155 is the way to go.

Going forward, we will focus on ERC 721. It’s simpler and by far more popular than ERC 1155.

This is the simplest ERC 721 contract that will work with OpenSea:

Here are the elements that you want to adjust:

  • Lines 1, 8 — replace with your own token name
  • Lines 22, 26 — contract and metadata server URLs — for now, leave placeholders. We will cover the metadata server in Part 2.

Summary

In Part 1 we have learned about different blockchains that OpenSea supports. We also covered contract types and defined the simplest contract supported by OpenSea.

In Part 2, we will cover how to generate a large collection of different images. We will also talk about creating a metadata server that will describe the features of our images in a format understood by OpenSea.

Gift for thorough readers

You have read the entire story Leave us a private note on Medium with your wallet address and we will transfer you a Krypto Panda. If you have a preference for which Krypto Panda you would like to get, please include it in your message.

Continue to Part 2

--

--