Create contract
Last updated
Last updated
An NFT contract is essentially a smart contract designed to handle NFTs on a blockchain. It governs how the NFTs are created, transferred, and interacted with. This contract holds all the necessary logic and data structures for minting new NFTs and managing their ownership.
The creation of an NFT contract is the deployment of a new smart contract on a specific blockchain. The concept of a contract can be considered as the creation of an NFT collection.
Let's start by defining your first contract. This contract will represent a collection for the NFTs. We will create a contract on the Polygon (MATIC) testnet chain.
HTTP
name
The name of your NFT collection/contract
String
✅
description
The description of your NFT collection/contract
String
✅
image
The image URL for your NFT collection/contract that will be displayed
String
✅
chain
This is the blockchain on which you want to create the contract on
String
✅
externalUrl
This can be any link such as a link to your website, landing page, etc.
String
✅
JSON
📘
Save the
result.id
from the response body. This is the deployment ID and it is used to check the status of the contract creation request.The
transactionHash
that is returned is the transction that created the contract on-chain.The
status
attribute indicates if the transaction has been mined yet.
JSON