0

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

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

Thanks in advance

0

1 Answer 1

0

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, which as of v0.16.3 is 400,000, which also happens to be the maximum size of 1 block.

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

6
  • Thank you JBaczuk, What is the solution? Should I stop sending small amounts as tips? Sep 27, 2018 at 13:15
  • 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
    Sep 27, 2018 at 13:23
  • Yes, I am getting small tips... how can I sweep all dust? Do I need to install new wallet or any other way? Sep 29, 2018 at 2:11
  • Just send some back to yourself
    – JBaczuk
    Sep 29, 2018 at 4:06
  • Can I use move instead of sendFrom for the transaction of small tips? Will move create dust and block me from large amount tx? Sep 29, 2018 at 13:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.