# Error Composing Dispenser TX - Balance History

This error pops up when trying to create a dispenser on an address that has Bitcoin transaction history on it already.\
\
As explained in the [Setting up a Dispenser](/freewallet.io-user-manual/freewallet-functions/setting-up-a-dispenser.md) section:

There are a few ways to set up a dispenser:

* 1 - The 'old fashioned way' would be to pick an address you control and <mark style="color:yellow;">manually send the Token(s) you would like to dispense along with some BTC</mark> to cover the BTC fees associated with creating the dispenser to a brand new address (that is not your main used address). <mark style="color:green;">In this example, the "Source" and "Dispenser" outputs would be the same.</mark>
* 2 - Simply creating a Dispenser on your main "Address #1" (or whatever main address you use) and <mark style="color:yellow;">making sure you understand to not accidently send BTC to this address</mark> and 'accidently dispense' the token by refilling the address with Bitcoin. <mark style="color:green;">In this example, the "Source" and "Dispenser" outputs would be the same.</mark>
* 3 - Creating a brand-new address in Freewallet (that has Bitcoin history on it yet) and creating the dispenser on that new address without having to send Bitcoin or the Token(s) to it. This is the most common (and cheapest) way to set up a new Dispenser. <mark style="color:orange;">In this example, the "Source" and "Dispenser" outputs would be</mark> <mark style="color:orange;"></mark>*<mark style="color:orange;">**different**</mark>* <mark style="color:orange;"></mark><mark style="color:orange;">addresses as shown.</mark> \ <mark style="color:red;">- Take Note only 1 single dispenser can be made on a new address using this method. Any more dispensers you wish to create will have to use the "#1" method explained above.</mark>

This error usually pops up when you are using method #3 and are trying to open multiple dispensers on this separate new address you created:

<figure><img src="/files/SVoE8nrU6o8864XZ6bZG" alt=""><figcaption></figcaption></figure>

* If you do get this transaction through (which can happen if two tx's are confirmed in the same block), your dispenser will not be made and will not show on Tokenscan.io
* It will also show a "Error: \[404:] {"ip":"xxxxxxxxxx","message":"Error: Not Found","data":null}" message when looking up the transaction on xcp.dev

The fix for this is to use the Dispenser creating method #1 (the 'old fashioned way') which involves <mark style="color:yellow;">manually sending the assets you would like to dispense and creating a dispenser so the Source and Dispenser addresses are the same.</mark>


---

# 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/error-composing-dispenser-tx-balance-history.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.
