Bitcoin Forum

Bitcoin => Electrum => Topic started by: t3rk3l on March 28, 2019, 09:44:13 AM



Title: Electrum transaction error
Post by: t3rk3l on March 28, 2019, 09:44:13 AM
Hi,

I'm noob, so please have mercy :)

I tried Electrum for the very first time.
Already recieved 2 transactions, so it seems to be working properly.
But I can't broadcast any transactions to send BTC.
Always the same error:

The server returned an error when broadcasting the transaction.
Consider trying to connect to a different server, or updating Electrum.

scriptpubkey

I changed server several times and the software is up to date (3.3.4).
Please help me, I'm very desperated.


Title: Re: Electrum transaction error
Post by: LoyceV on March 28, 2019, 09:48:18 AM
Are you by any chance trying to send a very small amount of Bitcoin? That's the first possible reason (https://www.reddit.com/r/Bitcoin/comments/aaee97/is_electrum_desktop_wallet_down_getting_error/) I find for this error.


Title: Re: Electrum transaction error
Post by: t3rk3l on March 28, 2019, 09:51:46 AM
What's small for you?
I was trying to send 2 mBTC.


Title: Re: Electrum transaction error
Post by: LoyceV on March 28, 2019, 09:57:52 AM
What's small for you?
I was trying to send 2 mBTC.
The minimum is 0.0546 mBTC (https://support.blockchain.com/hc/en-us/articles/210354003-What-is-the-minimum-amount-I-can-send-), so that's not the cause.


Title: Re: Electrum transaction error
Post by: t3rk3l on March 28, 2019, 10:07:56 AM
2FA is neither. Tried with and without.


Title: Re: Electrum transaction error
Post by: t3rk3l on March 28, 2019, 10:21:26 AM
I'm using the seed. Seems I don't have an xpub.


Title: Re: Electrum transaction error
Post by: t3rk3l on March 28, 2019, 10:46:42 AM
BIG SORRY!!!

I was trying to send to an "adress" which is no BTC adress (starts with 9). Thought the number from "Inputs" of the transaction is the adress which sent the BTC to me... As I said: NOOB :(

Where in Electrum I can find the adress which sent the BTC to me?


Title: Re: Electrum transaction error
Post by: djhomeschool on March 28, 2019, 11:45:37 AM
If you provide us the receiving address (the address you received the btc on) we can tell you the address(es) that sent bitcoins to it.


Title: Re: Electrum transaction error
Post by: t3rk3l on March 28, 2019, 11:57:00 AM
Should be bc1q8dc9vgekxf3xjrczjl4gtg2sekrxs9zxvp997h2qrdhvugunmk5sxtptwc


Title: Re: Electrum transaction error
Post by: djhomeschool on March 28, 2019, 12:25:30 PM
Should be bc1q8dc9vgekxf3xjrczjl4gtg2sekrxs9zxvp997h2qrdhvugunmk5sxtptwc

https://btc.com/bc1q8dc9vgekxf3xjrczjl4gtg2sekrxs9zxvp997h2qrdhvugunmk5sxtptwc

here you can see who sent BTC to you


Title: Re: Electrum transaction error
Post by: joniboini on March 28, 2019, 12:57:25 PM
Where in Electrum I can find the adress which sent the BTC to me?

It should show up on your transaction history. If there'a a tx incoming to your wallet you can check the details and see the sender address.

Should be bc1q8dc9vgekxf3xjrczjl4gtg2sekrxs9zxvp997h2qrdhvugunmk5sxtptwc

Is this your receiving address or the sender address? I'm double checking this as it seems knowing the sender address won't really solve your problem.

Judging from your previous post, I think you have trouble finding the address that you need to send the money to? BTC address start with 1, 3, or bc1. You can read further about this on Bitcoin docs or simply Google "Bitcoin address".


Title: Re: Electrum transaction error
Post by: Abdussamad on March 28, 2019, 02:50:48 PM
An incorrect address would be caught by electrum itself and never make it to the server. The error you saw was generated by the server. The solution is to change servers and the way to do that is by right clicking on a server in the list and choosing use server. You do this on the server tab of the window that you get when you go to tools>network. Left clicking will not change servers.

To view a transaction's details right click on it on the history tab and choose to view details. Note there are no from addresses in bitcoin and you shouldn't be trying to attribute payments based on so called from addresses. Instead hand out a different address to each person you want to receive bitcoin from.


Title: Re: Electrum transaction error
Post by: Nikaniko319 on April 17, 2019, 10:47:09 AM
Hi guys, I need your help too. I have been using electrum for a year but a week ago something strange happened, when I try to send btc I have this notice

The server returned an error when broadcasting the transaction.
Consider trying to connect to a different server, or updating Electrum.
The transaction was rejected because it is too large (in bytes)
My electrum version is 3.3.4 for mac iOS

It is not about the fees or changing server, I have tried to change it all but nothing happens. I use seed and installed electrum on another device and finally was able to do 2 transactions but now the same thing I just can't send btc.

Please I need your advice what to do
I have another electrum wallet and there is no problem with it.


Title: Re: Electrum transaction error
Post by: bob123 on April 17, 2019, 11:42:40 AM
The transaction was rejected because it is too large (in bytes)

How large is your transaction ? How many inputs / outputs ?
The maximum size a transaction can have to be considered standard (non-standard tx's are going to be rejected by nodes) is 100kB. [1]



[1] https://github.com/bitcoin/bitcoin/blob/3c098a8aa0780009c11b66b1a5d488a928629ebf/src/policy/policy.h#L24 (https://github.com/bitcoin/bitcoin/blob/3c098a8aa0780009c11b66b1a5d488a928629ebf/src/policy/policy.h#L24)


Title: Re: Electrum transaction error
Post by: djhomeschool on April 17, 2019, 11:57:31 AM
The transaction was rejected because it is too large (in bytes)

How large is your transaction ? How many inputs / outputs ?
The maximum size a transaction can have to be considered standard (non-standard tx's are going to be rejected by nodes) is 100kB. [1]



[1] https://github.com/bitcoin/bitcoin/blob/3c098a8aa0780009c11b66b1a5d488a928629ebf/src/policy/policy.h#L24 (https://github.com/bitcoin/bitcoin/blob/3c098a8aa0780009c11b66b1a5d488a928629ebf/src/policy/policy.h#L24)

Indeed i think he is sending with alot of inputs (exchange addresses) making the script to large.


Title: Re: Electrum transaction error
Post by: LoyceV on April 17, 2019, 12:25:50 PM
It is not about the fees or changing server, I have tried to change it all but nothing happens. I use seed and installed electrum on another device and finally was able to do 2 transactions but now the same thing I just can't send btc.
If you're really creating a 100 kB transaction, you're going to want to read Fees are low, use this opportunity to Consolidate your small inputs! (https://bitcointalk.org/index.php?topic=2848987.0)
It explains how to select which inputs to use, and doing this correctly can save you a lot in fees.


Title: Re: Electrum transaction error
Post by: Nikaniko319 on April 17, 2019, 08:57:25 PM
Guys please tell step by step what should i do??


Title: Re: Electrum transaction error
Post by: djhomeschool on April 17, 2019, 09:12:15 PM
Guys please tell step by step what should i do??

You don't reply to the questions....


Title: Re: Electrum transaction error
Post by: Nikaniko319 on April 17, 2019, 09:18:23 PM
i dont know what size is for the transaction that was rejected
I have looked inputs\outputs for my previous transaction and average size is about 100-200 bytes


Title: Re: Electrum transaction error
Post by: nc50lc on April 18, 2019, 02:03:46 AM
i dont know what size is for the transaction that was rejected
I have looked inputs\outputs for my previous transaction and average size is about 100-200 bytes
Bob already mentioned it, it's 100kb or 100,000 bytes, it's displayed in the transaction's info if you click "Preview" in the "Send" Tab.

It seems like Electrum is trying to spend from too many inputs, just try to pick a few inputs with enough balance (about 30-60 inputs, refer on the steps below for the instructions on how to "coin control") from "coins" tab (View->Show Coins) and send it to the destination address.

Looks like you have a lot of small inputs in your wallet.
Try to consolidate your small inputs first:
  • Open Coins tab.
  • Select multiple inputs with small balance by holding "Shift" and Left click to highlight.
  • Right click to the highlighted inputs and Select "Spend", you'll be transferred to the "Send" tab.
  • From there, send to your own address and click "Max".... then, click "Preview", make sure the size is lesser than 100,000 bytes (100kb) in order to be valid.
  • This method requires confirmation too, it will take a while for you to spend the output specially if you set a low fee.


Title: Re: Electrum transaction error
Post by: bob123 on April 18, 2019, 06:37:57 AM
i dont know what size is for the transaction that was rejected

You don't know how much inputs you are consuming / outputs you are creating  ???

Look at the preview tab (before sending the transaction).

We need to know how large it is (either in Byte or in amount of inputs/outputs).


Title: Re: Electrum transaction error
Post by: Nikaniko319 on April 21, 2019, 12:08:50 PM
Inputs with small balance have total size 247 844 bytes


Title: Re: Electrum transaction error
Post by: HCP on April 21, 2019, 12:36:38 PM
That's a LOT of inputs being used! :o :o :o  and if you're saying they add up to "small balance" then you have a LOT of dust inputs.

How many inputs is it actually using for that transaction? It should display the number in ()'s on the preview window next to where it says "Inputs"...

My rough calculations would say that number is going to be in the 1450 to 1675 range.

Were you collecting tiny faucet payouts or something? ???


Title: Re: Electrum transaction error
Post by: Abdussamad on April 21, 2019, 05:58:25 PM
Inputs with small balance have total size 247 844 bytes

Did you try splitting the transaction into 2 or 3 as per nc50lc's post (https://bitcointalk.org/index.php?topic=5125487.msg50652601#msg50652601)?

BTW if you intend to send someone bitcoin now you don't necessarily have to send to your own address first. You can send to the recipient's address in 2-3 smaller transactions instead of one large one.


Title: Re: Electrum transaction error
Post by: Nikaniko319 on April 21, 2019, 07:08:41 PM
I had 2280 transactions,  what should I do to reduce the size of transactions???


Title: Re: Electrum transaction error
Post by: HCP on April 21, 2019, 08:09:33 PM
You'll need to use "coin control"... Use the "view -> show coins" menu option... Then click on the "coins" tab.

Then select a couple of hundred of the small value "coins" displayed, right click and select spend.

This will allow you to then consolidate all the selected coins into a single output of greater value. Repeat for as many times (selecting hundreds of small value coins) as necessary until you only have a couple of "large value" coins left.

That should enable you to then conduct one transaction that contains all your balance.

Note that EVERY transaction you create will require a fee... And as fees are based on the amount of data being included in a transaction, the consolidation transactions could get quite costly if you have a lot of inputs that are less than 1000 sats (0.00001000 btc).

I suggest you read LoyceV's very good post on output consolidation here: https://bitcointalk.org/index.php?topic=2848987.0


Title: Re: Electrum transaction error
Post by: pooya87 on April 22, 2019, 03:49:37 AM
I had 2280 transactions,  what should I do to reduce the size of transactions???

you can not reduce the size of a transaction now. it is too late for that. you already have a ton of "transaction outputs" which you have to spend each of them. and when you do that, each of them add extra bytes to your final transaction size.
what people have been explaining so far is a workaround to "split" the already big result into multiple chunks so that you can broadcast it since very big transactions are rejected by the network as nonstandard. so go back and read what they've suggested and do them!


Title: Re: Electrum transaction error
Post by: nc50lc on April 22, 2019, 04:03:51 AM
BTW if you intend to send someone bitcoin now you don't necessarily have to send to your own address first. You can send to the recipient's address in 2-3 smaller transactions instead of one large one.
Yes, if he really need to send it right now.
Though the fees will be extremely huge for any transaction amount specially if it's a bit urgent (@10-20sat/byte).
But it's better to consolidate the inputs now (1sat/byte is possible (https://jochen-hoenicke.de/queue/#0,24h)) before attempting to send anything to save fees.

So, if he's not in a hurry, he should consolidate first.