# What is a Counterparty API Error?

This error occurs when the <mark style="color:yellow;">Counterparty Protocol API rejects the transaction</mark> you were trying to create.

As discussed in the [Counterparty API Communication Error!](counterparty-api-communication-error) section in this User Manual, the first step to do in this situation is <mark style="color:yellow;">Reset your Server Settings to Default</mark>.\
\
If resetting your server settings does not help, it is most likely an issue with the underlying Counterparty Protocol and API. In this situation <mark style="color:yellow;">it is important to log your issue carefully</mark> to help the current developers of the Counterparty Protocol.

Below is an example of what a Counterparty API might look like in Freewallet 2.0.1:\


<figure><img src="https://3285406617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHOAdveIkUtULHe7q3v2%2Fuploads%2FMPw97X4t1cNEwqIBLCO2%2Fphoto_2024-10-31_08-55-43.jpg?alt=media&#x26;token=8ea142be-c2e5-40d4-b72b-76338902b059" alt=""><figcaption></figcaption></figure>

Because these errors are not Freewallet related, but related entirely to the Counterparty protocol it is best to [file an issue in the Counterparty Github](https://github.com/CounterpartyXCP/counterparty-core/issues/new) if you are having problems creating transactions and seeing a "Counterparty API Error(s)" message.

Make sure to <mark style="color:yellow;">include a list of the steps to reproduce the unexpected behavior, screenshots of the issue and your</mark> [debug history](../common-questions-using-freewallet-faq/how-do-i-use-the-debug-function-on-freewallet) to help the Counterparty developers as much as you can to pin down bugs in the protocol.

\---

At this time <mark style="color:yellow;">the most common issue</mark> for Counterparty API Errors is due to a change in [Minting Open Fairmints](../freewallet-functions/minting-open-fairmints). This example error might look like this:

<figure><img src="https://3285406617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIHOAdveIkUtULHe7q3v2%2Fuploads%2FspzQWPIbD3JBvTeh5gSw%2Fphoto_2024-11-01_00-50-55.jpg?alt=media&#x26;token=176d6603-9fba-4145-bd7d-5ffe7411c253" alt=""><figcaption><p>Minting Open Fairmint error 'quantity is not allowed for free fairminters'</p></figcaption></figure>

In this example above, <mark style="color:yellow;">the solution is to change your Amount to "0"</mark>.

With previous releases of Counterparty, you were allowed to specify the amount you wanted to mint in a fair mint. \
\
With a recent release of the Counterparty protocol, it seems that logic has been changed so that in “free” fair mints, you are no longer allowed to specify the quantity that you want to mint, and instead the maximum amount you’re allowed to mint is automatically minted when u enter a quantity of 0.

There is another type of fair mint where a user is charged a fee for minting, and if you are minting on this type of a fair mint, then you are allowed to specify a quantity.
