Author

Topic: Is there anyway to send a transaction in electrum without a fee? (Read 180 times)

legendary
Activity: 3472
Merit: 10611
Thanks pooya, I got 5f5b9f016 as being 9999000010 on both that website and the built in python denary-to-hex converter, any  suggestions?

it needs a starting 0. the correct hex is 05-f5-b9-f0 this is 4 bytes but the amount field is 8 bytes so the remaining 4 bytes are empty/zero 00-00-00-00-05-f5-b9-f0 (big-endian). since this has to be little endian you must reverse this: f0-b9-f5-05-00-00-00-00 (note that you are reversing a hex not a strong so f0 which represents 1 byte remains f0 you are just rearranging the byteArray)

in python the hex() function doesn't include the leading zeroes. you can use the .str.zfill()
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
Thanks pooya, I got 5f5b9f016 as being 9999000010 on both that website and the built in python denary-to-hex converter, any  suggestions?
legendary
Activity: 3472
Merit: 10611
Warning: this is complicated and long. i posted this here just FYI. don't bother doing it because of its complication and the reason i mention in the end.

go to Send tab, enter the required information such as address to pay to, amount to pay,... and set a fee. now click preview to see your transaction. instead of signing it, click Copy to copy the hex of your unsigned transaction.
note the amount you are sending. lets say it is 1BTC and your fee was 0.0001 so your final amount after the fee would be 0.9999BTC.

now go to your transaction hex that you just copied.
find 99990000 satoshi in it which is f0b9f50500000000 in hex. replace it with 100000000 satoshi which is 00e1f50500000000 in hex (note that numbers are little endian).
you can use something like this: https://www.rapidtables.com/convert/number/decimal-to-hex.html to do the conversion and then manually reverse it and add the zeros to increase it to 8 bytes. eg. 99990000 is 05F5B9F0 reverse is F0B9F505 and pad with zeros F0B9F50500000000 (upper or lower case doesn't matter)
copy the edited hex.
go back to electrum, import the new tx, check it 10 times to see if you have not messed anything up! sign. viola you have a transaction with 0 fee.

problem?
you will have 2 problems.
1. propagating your tx. nodes will reject it because majority of them have set their minrelaytxfee to 1 satoshi/byte (mostly by default)
2. getting it to be mined. miners have also set that minrelaytxfee and won't accept any tx with 0 fee even if they see it and even if the blocks are 90% empty.
...believe me i tried...
legendary
Activity: 2618
Merit: 6452
Self-proclaimed Genius
I might have to downgrade a bit if there's no other solution.
Downgrading your Electrum wont help,
his 0.15 link points out to Bitcoin's repository URL which means that every node that runs a v0.15 client wont relay any 0 byte fee transactions.
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
To set fees manually, go to Tools, then Preferences
, Tick "edit fees manually"
Then you can set a fee you want.
Note that  0 fee transactions won't be relayed by nodes on the Bitcoin network since 0.15

Tried that.
It still sets a 1 sat per byte fee.
I might have to downgrade a bit if there's no other solution.
sr. member
Activity: 322
Merit: 363
39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD
To set fees manually, go to Tools, then Preferences
, Tick "edit fees manually"
Then you can set a fee you want.
Note that  0 fee transactions won't be relayed by nodes on the Bitcoin network since 0.15
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
I want to consolodate all my inputs and I would pay a fee (but I like round numbers too much) and miners already get the block reward anyway...

I'm not too fussed about the transaction EVER confirming, I just want to know if it's possible (and want to test my luck at getting it into a block).

I can use the console if it's easier to do it that way.
Jump to: