Bitcoin Forum
July 03, 2024, 10:34:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is there anyway to send a transaction in electrum without a fee?  (Read 149 times)
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
June 21, 2018, 10:15:30 PM
 #1

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.
Xynerise
Sr. Member
****
Offline Offline

Activity: 322
Merit: 363

39twH4PSYgDSzU7sLnRoDfthR6gWYrrPoD


View Profile
June 21, 2018, 10:30:40 PM
 #2

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
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
June 21, 2018, 10:43:00 PM
 #3

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.
nc50lc
Legendary
*
Offline Offline

Activity: 2464
Merit: 5763


Self-proclaimed Genius


View Profile
June 22, 2018, 02:42:55 AM
 #4

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.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
pooya87
Legendary
*
Offline Offline

Activity: 3500
Merit: 10698



View Profile
June 22, 2018, 03:03:26 AM
Merited by bob123 (2), LeGaulois (1)
 #5

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...

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
June 22, 2018, 03:01:21 PM
 #6

Thanks pooya, I got 5f5b9f016 as being 9999000010 on both that website and the built in python denary-to-hex converter, any  suggestions?
pooya87
Legendary
*
Offline Offline

Activity: 3500
Merit: 10698



View Profile
June 22, 2018, 04:17:34 PM
 #7

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()

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!