---
title: "Update the NFT marketplace fee"
method: PUT
path: "/v3/blockchain/marketplace/listing/fee"
tags: ["Marketplace"]
---

# Update the NFT marketplace fee

`PUT /v3/blockchain/marketplace/listing/fee`

## Request

- Base URL: `https://api.tatum.io`
- URL: `https://api.tatum.io/v3/blockchain/marketplace/listing/fee`
- Auth: API key in header `x-api-key`

/v3/blockchain/marketplace/listing/fee

**2 credits per API call**

Update the NFT marketplace fee.

You can update the marketplace fee only if you are the marketplace operator.

This API is supported for the following blockchains:

*   BNB Smart Chain
*   Celo
*   Ethereum
*   Harmony
*   Klaytn
*   Polygon
*   Solana (in **alpha**)

**Signing a transaction**  
When updating the NFT marketplace fee, 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).

## Request body

- union
  - UpdateFee
    - `chain` 'ETH' | 'ONE' | 'BSC' | 'KLAY' | 'MATIC', required: The blockchain to work with
    - `contractAddress` string, required: The blockchain address of the marketplace smart contract
    - `marketplaceFee` number, required: The percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to <code>100</code>; to set 10%, set this parameter to <code>1000</code>; to set 50%, set this parameter to <code>5000</code>, and so on.
    - `fromPrivateKey` string, required: The private key of the blockchain address from which the fee will be deducted
    - `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
  - UpdateFeeKMS
    - `chain` 'ETH' | 'ONE' | 'BSC' | 'KLAY' | 'MATIC', required: The blockchain to work with
    - `contractAddress` string, required: The blockchain address of the marketplace smart contract
    - `marketplaceFee` number, required: The percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to <code>100</code>; to set 10%, set this parameter to <code>1000</code>; to set 50%, set this parameter to <code>5000</code>, and so on.
    - `signatureId` string, uuid, required: The KMS identifier of the private key of the blockchain address from which the fee will be deducted
    - `index` number: (Only if the signature ID is mnemonic-based) The index of the address from which the fee will be deducted that was generated from the mnemonic
    - `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
  - UpdateFeeCelo
    - `chain` 'CELO', required: The blockchain to work with
    - `contractAddress` string, required: The blockchain address of the marketplace smart contract
    - `feeCurrency` 'CELO' | 'CUSD' | 'CEUR', required: The currency in which the transaction fee will be paid
    - `marketplaceFee` number, required: The percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to <code>100</code>; to set 10%, set this parameter to <code>1000</code>; to set 50%, set this parameter to <code>5000</code>, and so on.
    - `fromPrivateKey` string, required: The private key of the blockchain address from which the fee will be deducted
    - `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
  - UpdateFeeCeloKMS
    - `chain` 'CELO', required: The blockchain to work with
    - `contractAddress` string, required: The blockchain address of the marketplace smart contract
    - `feeCurrency` 'CELO' | 'CUSD' | 'CEUR', required: The currency in which the transaction fee will be paid
    - `marketplaceFee` number, required: The percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to <code>100</code>; to set 10%, set this parameter to <code>1000</code>; to set 50%, set this parameter to <code>5000</code>, and so on.
    - `signatureId` string, uuid, required: The KMS identifier of the private key of the blockchain address from which the fee will be deducted
    - `index` number: (Only if the signature ID is mnemonic-based) The index of the address from which the fee will be deducted that was generated from the mnemonic
    - `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
  - UpdateFeeSolana
    - `chain` 'SOL', required: The blockchain to work with
    - `contractAddress` string, required: The blockchain address of the marketplace smart contract
    - `marketplaceFee` number, required: The new percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to <code>100</code>; to set 10%, set this parameter to <code>1000</code>; to set 50%, set this parameter to <code>5000</code>, and so on.
    - `from` string, required: The blockchain address of the marketplace authority
    - `fromPrivateKey` string, required: The private key of the marketspace authority
  - UpdateFeeSolanaKMS
    - `chain` 'SOL', required: The blockchain to work with
    - `contractAddress` string, required: The blockchain address of the marketplace smart contract
    - `marketplaceFee` number, required: The new percentage of the amount that an NFT was sold for that will be sent to the marketplace as a fee. To set the fee to 1%, set this parameter to <code>100</code>; to set 10%, set this parameter to <code>1000</code>; to set 50%, set this parameter to <code>5000</code>, and so on.
    - `from` string, required: The blockchain address of the marketplace authority
    - `signatureId` string, uuid, required: The KMS identifier of the private key of the marketspace authority

## 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)
