# 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!](/freewallet.io-user-manual/troubleshooting-issues/counterparty-api-communication-error.md) 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:<br>

<figure><img src="/files/7D2wquwV62h3mSJBLidk" 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](/freewallet.io-user-manual/common-questions-using-freewallet-faq/how-do-i-use-the-debug-function-on-freewallet.md) 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.io-user-manual/freewallet-functions/minting-open-fairmints.md). This example error might look like this:

<figure><img src="/files/2dWjYSErRpDO8pHL2uPA" 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://davestaxcp.gitbook.io/freewallet.io-user-manual/troubleshooting-issues/what-is-a-counterparty-api-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
