Api/NFTERC721OrCompatibleApi
NFT (ERC-721 or compatible) API Reference
// Set your API Keys 👇 here
$sdk = new \Tatum\Sdk();
// MainNet API Call
$sdk->mainnet()->api()->nFTERC721OrCompatible();
// TestNet API Call
$sdk->testnet()->api()->nFTERC721OrCompatible();
Methods
Method | Description |
---|---|
addNftMinter() | Add a blockchain address as an NFT minter to an NFT smart contract |
addNftMinterKMS() | Add a blockchain address as an NFT minter to an NFT smart contract |
burnNft() | Burn an NFT |
burnNftAlgo() | Burn an NFT |
burnNftCelo() | Burn an NFT |
burnNftFlowKMS() | Burn an NFT |
burnNftFlowMnemonic() | Burn an NFT |
burnNftFlowPK() | Burn an NFT |
burnNftKMS() | Burn an NFT |
burnNftKMSCelo() | Burn an NFT |
burnNftKMSTron() | Burn an NFT |
burnNftTron() | Burn an NFT |
deployNft() | Deploy an NFT smart contract |
deployNftCelo() | Deploy an NFT smart contract |
deployNftCeloKMS() | Deploy an NFT smart contract |
deployNftFlowKMS() | Deploy an NFT smart contract |
deployNftFlowMnemonic() | Deploy an NFT smart contract |
deployNftFlowPK() | Deploy an NFT smart contract |
deployNftKMS() | Deploy an NFT smart contract |
deployNftTron() | Deploy an NFT smart contract |
deployNftTronKMS() | Deploy an NFT smart contract |
mintMultipleNft() | Mint multiple NFTs |
mintMultipleNftCelo() | Mint multiple NFTs |
mintMultipleNftFlowKMS() | Mint multiple NFTs |
mintMultipleNftFlowMnemonic() | Mint multiple NFTs |
mintMultipleNftFlowPK() | Mint multiple NFTs |
mintMultipleNftKMS() | Mint multiple NFTs |
mintMultipleNftKMSCelo() | Mint multiple NFTs |
mintMultipleNftKMSTron() | Mint multiple NFTs |
mintMultipleNftMinter() | Mint multiple NFTs |
mintMultipleNftTron() | Mint multiple NFTs |
mintNft() | Mint an NFT |
mintNftAlgorand() | Mint an NFT |
mintNftAlgorandKMS() | Mint an NFT |
mintNftCelo() | Mint an NFT |
mintNftExpress() | Mint an NFT |
mintNftExpressAlgorand() | Mint an NFT |
mintNftExpressSolana() | Mint an NFT |
mintNftFlowKMS() | Mint an NFT |
mintNftFlowMnemonic() | Mint an NFT |
mintNftFlowPK() | Mint an NFT |
mintNftKMS() | Mint an NFT |
mintNftKMSCelo() | Mint an NFT |
mintNftKMSTron() | Mint an NFT |
mintNftMinter() | Mint an NFT |
mintNftSolana() | Mint an NFT |
mintNftSolanaKMS() | Mint an NFT |
mintNftTron() | Mint an NFT |
nftGetBalanceErc721() | Get the NFTs from a specific smart contract that a blockchain address holds |
nftGetMetadataErc721() | Get NFT metadata |
nftGetProvenanceDataErc721() | Get NFT provenance information |
nftGetRoyaltyErc721() | Get NFT royalty information |
nftGetTokensByAddressErc721() | Get all NFTs that a blockchain address holds |
nftGetTokensByCollectionErc721() | Get all NFTs from a collection |
nftGetTransactErc721() | Get an NFT transaction by its hash |
nftGetTransactionByAddress() | Get NFT transactions on a blockchain address |
nftGetTransactionByToken() | Get NFT transactions for an NFT |
transferNft() | Transfer an NFT |
transferNftAlgo() | Transfer an NFT |
transferNftAlgoExpress() | Transfer an NFT |
transferNftAlgoKMS() | Transfer an NFT |
transferNftCelo() | Transfer an NFT |
transferNftFlowKMS() | Transfer an NFT |
transferNftFlowMnemonic() | Transfer an NFT |
transferNftFlowPK() | Transfer an NFT |
transferNftKMS() | Transfer an NFT |
transferNftKMSCelo() | Transfer an NFT |
transferNftKMSTron() | Transfer an NFT |
transferNftSolana() | Transfer an NFT |
transferNftSolanaKMS() | Transfer an NFT |
transferNftTron() | Transfer an NFT |
updateCashbackValueForAuthorNft() | Update NFT royalty information |
updateCashbackValueForAuthorNftCelo() | Update NFT royalty information |
updateCashbackValueForAuthorNftKMS() | Update NFT royalty information |
updateCashbackValueForAuthorNftKMSCelo() | Update NFT royalty information |
updateCashbackValueForAuthorNftKMSTron() | Update NFT royalty information |
updateCashbackValueForAuthorNftTron() | Update NFT royalty information |
verifySolanaNFT() | Verify an NFT in an NFT collection on Solana |
verifySolanaNFTKMS() | Verify an NFT in an NFT collection on Solana |
addNftMinter()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/add
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->addNftMinter(
\Tatum\Model\AddNftMinter $add_nft_minter,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$add_nft_minter | \Tatum\Model\AddNftMinter | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Add a blockchain address as an NFT minter to an NFT smart contract
2 credits per API call
Allow a blockchain address (the minter
parameter in the request body) to mint NFTs on your NFT smart contract (the contractAddress
parameter in the request body).
NOTE: Use this API only when you are using NFT Express with your own smart contract. For more information, see “Use your own smart contract to mint NFTs” in Mint an NFT. Do not use this API in any other case.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
Signing a transaction When allowing a blockchain address to mint NFTs, 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) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.
addNftMinterKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/add
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->addNftMinterKMS(
\Tatum\Model\AddNftMinterKMS $add_nft_minter_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$add_nft_minter_kms | \Tatum\Model\AddNftMinterKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Add a blockchain address as an NFT minter to an NFT smart contract
burnNft()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNft(
\Tatum\Model\BurnNft $burn_nft,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft | \Tatum\Model\BurnNft | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
100 credits per API call on Flow 2 credits per API call on the other blockchains
Destroy an NFT. Burning the NFT transfers it to an un-spendable blockchain address that no one can access.
This API is supported for the following blockchains:
- Algorand
- BNB Smart Chain
- Celo
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- TRON
Burning NFTs on Algorand You can burn only the NFTs that were minted with the address of the manager account specified in the manager
parameter in the minting call (see the MintNftExpressAlgorand
, MintNftAlgorand
, and MintNftAlgorandKMS
schemas of the request body).
Signing a transaction When burning an NFT, 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) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.
burnNftAlgo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftAlgo(
\Tatum\Model\BurnNftAlgo $burn_nft_algo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_algo | \Tatum\Model\BurnNftAlgo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftCelo(
\Tatum\Model\BurnNftCelo $burn_nft_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_celo | \Tatum\Model\BurnNftCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftFlowKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftFlowKMS(
\Tatum\Model\BurnNftFlowKMS $burn_nft_flow_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_flow_kms | \Tatum\Model\BurnNftFlowKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftFlowMnemonic()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftFlowMnemonic(
\Tatum\Model\BurnNftFlowMnemonic $burn_nft_flow_mnemonic,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_flow_mnemonic | \Tatum\Model\BurnNftFlowMnemonic | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftFlowPK()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftFlowPK(
\Tatum\Model\BurnNftFlowPK $burn_nft_flow_pk,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_flow_pk | \Tatum\Model\BurnNftFlowPK | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftKMS(
\Tatum\Model\BurnNftKMS $burn_nft_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_kms | \Tatum\Model\BurnNftKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftKMSCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftKMSCelo(
\Tatum\Model\BurnNftKMSCelo $burn_nft_kms_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_kms_celo | \Tatum\Model\BurnNftKMSCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftKMSTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftKMSTron(
\Tatum\Model\BurnNftKMSTron $burn_nft_kms_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_kms_tron | \Tatum\Model\BurnNftKMSTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
burnNftTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/burn
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->burnNftTron(
\Tatum\Model\BurnNftTron $burn_nft_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$burn_nft_tron | \Tatum\Model\BurnNftTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Burn an NFT
deployNft()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNft(
\Tatum\Model\DeployNft $deploy_nft,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft | \Tatum\Model\DeployNft | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
100 credits per API call on Flow 2 credits per API call on the other blockchains
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 (if the contract is deployed on Flow) or here (if the contract is deployed on any other supported blockchain).
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- TRON
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.
Cashback and provenance NFT smart contracts In addition to the general NFT contract, you can deploy the following types of NFT smart contracts for the supported blockchains except for Flow and TRON:
- Cashback NFT smart contract is an NFT smart contract that forces on-chain royalties to be paid every time an NFT is transferred, and the royalties are defined as a fixed value. The royalties are not OpenSea-compatible. To deploy an NFT smart contract as a cashback contract, deploy the contract with the
cashback
parameter set totrue
in the request body. - Provenance NFT smart contract is an NFT smart contract that forces on-chain royalties to be paid every time an NFT is transferred, and the royalties are defined as a percentage of the NFT price. The royalties are not OpenSea-compatible. To deploy an NFT smart contract as a provenance contract, deploy the contract with the
provenance
parameter set totrue
in the request body.
You can enable public minting for cashback and provenance 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 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 (that is, deploy the contract with the cashback
, provenance
, and publicMint
parameters either set to false
or not set at all in the request body). After you have deployed the NFT smart contract, add the Tatum minter address as an NFT minter to your smart contract.
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.
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) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.
deployNftCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftCelo(
\Tatum\Model\DeployNftCelo $deploy_nft_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_celo | \Tatum\Model\DeployNftCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftCeloKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftCeloKMS(
\Tatum\Model\DeployNftCeloKMS $deploy_nft_celo_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_celo_kms | \Tatum\Model\DeployNftCeloKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftFlowKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftFlowKMS(
\Tatum\Model\DeployNftFlowKMS $deploy_nft_flow_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_flow_kms | \Tatum\Model\DeployNftFlowKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftFlowMnemonic()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftFlowMnemonic(
\Tatum\Model\DeployNftFlowMnemonic $deploy_nft_flow_mnemonic,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_flow_mnemonic | \Tatum\Model\DeployNftFlowMnemonic | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftFlowPK()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftFlowPK(
\Tatum\Model\DeployNftFlowPK $deploy_nft_flow_pk,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_flow_pk | \Tatum\Model\DeployNftFlowPK | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftKMS(
\Tatum\Model\DeployNftKMS $deploy_nft_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_kms | \Tatum\Model\DeployNftKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftTron(
\Tatum\Model\DeployNftTron $deploy_nft_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_tron | \Tatum\Model\DeployNftTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
deployNftTronKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/deploy
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->deployNftTronKMS(
\Tatum\Model\DeployNftTronKMS $deploy_nft_tron_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$deploy_nft_tron_kms | \Tatum\Model\DeployNftTronKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Deploy an NFT smart contract
mintMultipleNft()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNft(
\Tatum\Model\MintMultipleNft $mint_multiple_nft,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft | \Tatum\Model\MintMultipleNft | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftCelo(
\Tatum\Model\MintMultipleNftCelo $mint_multiple_nft_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_celo | \Tatum\Model\MintMultipleNftCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftFlowKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftFlowKMS(
\Tatum\Model\MintMultipleNftFlowKMS $mint_multiple_nft_flow_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_flow_kms | \Tatum\Model\MintMultipleNftFlowKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftFlowMnemonic()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftFlowMnemonic(
\Tatum\Model\MintMultipleNftFlowMnemonic $mint_multiple_nft_flow_mnemonic,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_flow_mnemonic | \Tatum\Model\MintMultipleNftFlowMnemonic | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftFlowPK()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftFlowPK(
\Tatum\Model\MintMultipleNftFlowPK $mint_multiple_nft_flow_pk,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_flow_pk | \Tatum\Model\MintMultipleNftFlowPK | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftKMS(
\Tatum\Model\MintMultipleNftKMS $mint_multiple_nft_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_kms | \Tatum\Model\MintMultipleNftKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftKMSCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftKMSCelo(
\Tatum\Model\MintMultipleNftKMSCelo $mint_multiple_nft_kms_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_kms_celo | \Tatum\Model\MintMultipleNftKMSCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftKMSTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftKMSTron(
\Tatum\Model\MintMultipleNftKMSTron $mint_multiple_nft_kms_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_kms_tron | \Tatum\Model\MintMultipleNftKMSTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintMultipleNftMinter()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftMinter(
\Tatum\Model\MintMultipleNftMinter $mint_multiple_nft_minter,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_minter | \Tatum\Model\MintMultipleNftMinter | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
100 credits per API call on Flow 2 credits per API call on the other blockchains
Create multiple NFT Tokens and transfer them to destination account. Create and transfer any NFT tokens from smart contract defined in contractAddress.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- TRON This operation works in two modes. First mode works just like other NFT endpoints. Every time the funds are transferred, the transaction must be signed with the corresponding private key. No one should ever send it’s own private keys to the internet because there is a strong possibility of stealing keys and loss of funds. In this method, it is possible to enter privateKey or signatureId. PrivateKey should be used only for quick development on testnet versions of blockchain when there is no risk of losing funds. In production, Tatum KMS should be used for the highest security standards, and signatureId should be present in the request. Alternatively, using the Tatum client library for supported languages. Second mode enables you to mint on any custom NFT ERC-721 smart contract, on which specified minter address is approved as a minter. You don’t specify private key or signatureId, only minter address, from which the NFT will be minted. It means you perform mint multiple NFT request with following body:
{ "to": ["0x80d8bac9a6901698b3749fe336bbd1385c1f98f2"], "url": ["ipfs://QmXJJ6UF5WkF4WTJvsdhiA1etGwBLfpva7Vr9AudGMe3pj"], "tokenId": ["9876541124516"], "contractAddress":"0xcd2ada00c48a27faa5cc67f9a1ed55b89ddf7f77", "minter": "0x542b9ac4945a3836fd12ad98acbc76a0c8b743f5", "chain": "MATIC" }
The blockchain fee of the performed transaction is paid from the address connected with built-in private key and is debited in form of credits. The credits are debited only if NFT mint requests are performed with paid API key plan. We transform fee to the credits in accordance to the rates provided by the Tatum. If you want to batch mint on ERC-721 contract which is not deployed via Tatum API, your smart contract must contain this method:mintMultiple(address[] to, uint256[] tokenId, string[] uri): boolean
You can use addresses specified in the bellow table to be used as a minter.
Chain | Testnet address | Mainnet Address |
---|---|---|
MATIC | 0x542b9ac4945a3836fd12ad98acbc76a0c8b743f5 | 0xcf9e127455d28e7362380aec1b92ddee8200b295 |
BSC | 0xc16ae5e8c985b906935a0cadf4e24f0400531883 | 0xcf9e127455d28e7362380aec1b92ddee8200b295 |
ONE | 0x8906f62d40293ddca77fdf6714c3f63265deddf0 | 0xcf9e127455d28e7362380aec1b92ddee8200b295 |
ETH | 0x53e8577C4347C365E4e0DA5B57A589cB6f2AB848 | 0xcf9e127455d28e7362380aec1b92ddee8200b295 |
CELO | 0xBC2eBA680EE50d685cc4Fe65f102AA70AfB27D3F | 0xcf9e127455d28e7362380aec1b92ddee8200b295 |
KLAY | 0x80d8bac9a6901698b3749fe336bbd1385c1f98f2 | 0xcf9e127455d28e7362380aec1b92ddee8200b295 |
If there are not enough coins on any testnet address, feel free to send coins there.
mintMultipleNftTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint/batch
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintMultipleNftTron(
\Tatum\Model\MintMultipleNftTron $mint_multiple_nft_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintMultipleNftMinter200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_multiple_nft_tron | \Tatum\Model\MintMultipleNftTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintMultipleNftMinter200Response
Description
Mint multiple NFTs
mintNft()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNft(
\Tatum\Model\MintNft $mint_nft,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft | \Tatum\Model\MintNft | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNft
schema lets you mint NFTs natively on BNB Smart Chain, Ethereum, Harmony, Klaytn, KuCoin Community Chain, and Polygon and sign the transaction with your private key. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftAlgorand()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftAlgorand(
\Tatum\Model\MintNftAlgorand $mint_nft_algorand,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_algorand | \Tatum\Model\MintNftAlgorand | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftAlgorand
schema lets you mint NFTs natively on Algorand and sign the transaction with your private key. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftAlgorandKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftAlgorandKMS(
\Tatum\Model\MintNftAlgorandKMS $mint_nft_algorand_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_algorand_kms | \Tatum\Model\MintNftAlgorandKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftAlgorandKMS
schema lets you mint NFTs natively on Algorand and sign the transaction with your signature ID. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftCelo(
\Tatum\Model\MintNftCelo $mint_nft_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_celo | \Tatum\Model\MintNftCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftCelo
schema lets you mint NFTs natively on Celo and sign the transaction with your private key. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftExpress()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftExpress(
\Tatum\Model\MintNftExpress $mint_nft_express,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_express | \Tatum\Model\MintNftExpress | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftExpress
schema lets you mint NFTs on BNB Smart Chain, Celo, Ethereum, Harmony, Klaytn, and Polygon using NTF Express with the pre-built smart contract provided by Tatum. For more information, see “Use the pre-built smart contract provided by Tatum to mint NFTs” in Mint an NFT.
mintNftExpressAlgorand()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftExpressAlgorand(
\Tatum\Model\MintNftExpressAlgorand $mint_nft_express_algorand,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_express_algorand | \Tatum\Model\MintNftExpressAlgorand | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftExpressAlgorand
schema lets you mint NFTs on Algorand using NTF Express with the pre-built smart contract provided by Tatum. For more information, see “Use the pre-built smart contract provided by Tatum to mint NFTs” in Mint an NFT.
mintNftExpressSolana()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftExpressSolana(
\Tatum\Model\MintNftExpressSolana $mint_nft_express_solana,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_express_solana | \Tatum\Model\MintNftExpressSolana | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftExpressSolana
schema lets you mint NFTs on Solana using NTF Express with the pre-built smart contract provided by Tatum. For more information, see “Use the pre-built smart contract provided by Tatum to mint NFTs” in Mint an NFT.
mintNftFlowKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftFlowKMS(
\Tatum\Model\MintNftFlowKMS $mint_nft_flow_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_flow_kms | \Tatum\Model\MintNftFlowKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftFlowKMS
schema lets you mint NFTs natively on Flow and sign the transaction with your signature ID. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftFlowMnemonic()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftFlowMnemonic(
\Tatum\Model\MintNftFlowMnemonic $mint_nft_flow_mnemonic,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_flow_mnemonic | \Tatum\Model\MintNftFlowMnemonic | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftFlowMnemonic
schema lets you mint NFTs natively on Flow and sign the transaction with your wallet mnemonic. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftFlowPK()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftFlowPK(
\Tatum\Model\MintNftFlowPK $mint_nft_flow_pk,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_flow_pk | \Tatum\Model\MintNftFlowPK | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftFlowPK
schema lets you mint NFTs natively on Flow and sign the transaction with your private key. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftKMS(
\Tatum\Model\MintNftKMS $mint_nft_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_kms | \Tatum\Model\MintNftKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftKMS
schema lets you mint NFTs natively on BNB Smart Chain, Ethereum, Harmony, Klaytn, KuCoin Community Chain, and Polygon and sign the transaction with your signature ID. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftKMSCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftKMSCelo(
\Tatum\Model\MintNftKMSCelo $mint_nft_kms_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_kms_celo | \Tatum\Model\MintNftKMSCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftKMSCelo
schema lets you mint NFTs natively on Celo and sign the transaction with your signature ID. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftKMSTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftKMSTron(
\Tatum\Model\MintNftKMSTron $mint_nft_kms_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_kms_tron | \Tatum\Model\MintNftKMSTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftKMSTron
schema lets you mint NFTs natively on TRON and sign the transaction with your signature ID. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftMinter()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftMinter(
\Tatum\Model\MintNftMinter $mint_nft_minter,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_minter | \Tatum\Model\MintNftMinter | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftMinter
schema lets you mint NFTs on BNB Smart Chain, Celo, Ethereum, Harmony, Klaytn, and Polygon using the NTF minter, a special blockchain address provided by Tatum that will cover the minting fees. For more information, see “Use your own smart contract to mint NFTs” in Mint an NFT.
mintNftSolana()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftSolana(
\Tatum\Model\MintNftSolana $mint_nft_solana,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_solana | \Tatum\Model\MintNftSolana | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftSolana
schema lets you mint NFTs natively on Solana and sign the transaction with your private key. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftSolanaKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftSolanaKMS(
\Tatum\Model\MintNftSolanaKMS $mint_nft_solana_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_solana_kms | \Tatum\Model\MintNftSolanaKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftSolanaKMS
schema lets you mint NFTs natively on Solana and sign the transaction with your signature ID. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
mintNftTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/mint
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->mintNftTron(
\Tatum\Model\MintNftTron $mint_nft_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\MintNftExpress200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$mint_nft_tron | \Tatum\Model\MintNftTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\MintNftExpress200Response
Description
Mint an NFT
The MintNftTron
schema lets you mint NFTs natively on TRON and sign the transaction with your private key. For more information, see “Minting NFTs natively on a blockchain” in Mint an NFT.
nftGetBalanceErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/balance/{chain}/{contractAddress}/{address}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetBalanceErc721(
string $chain,
string $address,
string $contract_address,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\NftGetBalanceErc721200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$address | string | The blockchain address that you want to get the token balance of | |
$contract_address | string | The address of the NFT smart contract | |
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\NftGetBalanceErc721200Response
Description
Get the NFTs from a specific smart contract that a blockchain address holds
1 credit per API call
Get the NFTs minted on a specific smart contract (the contractAddress
path parameter in the request endpoint URL) that a blockchain address holds.
NOTE: This API works only for the NFT smart contracts deployed using the Tatum smart contract API.
This API is supported for the following blockchains:
- Algorand
- BNB Smart Chain
- Celo
- Elrond
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- Solana
- TRON
nftGetMetadataErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/metadata/{chain}/{contractAddress}/{tokenId}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetMetadataErc721(
string $chain,
string $contract_address,
string $token_id,
[ string $account, ]
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\NftMetadataErc721
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$contract_address | string | The blockchain address of the NFT to get metadata for | |
$token_id | string | The ID of the NFT to get metadata for<br/>Do <b>not</b> use this parameter if you are getting metadata for an NFT on Solana, this parameter is irrelevant on Solana. | |
$account | string | (Flow only) The account that holds the NFT | [optional] |
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\NftMetadataErc721
Description
Get NFT metadata
1 credit per API call
Get metadata of an NFT.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- Solana
- TRON
nftGetProvenanceDataErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/provenance/{chain}/{contractAddress}/{tokenId}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetProvenanceDataErc721(
string $chain,
string $contract_address,
string $token_id,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\NftProvenanceDataErc721[]
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$contract_address | string | The blockchain address of the NFT to get provenance information for | |
$token_id | string | The ID of the NFT to get provenance information for | |
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\NftProvenanceDataErc721[]
Description
Get NFT provenance information
1 credit per API call
Get provenance information for an NFT.
NOTE: This API works only for provenance NFT smart contracts.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
nftGetRoyaltyErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/royalty/{chain}/{contractAddress}/{tokenId}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetRoyaltyErc721(
string $chain,
string $contract_address,
string $token_id,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\NftRoyaltyErc721
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$contract_address | string | The blockchain address of the NFT to get royalty information for | |
$token_id | string | The ID of the NFT to get royalty information for<br/>Do <b>not</b> use this parameter if you are getting metadata for an NFT on Solana, this parameter is irrelevant on Solana. | |
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
Description
Get NFT royalty information
1 credit per API call
Get information about royalties for an NFT.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- Solana
- TRON
nftGetTokensByAddressErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/address/balance/{chain}/{address}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetTokensByAddressErc721(
string $chain,
string $address
): \Tatum\Model\NftTokenByAddressErc721[]
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$address | string | The blockchain address that you want to get the token balance of |
Return type
\Tatum\Model\NftTokenByAddressErc721[]
Description
Get all NFTs that a blockchain address holds
1 credit per API call + 5 credits for each owned NFT
Get all NFTs that a blockchain address holds. The NFTs are returned grouped by the smart contracts they were minted on.
This API is supported for the following blockchains:
- Algorand
- BNB Smart Chain - mainnet only
- Celo
- Ethereum
- Polygon
- Solana
On Solana and Algorand, if a blockchain address holds fewer than 50 NFTs, the API also returns each NFT’s metadata. If the metadata is not returned, you can obtain it using the API for getting NFT metadata.
nftGetTokensByCollectionErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/collection/{chain}/{address}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetTokensByCollectionErc721(
string $chain,
float $page_size,
string $address,
[ float $offset ]
): \Tatum\Model\NftTokenByCollectionErc721[]
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$page_size | float | Max number of items per page is 50. | |
$address | string | The blockchain address of the collection | |
$offset | float | Offset to obtain next page of the data. | [optional] |
Return type
\Tatum\Model\NftTokenByCollectionErc721[]
Description
Get all NFTs from a collection
1 credit per API call + 5 credits for each listed NFT
Get all NFTs from a collection (all the NFTs that were minted on the smart contract).
This API is supported for the following blockchains:
- Celo
- Ethereum
- Polygon
nftGetTransactErc721()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/transaction/{chain}/{hash}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetTransactErc721(
string $chain,
string $hash,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\NftGetTransactErc721200Response
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$hash | string | The hash (ID) of the NFT transaction | |
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\NftGetTransactErc721200Response
Description
Get an NFT transaction by its hash
1 credit per API call
Get an NFT transaction by its hash.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- TRON
nftGetTransactionByAddress()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/transaction/{chain}/{address}/{tokenAddress}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetTransactionByAddress(
string $chain,
string $address,
string $token_address,
float $page_size,
[ float $offset, ]
[ float $from, ]
[ float $to ]
): \Tatum\Model\NftTx[]
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$address | string | Account address you want to get balance of | |
$token_address | string | Address of the token smart contract | |
$page_size | float | Max number of items per page is 50. | |
$offset | float | Offset to obtain next page of the data. | [optional] |
$from | float | Transactions from this block onwards will be included. | [optional] |
$to | float | Transactions up to this block will be included. | [optional] |
Return type
Description
Get NFT transactions on a blockchain address
1 credit per API call
Get incoming and outgoing NFT transactions on a blockchain address.
This API is supported for the following blockchains:
- Celo
- Ethereum
- Polygon
nftGetTransactionByToken()
Example
#️⃣ Execute command in terminal
Request
GET
/v3/nft/transaction/tokenId/{chain}/{tokenAddress}/{tokenId}
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->nftGetTransactionByToken(
string $chain,
string $token_id,
string $token_address,
float $page_size,
[ float $offset, ]
[ float $from, ]
[ float $to ]
): \Tatum\Model\NftTx[]
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$chain | string | The blockchain to work with | |
$token_id | string | NFT Token ID. | |
$token_address | string | Address of the token smart contract | |
$page_size | float | Max number of items per page is 50. | |
$offset | float | Offset to obtain next page of the data. | [optional] |
$from | float | Transactions from this block onwards will be included. | [optional] |
$to | float | Transactions up to this block will be included. | [optional] |
Return type
Description
Get NFT transactions for an NFT
1 credit per API call
Get incoming and outgoing transactions for an NFT.
This API is supported for the following blockchains:
- Celo
- Ethereum
- Polygon
transferNft()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNft(
\Tatum\Model\TransferNft $transfer_nft,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft | \Tatum\Model\TransferNft | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
100 credits per API call on Flow 2 credits per API call on the other blockchains
Transfer an NFT from the smart contract (the contractAddress
parameter in the request body) to the specified blockchain address (the to
parameter in the request body).
In one API call, you can transfer only one NFT.
This API is supported for the following blockchains:
- Algorand
- BNB Smart Chain
- Celo
- Ethereum
- Flow
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- Solana
- TRON
For Ethereum, Celo, and BNB Smart Chain, transferring NFTs invokes the safeTransfer()
method.
Transferring NFTs on Algorand
- On Algorand, the recipient has to agree in advance to receive your NFT because Algorand charges users for storing NFTs on their addresses, and an Algorand blockchain address by default does not receive NFTs unless explicitly agreed. Before transferring an NFT, make sure that the recipient has agreed to receive the NFT to their address.
- If you want to transfer an NFT that was minted using NFT Express, use the
transferNftAlgoExpress
schema of the request body.NOTE: On the mainnet, Tatum covers your transaction fees for the NFT transfer and pays for them from its own blockchain address. Then, the fee amount paid by Tatum is converted to the number of credits, and these credits are deducted from the monthly credit allowance of your paid pricing plan. On the testnet, no credits are deducted from the monthly credit allowance.
Transferring NFTs on Solana If you want to transfer an NFT that was minted using NFT Express, use the transferNftSolana
or transferNftSolanaKMS
schema of the request body. In the request body:
- Set the
from
parameter to the address that you used in theto
parameter in the request body of the minting call. - Set the
to
parameter to the recipient’s address. - Set the
contractAddress
parameter to the address from thenftAddress
parameter returned in the response body of the minting call. - Set the
fromPrivateKey
/signatureId
parameter to the private key/signature ID of the blockchain address that you specified in thefrom
parameter.
Signing a transaction When transferring an NFT, 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) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.
NOTE: This does not apply to transferring NFTs that were minted on Algorand using NFT Express (see earlier in this section).
transferNftAlgo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftAlgo(
\Tatum\Model\TransferNftAlgo $transfer_nft_algo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_algo | \Tatum\Model\TransferNftAlgo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftAlgoExpress()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftAlgoExpress(
\Tatum\Model\TransferNftAlgoExpress $transfer_nft_algo_express,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_algo_express | \Tatum\Model\TransferNftAlgoExpress | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftAlgoKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftAlgoKMS(
\Tatum\Model\TransferNftAlgoKMS $transfer_nft_algo_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_algo_kms | \Tatum\Model\TransferNftAlgoKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftCelo(
\Tatum\Model\TransferNftCelo $transfer_nft_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_celo | \Tatum\Model\TransferNftCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftFlowKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftFlowKMS(
\Tatum\Model\TransferNftFlowKMS $transfer_nft_flow_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_flow_kms | \Tatum\Model\TransferNftFlowKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftFlowMnemonic()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftFlowMnemonic(
\Tatum\Model\TransferNftFlowMnemonic $transfer_nft_flow_mnemonic,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_flow_mnemonic | \Tatum\Model\TransferNftFlowMnemonic | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftFlowPK()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftFlowPK(
\Tatum\Model\TransferNftFlowPK $transfer_nft_flow_pk,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_flow_pk | \Tatum\Model\TransferNftFlowPK | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftKMS(
\Tatum\Model\TransferNftKMS $transfer_nft_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_kms | \Tatum\Model\TransferNftKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftKMSCelo()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftKMSCelo(
\Tatum\Model\TransferNftKMSCelo $transfer_nft_kms_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_kms_celo | \Tatum\Model\TransferNftKMSCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftKMSTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftKMSTron(
\Tatum\Model\TransferNftKMSTron $transfer_nft_kms_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_kms_tron | \Tatum\Model\TransferNftKMSTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftSolana()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftSolana(
\Tatum\Model\TransferNftSolana $transfer_nft_solana,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_solana | \Tatum\Model\TransferNftSolana | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftSolanaKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftSolanaKMS(
\Tatum\Model\TransferNftSolanaKMS $transfer_nft_solana_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_solana_kms | \Tatum\Model\TransferNftSolanaKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
transferNftTron()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/transaction
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->transferNftTron(
\Tatum\Model\TransferNftTron $transfer_nft_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$transfer_nft_tron | \Tatum\Model\TransferNftTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Transfer an NFT
updateCashbackValueForAuthorNft()
Example
#️⃣ Execute command in terminal
Request
PUT
/v3/nft/royalty
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->updateCashbackValueForAuthorNft(
\Tatum\Model\UpdateCashbackValueForAuthorNft $update_cashback_value_for_author_nft,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$update_cashback_value_for_author_nft | \Tatum\Model\UpdateCashbackValueForAuthorNft | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Update NFT royalty information
2 credits per API call
Update the value of the royalty cashback set for an NFT.
The royalty cashback value can be updated only from the address of the NFT author (the address that is listed as a royalty cashback receiver in the NFT royalty information). The royalty cashback value cannot be updated from the address of the NFT owner. In one API call, you can update the first value of the royalty cashback for the NFT author for one NFT.
To disable the royalties for the NFT completely, set it to 0.
This API is supported for the following blockchains:
- BNB Smart Chain
- Celo
- Ethereum
- Harmony
- Klaytn
- KuCoin Community Chain
- Polygon
- TRON
Signing a transaction When updating NFT royalty, 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) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.
updateCashbackValueForAuthorNftCelo()
Example
#️⃣ Execute command in terminal
Request
PUT
/v3/nft/royalty
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->updateCashbackValueForAuthorNftCelo(
\Tatum\Model\UpdateCashbackValueForAuthorNftCelo $update_cashback_value_for_author_nft_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$update_cashback_value_for_author_nft_celo | \Tatum\Model\UpdateCashbackValueForAuthorNftCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Update NFT royalty information
updateCashbackValueForAuthorNftKMS()
Example
#️⃣ Execute command in terminal
Request
PUT
/v3/nft/royalty
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->updateCashbackValueForAuthorNftKMS(
\Tatum\Model\UpdateCashbackValueForAuthorNftKMS $update_cashback_value_for_author_nft_kms,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$update_cashback_value_for_author_nft_kms | \Tatum\Model\UpdateCashbackValueForAuthorNftKMS | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Update NFT royalty information
updateCashbackValueForAuthorNftKMSCelo()
Example
#️⃣ Execute command in terminal
Request
PUT
/v3/nft/royalty
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->updateCashbackValueForAuthorNftKMSCelo(
\Tatum\Model\UpdateCashbackValueForAuthorNftKMSCelo $update_cashback_value_for_author_nft_kms_celo,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$update_cashback_value_for_author_nft_kms_celo | \Tatum\Model\UpdateCashbackValueForAuthorNftKMSCelo | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Update NFT royalty information
updateCashbackValueForAuthorNftKMSTron()
Example
#️⃣ Execute command in terminal
Request
PUT
/v3/nft/royalty
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->updateCashbackValueForAuthorNftKMSTron(
\Tatum\Model\UpdateCashbackValueForAuthorNftKMSTron $update_cashback_value_for_author_nft_kms_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$update_cashback_value_for_author_nft_kms_tron | \Tatum\Model\UpdateCashbackValueForAuthorNftKMSTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Update NFT royalty information
updateCashbackValueForAuthorNftTron()
Example
#️⃣ Execute command in terminal
Request
PUT
/v3/nft/royalty
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->updateCashbackValueForAuthorNftTron(
\Tatum\Model\UpdateCashbackValueForAuthorNftTron $update_cashback_value_for_author_nft_tron,
[ string $x_testnet_type = 'ethereum-sepolia' ]
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$update_cashback_value_for_author_nft_tron | \Tatum\Model\UpdateCashbackValueForAuthorNftTron | ||
$x_testnet_type | string | Type of Ethereum testnet. Defaults to Sepolia. Valid only for ETH invocations for testnet API Key. For mainnet API Key, this value is ignored. | [optional] [default to 'ethereum-sepolia'] |
Return type
\Tatum\Model\TransactionSigned
Description
Update NFT royalty information
verifySolanaNFT()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/verify
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->verifySolanaNFT(
\Tatum\Model\VerifySolanaNFT $verify_solana_nft
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$verify_solana_nft | \Tatum\Model\VerifySolanaNFT |
Return type
\Tatum\Model\TransactionSigned
Description
Verify an NFT in an NFT collection on Solana
2 credits per API call
Verify an NFT in an NFT collection on Solana. Verifying an NFT sets the Verified
parameter to true
for the NFT, which means that the NFT is really a part of the collection. To know more about Solana collections and verification, refer to the Solana user documentation.
The collection must be a sized collection that was introduced in Version 1.3 of the Metaplex Token Metadata program. The NFT must have been minted in this collection.
This API is supported only for Solana.
Signing a transaction When verifying an NFT, 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) and provide the signature ID instead of the private key in the API. Alternatively, you can use the Tatum JavaScript client.
verifySolanaNFTKMS()
Example
#️⃣ Execute command in terminal
Request
POST
/v3/nft/verify
Type signature
(new \Tatum\Sdk())->{mainnet/testnet}()->api()->nFTERC721OrCompatible()->verifySolanaNFTKMS(
\Tatum\Model\VerifySolanaNFTKMS $verify_solana_nftkms
): \Tatum\Model\TransactionSigned
Parameters
Name | Type | Description | Notes |
---|---|---|---|
$verify_solana_nftkms | \Tatum\Model\VerifySolanaNFTKMS |
Return type
\Tatum\Model\TransactionSigned
Description
Verify an NFT in an NFT collection on Solana