<blockquote>
<p>Transaction too large</p>
</blockquote>
<p>This is referring to the transaction size in bytes, not Bitcoin.</p>
<p>You need to send the Bitcoin in smaller chunks to yourself, or <em><strong>sweep the dust</strong></em>, as they say. This is because a transaction is made up of unspent outputs (UTXO) and since you are sending a large amount, you will likely have many small UTXO from all of the tips you're trying to spend. This increases the size of the transaction in bytes.</p>
<p>Bitcoin core will return that error if the transaction weight is greater than <a href="https://github.com/bitcoin/bitcoin/blob/v0.16.3/src/wallet/wallet.cpp#L2992" rel="nofollow noreferrer"><code>MAX_STANDARD_TX_WEIGHT</code></a>, which as of <code>v0.16.3</code> is <a href="https://github.com/bitcoin/bitcoin/blob/v0.16.3/src/policy/policy.h#L24" rel="nofollow noreferrer">400,000</a>, which is 10% of the <a href="https://github.com/bitcoin/bitcoin/blob/v0.16.3/src/consensus/consensus.h#L15" rel="nofollow noreferrer">maximum size of a block</a>.</p>
<p><strong>What is tx weight?</strong></p>
<blockquote>
<p>Transaction weight is defined as Base transaction size * 3 + Total
transaction size (ie. the same method as calculating Block weight from
Base size and Total size).</p>
<p>Virtual transaction size is defined as Transaction weight / 4 (rounded
up to the next integer).</p>
<p>Base transaction size is the size of the transaction serialised with
the witness data stripped.</p>
<p>Total transaction size is the transaction size in bytes serialized as
described in BIP144, including base data and witness data.  See <a href="https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#transaction-size-calculations" rel="nofollow noreferrer">BIP
141</a></p>
</blockquote>

CC BY-SA 4.0
2018-09-27T13:15:47.517Z
Thank you JBaczuk, What is the solution? Should I stop sending small amounts as tips?
Madhu Crypto
CC BY-SA 4.0
2018-09-27T13:23:45.340Z
Or you can sweep the dust so your inputs aren't so small before you send a larger tx. Are you receiving small tips on the address you're trying to send from?
JBaczuk
CC BY-SA 4.0
2018-09-29T02:11:38.540Z
Yes, I am getting small tips... how can I sweep all dust? Do I need to install new wallet or any other way?
Madhu Crypto
CC BY-SA 4.0
2018-09-29T04:06:06.130Z
Just send some back to yourself
JBaczuk
CC BY-SA 4.0
2018-09-29T13:52:39.370Z
Can I use **move** instead of **sendFrom** for the transaction of small tips? Will **move** create dust and block me from large amount tx?
Madhu Crypto
CC BY-SA 4.0
2018-09-29T13:54:36.823Z
**move** is a deprecated account feature, which is being removed in `v0.18.0` and is confusing. It will not solve the problem of trying to spend many small outputs since it doesn't create any transactions. You really need to make a few transactions to yourself to consolidate the many utxo from all the tips.
JBaczuk
CC BY-SA 4.0
2018-09-26T21:39:33.813Z
2024-01-17T16:10:39.460Z
2024-01-17T16:10:39.460Z
JBaczuk
<p>I made discord bot for fun with tips, soak and rains of altcoin. When I try to send large amount through the same bot. It is giving me "Transaction too large" error. I found the reason here: <a href="https://bitcoin.stackexchange.com/questions/9712/transaction-creation-failed/13518#13518">transaction creation failed</a></p>

<p>I need help with solving this issue. Can someone help me?</p>

<p>Thanks in advance</p>

<transactions><bitcoind><json-rpc><node.js><transaction-weight>
RPC command sendfrom is giving Transaction too large error
Madhu Crypto
# RPC command sendfrom is giving Transaction too large error

(Asked by: username_0 on 2018-09-26)

I made discord bot for fun with tips, soak and rains of altcoin. When I try to send large amount through the same bot. It is giving me "Transaction too large" error. I found the reason here: [transaction creation failed](https://bitcoin.stackexchange.com/questions/9712/transaction-creation-failed/13518#13518)

I need help with solving this issue. Can someone help me?

Thanks in advance

**Tags:** transactions, bitcoind, json-rpc, node.js, transaction-weight


---

## 1 answers

### Answer by username_1 on 2018-09-26. Score: 0 | Accepted answer

> Transaction too large

This is referring to the transaction size in bytes, not Bitcoin.

You need to send the Bitcoin in smaller chunks to yourself, or ***sweep the dust***, as they say. This is because a transaction is made up of unspent outputs (UTXO) and since you are sending a large amount, you will likely have many small UTXO from all of the tips you're trying to spend. This increases the size of the transaction in bytes.

Bitcoin core will return that error if the transaction weight is greater than [`MAX_STANDARD_TX_WEIGHT`](https://github.com/bitcoin/bitcoin/blob/v0.16.3/src/wallet/wallet.cpp#L2992), which as of `v0.16.3` is [400,000](https://github.com/bitcoin/bitcoin/blob/v0.16.3/src/policy/policy.h#L24), which is 10% of the [maximum size of a block](https://github.com/bitcoin/bitcoin/blob/v0.16.3/src/consensus/consensus.h#L15).

**What is tx weight?**

> Transaction weight is defined as Base transaction size \* 3 + Total
> transaction size (ie. the same method as calculating Block weight from
> Base size and Total size).
>
> Virtual transaction size is defined as Transaction weight / 4 (rounded
> up to the next integer).
>
> Base transaction size is the size of the transaction serialised with
> the witness data stripped.
>
> Total transaction size is the transaction size in bytes serialized as
> described in BIP144, including base data and witness data. See [BIP
> 141](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#transaction-size-calculations)

> **Comments:**
> **username_0**: Thank you username_1, What is the solution? Should I stop sending small amounts as tips?  
> **username_1**: Or you can sweep the dust so your inputs aren't so small before you send a larger tx. Are you receiving small tips on the address you're trying to send from?  
> **username_0**: Yes, I am getting small tips... how can I sweep all dust? Do I need to install new wallet or any other way?  
> **username_1**: Just send some back to yourself  
> **username_0**: Can I use **move** instead of **sendFrom** for the transaction of small tips? Will **move** create dust and block me from large amount tx?  
> **username_1**: **move** is a deprecated account feature, which is being removed in `v0.18.0` and is confusing. It will not solve the problem of trying to spend many small outputs since it doesn't create any transactions. You really need to make a few transactions to yourself to consolidate the many utxo from all the tips.  

---

