---
title: "Deploy an NFT smart contract"
method: POST
path: "/v3/nft/deploy"
tags: ["NFT (ERC-721 or compatible)"]
---

# Deploy an NFT smart contract

`POST /v3/nft/deploy`

## Request

- Base URL: `https://api.tatum.io`
- URL: `https://api.tatum.io/v3/nft/deploy`
- Auth: API key in header `x-api-key`

/v3/nft/deploy

**2 credits per API call**

Deploy an NFT smart contract on the blockchain. In a deployed NFT smart contract, you can mint NFTs (one NFT at a time or multiple NFTs at once), burn, and transfer NFTs.

Smart contracts are standardized and audited. You can review the code of a deployed NFT smart contract [here](https://github.com/tatumio/smart-contracts/tree/master/contracts/tatum).

This API is supported for the following blockchains:

*   BNB Smart Chain
*   Celo
*   Ethereum
*   Harmony
*   Klaytn
*   KuCoin Community Chain
*   Polygon
*   TRON
*   Tezos
*   Flare
*   Cronos
*   Base
*   Avalanche
*   Fantom
*   Optimism

**General NFT smart contracts**  
By default, an NFT smart contract is deployed as a **general NFT smart contract compatible with OpenSea royalties**. This is a standard NFT contract with `AccessControl` and `Ownable`, enhanced with NFT batch minting. NFTs minted on this smart contract are compatible with OpenSea and its royalty structure.

You can enable **public minting** for smart contracts. By default, public minting is disabled, which means that only the blockchain address whose private key was used to create the smart contract or the blockchain addresses [added to the smart contract as NFT minters](#operation/NftAddMinter) will be able to mint NFTs for the contract. To enable public minting and allow anyone to mint NFTs on top of the smart contract, deploy the contract with the `publicMint` parameter set to `true` in the request body.

**NFT smart contracts and NFT Express**  
If you want to use NFT Express to mint NFTs on the deployed smart contract, deploy the smart contract as a general NFT smart contract.  
After you have deployed the NFT smart contract, [add the Tatum minter address as an NFT minter to your smart contract](#operation/NftAddMinter).

For the complete information about using NFT Express on your smart contract, see "Use your own smart contract to mint NFTs" in [Mint an NFT](#operation/NftMintErc721).

**Signing a transaction**  
When deploying an NFT smart contract, you are charged a fee for the transaction, and you must sign the transaction with the private key of the blockchain address from which the fee will be deducted.

Providing the private key in the API is not a secure way of signing transactions, because the private key can be stolen or exposed. Your private keys should never leave your security perimeter. You should use the private keys only for testing a solution you are building on the **testnet** of a blockchain.

For signing transactions on the **mainnet**, we strongly recommend that you use the Tatum [Key Management System (KMS)](https://github.com/tatumio/tatum-kms) and provide the signature ID instead of the private key in the API. Alternatively, you can use the [Tatum JavaScript client](https://github.com/tatumio/tatum-js/tree/v2).

## Query parameters

- `testnetType` 'ethereum-sepolia' | 'flare-coston' | 'flare-coston2' | 'flare-songbird': Specifies the testnet type. The default is ethereum-sepolia for Ethereum (ETH) currency and flare-coston for Flare (FLR) currency. Valid testnet types depend on the specified currency.

## Headers

- `x-testnet-type` Schema (unresolved $ref)

## Request body

- union
  - DeployNft
    - `chain` 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC' | 'FLR' | 'CRO' | 'BASE' | 'AVAX' | 'OPTIMISM' | 'FTM', required: The blockchain to work with
    - `name` string, required: Name of the NFT token
    - `symbol` string, required: Symbol of the NFT token
    - `fromPrivateKey` string, required: Private key of account address, from which gas for deployment of ERC721 will be paid. Private key, or signature Id must be present.
    - `publicMint` boolean: True if the contract is publicMint type. False by default.
    - `nonce` number: The nonce to be set to the transaction; if not present, the last known nonce will be used
    - `fee` CustomFee: The custom defined fee; if not present, will be calculated automatically
      - `gasPrice` string, required: The price for one gas unit (in Gwei)
      - `gasLimit` string, required: The maximum number of gas units that you are willing to spend on processing the transaction at the provided gas price
  - DeployNftCelo
    - `chain` 'CELO', required: The blockchain to work with
    - `name` string, required: Name of the NFT token
    - `publicMint` boolean: True if the contract is publicMint type. False by default.
    - `symbol` string, required: Symbol of the NFT token
    - `fromPrivateKey` string, required: Private key of account address, from which gas for deployment of ERC721 will be paid. Private key, or signature Id must be present.
    - `nonce` number: The nonce to be set to the transaction; if not present, the last known nonce will be used
    - `feeCurrency` 'CELO' | 'CUSD' | 'CEUR', required: The currency in which the transaction fee will be paid
    - `fee` CustomFee: The custom defined fee; if not present, will be calculated automatically
      - `gasPrice` string, required: The price for one gas unit (in Gwei)
      - `gasLimit` string, required: The maximum number of gas units that you are willing to spend on processing the transaction at the provided gas price
  - DeployNftTron
    - `chain` 'TRON', required: The blockchain to work with
    - `name` string, required: Name of the NFT token
    - `symbol` string, required: Symbol of the NFT token
    - `fromPrivateKey` string, required: Private key of account address, from which gas for deployment of ERC721 will be paid. Private key, or signature Id must be present.
    - `feeLimit` number, required: The maximum amount to be paid as the transaction fee (in TRX); deployment of a smart contract on TRON costs around 580 TRX
  - DeployNftKMS
    - `chain` 'ETH' | 'MATIC' | 'KCS' | 'ONE' | 'KLAY' | 'BSC', required: The blockchain to work with
    - `name` string, required: Name of the NFT token
    - `publicMint` boolean: True if the contract is publicMint type. False by default.
    - `symbol` string, required: Symbol of the NFT token
    - `index` number: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
    - `signatureId` string, uuid, required: Identifier of the private key associated in signing application. Private key, or signature Id must be present.
    - `nonce` number: The nonce to be set to the transaction; if not present, the last known nonce will be used
    - `fee` CustomFee: The custom defined fee; if not present, will be calculated automatically
      - `gasPrice` string, required: The price for one gas unit (in Gwei)
      - `gasLimit` string, required: The maximum number of gas units that you are willing to spend on processing the transaction at the provided gas price
  - DeployNftCeloKMS
    - `chain` 'CELO', required: The blockchain to work with
    - `name` string, required: Name of the NFT token
    - `symbol` string, required: Symbol of the NFT token
    - `index` number: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
    - `signatureId` string, uuid, required: Identifier of the private key associated in signing application. Private key, or signature Id must be present.
    - `nonce` number: The nonce to be set to the transaction; if not present, the last known nonce will be used
    - `publicMint` boolean: True if the contract is publicMint type. False by default.
    - `feeCurrency` 'CELO' | 'CUSD' | 'CEUR', required: The currency in which the transaction fee will be paid
    - `fee` CustomFee: The custom defined fee; if not present, will be calculated automatically
      - `gasPrice` string, required: The price for one gas unit (in Gwei)
      - `gasLimit` string, required: The maximum number of gas units that you are willing to spend on processing the transaction at the provided gas price
  - DeployNftTronKMS
    - `chain` 'TRON', required: The blockchain to work with
    - `from` string, required: Blockchain address to perform transaction from
    - `name` string, required: Name of the NFT token
    - `symbol` string, required: Symbol of the NFT token
    - `index` number: If signatureId is mnemonic-based, this is the index to the specific address from that mnemonic.
    - `signatureId` string, uuid, required: Identifier of the private key associated in signing application. Private key, or signature Id must be present.
    - `feeLimit` number, required: The maximum amount to be paid as the transaction fee (in TRX); deployment of a smart contract on TRON costs around 580 TRX
  - DeployNftTezos
    - `chain` 'TEZOS', required: The blockchain to work with
    - `ownerAddress` string, required: Public address that will be admin of the contract. Must be a valid address of the Tezos blockchain.
    - `metadata` object, required: Object of key-value pairs representing metadata of the contract. Keys must be strings, values can be strings, numbers, or booleans.
    - `fromPrivateKey` string, required: Private key of account address, from which fee and storage costs for deployment of Tzip12 contract will be paid.

## Response `200`

OK

- union
  - TransactionHash
    - `txId` string, required: The hash (ID) of the transaction
  - SignatureId
    - `signatureId` string, uuid, required: The internal Tatum ID of the prepared transaction for Key Management Sysytem (KMS) to sign<br/>This is different from the <code>signatureId</code> parameter that you provided in the request body. The <code>signatureId</code> parameter in the request body specifies the signature ID associated with the private key in KMS.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized. Not valid or inactive subscription key present in the HTTP Header.
- `403`: Forbidden. The request is authenticated, but it is not possible to perform the operation due to logical error or invalid permissions.
- `500`: Internal server error. There was an error on the server during the processing of the request.

---

[API](https://skmtc.dev/tatum/apis/smart-contracts.md) - [All operations](https://skmtc.dev/tatum/apis/smart-contracts/llms.txt) - [OpenAPI document](https://skmtc.dev/tatum/apis/smart-contracts/revisions/c0146043bb37?raw)
