<p>You have to spend your bitcoins in small amounts. I don't think there is any other way. Try to send as large as possible to pay less fees.</p>

<p>This piece of code is preventing QT from sending transactions that are larger than 100Kb. </p>

<pre><code>unsigned int nBytes = ::GetSerializeSize(*(CTransaction*)&amp;wtxNew, SER_NETWORK, PROTOCOL_VERSION);
                    if (nBytes &gt;= MAX_STANDARD_TX_SIZE)
                    {
                        strFailReason = _("Transaction too large");
                        return false;
                    }
                    dPriority /= nBytes;
</code></pre>

<p>MAX_STANDARD_TX_SIZE is MAX_BLOCK_SIZE_GEN/5 and MAX_BLOCK_SIZE_GEN is 500Kb.</p>

CC BY-SA 3.0
2013-10-01T14:31:44.903Z
This mean that if I will compile my own client (with blackjack hookers and without this part), I will be able to send them properly. But will this transaction be propagated?
Salvador Dali
CC BY-SA 3.0
2013-10-01T19:25:25.133Z
I don't think so. You will probably be able to create the transaction but fail at propogating to peers. Because there are similar checks like this for propogating. Even if you change the propogation methods too and propogate to peers, your peers wont propogate and the tx will fail.
Emre K.
CC BY-SA 3.0
2013-10-01T08:44:15.410Z
2013-10-01T08:44:15.410Z
Emre K.
<blockquote>
  <p>Transaction too large</p>
</blockquote>

<p>Is your wallet made up up of many, many small amounts? Have you visited any sites giving small amounts of Bitcoin away for "free"? If so, your client is coughing up on the fact that all the small transactions are costing more than the fee they incur to spend. </p>

CC BY-SA 3.0
2013-09-29T13:09:50.870Z
Mostly I received coins through mining. But I also was trying some free bitcoins services. Looking through history I see that I received some (~ 10) coins through micropayment. It sounds strange to me that the client refuse to use them, because with normal money I can spend them even if I have 100$ in cents.
Salvador Dali
CC BY-SA 3.0
2013-09-29T15:06:10.727Z
Transactions become more complex if they need to combine many input coins, and the entire world must validate them when they enter the block chain. Because of this, some limitations exist on the size of created transactios. You can first try sending smaller amounts to yourself, to combine the inputs already partially.
Pieter Wuille
CC BY-SA 3.0
2013-09-29T18:20:56.430Z
thanks @PieterWuille any idea how I can do this?
Salvador Dali
CC BY-SA 3.0
2013-09-29T12:46:44.210Z
2013-09-29T12:46:44.210Z
Anonymous
<p>I am using bitcoin Qt
version v0.7.0-beta and when I tried to send a transaction (1.5 bitcoins) I received a message</p>

<pre><code>transaction creation failed
</code></pre>

<p>what can be the reason? Few minutes ago I sent 0.1 bitcoins and it was accepted. Three hours ago I sent 0.3 bitcoins and it was accepted and received on the other side.</p>

<p>I tried to restart the wallet but this still happens.</p>

<p>P.S. I do have more than 1.5 bitcoins when I am trying to send them.</p>

<p>Just a few observations. I tried to send 0.3 and 0.5 bitcoins one more time and it works with both of them. </p>

<p>Just tried one more time to transfer some bitcoins to another account in BitCoin Qt (version v0.8.3-beta - the newest at the time of writing).</p>

<p>This time I am getting some additional error message, which is still is not useful.</p>

<pre><code>Transaction too large
</code></pre>

<p>and right after it another one</p>

<pre><code>Error: Transaction creation failed!
</code></pre>

<p><code>P.S.</code> just few days ago I updated the client to <code>v0.8.5-beta</code> but the problem still exist.
I really want to spend my bitcoins, but can not do this. I also tried different addresses. </p>

<bitcoin-core><error>
transaction creation failed
Salvador Dali
# transaction creation failed

(Asked by: username_0 on 2013-04-13)

I am using bitcoin Qt
version v0.7.0-beta and when I tried to send a transaction (1.5 bitcoins) I received a message

```
transaction creation failed

```

what can be the reason? Few minutes ago I sent 0.1 bitcoins and it was accepted. Three hours ago I sent 0.3 bitcoins and it was accepted and received on the other side.

I tried to restart the wallet but this still happens.

P.S. I do have more than 1.5 bitcoins when I am trying to send them.

Just a few observations. I tried to send 0.3 and 0.5 bitcoins one more time and it works with both of them.

Just tried one more time to transfer some bitcoins to another account in BitCoin Qt (version v0.8.3-beta - the newest at the time of writing).

This time I am getting some additional error message, which is still is not useful.

```
Transaction too large

```

and right after it another one

```
Error: Transaction creation failed!

```

`P.S.` just few days ago I updated the client to `v0.8.5-beta` but the problem still exist.
I really want to spend my bitcoins, but can not do this. I also tried different addresses.

**Tags:** bitcoin-core, error


---

## 2 answers

### Answer by username_2 on 2013-09-29. Score: 4 | Accepted answer

> Transaction too large

Is your wallet made up up of many, many small amounts? Have you visited any sites giving small amounts of Bitcoin away for "free"? If so, your client is coughing up on the fact that all the small transactions are costing more than the fee they incur to spend.

> **Comments:**
> **username_0**: Mostly I received coins through mining. But I also was trying some free bitcoins services. Looking through history I see that I received some (~ 10) coins through micropayment. It sounds strange to me that the client refuse to use them, because with normal money I can spend them even if I have 100$ in cents.  
> **username_3**: Transactions become more complex if they need to combine many input coins, and the entire world must validate them when they enter the block chain. Because of this, some limitations exist on the size of created transactios. You can first try sending smaller amounts to yourself, to combine the inputs already partially.  
> **username_0**: thanks @username_3 any idea how I can do this?  

---

### Answer by username_1 on 2013-10-01. Score: 2

You have to spend your bitcoins in small amounts. I don't think there is any other way. Try to send as large as possible to pay less fees.

This piece of code is preventing QT from sending transactions that are larger than 100Kb.

```
unsigned int nBytes = ::GetSerializeSize(*(CTransaction*)&wtxNew, SER_NETWORK, PROTOCOL_VERSION);
                    if (nBytes >= MAX_STANDARD_TX_SIZE)
                    {
                        strFailReason = _("Transaction too large");
                        return false;
                    }
                    dPriority /= nBytes;

```

MAX\_STANDARD\_TX\_SIZE is MAX\_BLOCK\_SIZE\_GEN/5 and MAX\_BLOCK\_SIZE\_GEN is 500Kb.

> **Comments:**
> **username_0**: This mean that if I will compile my own client (with blackjack hookers and without this part), I will be able to send them properly. But will this transaction be propagated?  
> **username_1**: I don't think so. You will probably be able to create the transaction but fail at propogating to peers. Because there are similar checks like this for propogating. Even if you change the propogation methods too and propogate to peers, your peers wont propogate and the tx will fail.  

---

