Skip to main content

Create new NFT collection

Create and deploy a new ERC 721 contract for your NFT collection

Request Body required
  • name string required

    Name of the NFT collection

  • description string required

    Text description of the NFT which will be seen on NFT marketplaces

  • symbol string required

    Symbol of the NFT collection

  • ownerAddress string required

    The contract owner address. If you wish to own the contract, then set it as your wallet address

  • maxSupply integer

    Possible values: >= 1

    The maximum number of NFTs that can be minted in this collection. If not set the collection will have unlimited tokens

  • royaltiesShare integer

    Possible values: <= 10000

    Secondary market royalty rate in basis points (100 bps = 1%)

  • royaltiesAddress string

    Address for royalties. This defaults to ownerAddress

  • chain string

    Possible values: [polygon]

    Default value: polygon

    The blockchain where the Collection smart contract is deployed

Responses

Successful operation


Schema
  • id string

    Unique collection identifier. You will need this in order to mint NFTs

  • name string

    Name of the NFT collection

  • description string

    Text description of the NFT which will be seen on NFT marketplaces

  • symbol string

    Symbol of the NFT collection

  • ownerAddress string

    The contract owner address. If you wish to own the contract, then set it as your wallet address

  • maxSupply integer

    Possible values: >= 1

    The maximum number of NFTs that can be minted in this collection. If not set the collection will have unlimited tokens

  • royaltiesShare integer

    Possible values: <= 10000

    Secondary market royalty rate in basis points (100 bps = 1%)

  • royaltiesAddress string

    Address for royalties. This defaults to ownerAddress

  • chain string

    Possible values: [polygon]

    Default value: polygon

    The blockchain where the Collection smart contract is deployed

  • createdOn date-time

    The date and time when the object was created.

POST /collections

Authorization

type: apiKeyname: x-api-keyin: header
type: apiKeyname: x-public-keyin: header

Request

Base URL
https://toket-public-gateway-3cpfdsl0.uc.gateway.dev/v0
api_key
public_key
Body required
{
"name": "Toket NFT Collection",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"symbol": "NFT",
"ownerAddress": "0x0000000000000000000000000000000000000000",
"maxSupply": 1000,
"royaltiesShare": 0,
"royaltiesAddress": "0x0000000000000000000000000000000000000000",
"chain": "polygon"
}
curl -L -X POST 'https://toket-public-gateway-3cpfdsl0.uc.gateway.dev/v0/collections' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-api-key: <API_KEY_VALUE>' \
-H 'x-public-key: <API_KEY_VALUE>' \
--data-raw '{
"name": "Toket NFT Collection",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"symbol": "NFT",
"ownerAddress": "0x0000000000000000000000000000000000000000",
"maxSupply": 1000,
"royaltiesShare": 0,
"royaltiesAddress": "0x0000000000000000000000000000000000000000",
"chain": "polygon"
}'