---
title: "Withdraw funds from the marketplace fee account on Solana"
method: POST
path: "/v3/blockchain/marketplace/withdraw/fee"
tags: ["Marketplace"]
---

# Withdraw funds from the marketplace fee account on Solana

`POST /v3/blockchain/marketplace/withdraw/fee`

## Request

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

/v3/blockchain/marketplace/withdraw/fee

**2 credits per API call**

Withdraw funds from the NFT marketplace fee account on Solana.

You can withdraw the funds only if you are the marketplace fee recipient.

This API is in **alpha** and is supported only for the mainnet on Solana.

**Signing a transaction**  
When withdrawing the funds, 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
  - WithdrawFromMarketplaceSolana
    - `chain` 'SOL', required: Blockchain to work with.
    - `contractAddress` string, required: Blockchain address of the smart contract
    - `from` string, required: Blockchain address of the marketplace fee recipient
    - `amount` string, required: Amount of funds to withdraw.
    - `fromPrivateKey` string, required: The private key of the marketplace fee recipient
  - WithdrawFromMarketplaceSolanaKMS
    - `chain` 'SOL', required: Blockchain to work with.
    - `contractAddress` string, required: Blockchain address of the smart contract
    - `from` string, required: Blockchain address of the marketplace fee recipient
    - `amount` string, required: Amount of funds to withdraw.
    - `signatureId` string, uuid, required: The KMS identifier of the private key of the marketplace fee recipient

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