Bitcoin Forum
November 18, 2024, 08:53:36 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Trx Fee  (Read 780 times)
chainofzee (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 14


View Profile
June 02, 2020, 02:57:58 PM
 #1

hi,

do we pay anything other than miners' fee for a transaction?
if not, why isn't it possible to send a dust even by setting the miner fee to zero?
AB de Royse777
Legendary
*
Offline Offline

Activity: 2674
Merit: 4156


Campaign Manager. My Telegram @Royse777


View Profile WWW
June 02, 2020, 03:02:57 PM
 #2

If no miner includes your Tx in a block then your Tx never gets confirmed so it's not going to work without paying the miners.

Quote
do we pay anything other than miners' fee for a transaction?
No, as I understand.

 
 BETFURY .....
██████▄██▄███████████▄█▄
█████▄█████▄████▄▄▄█
███████████████████
████▐███████████████████
███████████▀▀▄▄▄▄███████
██▄███████▄▀███▀█▀▀█▄▄▄█
▀██████████▄█████▄▄█████▀██
██████████▄████▀██▄▀▀▀█████▄
█████████████▐█▄▀▄███▀██▄
███████▄▄▄███▌▌█▄▀▀███████▄
▀▀▀███████████▌██▀▀▀▀▀█▄▄▄████▀
███████▀▀██████▄▄██▄▄▄▄███▀▀
████████████▀▀▀██████████
 
..... Leading iGaming Platform .....
 
UP TO 60%
A P R   B T C
S T A K I N G
 
 8,000+ 
GAMES
 
 HIGH ODDS 
SPORTSBOOK
█▀▀











█▄▄
USE CODE: BTEARN
 
.GET 50 FREE SPINS!.
▀▀█











▄▄█
[
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 02, 2020, 03:11:50 PM
 #3

do we pay anything other than miners' fee for a transaction?

No.


if not, why isn't it possible to send a dust even by setting the miner fee to zero?

Because the minimum fee is 1 sat/B.
Anything below that, won't get relayed by the nodes. Therefore such a transaction would never reach a miner and would never be included.
If you are running a mining pool, you are of course free to include 0 sat/B transactions. They are valid. It is just that they won't get relayed by nodes.

A dust output is an output which costs more in fees to be transferred. You would lose money transferring it.

chainofzee (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 14


View Profile
June 02, 2020, 04:24:07 PM
 #4

thank u both;very useful answers Smiley
Csmiami
Copper Member
Legendary
*
Offline Offline

Activity: 1652
Merit: 1325


I'm sometimes known as "miniadmin"


View Profile WWW
June 02, 2020, 06:59:44 PM
 #5

Since this thread is in the Electrum board; I'd like to point out that in the event of using Electrum with 2FA, you do pay a fee to TrustedCoin. The charge the following fees, depending on what you choose:

Pay every 20 transactions:   0.00005 BTC/tx        0.001 BTC total
Pay every 100 transactions:   0.000025 BTC/tx        0.0025 BTC total

Other than that, the only fee that you pay goes to miners (in Electrum)

Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3139



View Profile
June 02, 2020, 08:32:10 PM
 #6

Because the minimum fee is 1 sat/B.
Anything below that, won't get relayed by the nodes. Therefore such a transaction would never reach a miner and would never be included.

minRelayFee is freely configurable by node operators, so there should be some nodes accepting < 1 sat/byte transactions. As far as I remember, the default value was supposed to be decreased in some Bitcoin Core update, but I am not sure if it's still relevant. I could only find this.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 03, 2020, 10:45:15 AM
Merited by ABCbits (1)
 #7

minRelayFee is freely configurable by node operators, so there should be some nodes accepting < 1 sat/byte transactions. As far as I remember, the default value was supposed to be decreased in some Bitcoin Core update, but I am not sure if it's still relevant. I could only find this.

While this is true, i doubt that a lot of people did change their settings to relay transactions with a fee lower than 1 sat/B.
The majority of the network won't accept them, and it will probably never reach a miner (and even if it does, i doubt they would accept them given the fact that there are almost always transactions with at least 1 sat/B waiting to get confirmed).

konfuzius5278
Member
**
Offline Offline

Activity: 637
Merit: 11


View Profile WWW
June 03, 2020, 11:17:50 AM
 #8

Just I am curious:
There is also a minimum Transaction size I think in Bitcoin Core. Yuu can not send 100 sat.

I tried that when I wanted to send 100 sat to Waren Buffet wallet.


Interesting Link for german chronical pain illness patients: https://www.quick-green.com/
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 03, 2020, 11:39:34 AM
Merited by ABCbits (1)
 #9

Just I am curious:
There is also a minimum Transaction size I think in Bitcoin Core. Yuu can not send 100 sat.

The size of a transaction is not determined by the amount of BTC you are transacting.
It is determined by the amount of Inputs and Outputs of a transaction. For a legacy transaction, thats ~192 bytes. Segwit is at ~138 vbytes (assuming  the minimum of 1 input and 1 output).
Whether this is 100 sats or 10 BTC doesn't matter as long as its 1 input.

You were not able to send 100 sats because the fee with 1 sat/B (smallest fee for your TX to be relayed) and more than 100 bytes in transaction size, results in a fee higher than the amount you are going to send.
You would be generating a dust output. And therefore the electrum server did not accept that.



Pmalek
Legendary
*
Offline Offline

Activity: 2954
Merit: 7563


Playgram - The Telegram Casino


View Profile
June 03, 2020, 07:44:52 PM
 #10

You never specified where you are sending from. If it is from your own private wallet, you will only be paying the miners to include your transaction in a block. If you are sending or withdrawing from a 3rd party service, like an exchange, you are also paying withdrawal/service fees.   

▄▄███████▄▄███████
▄███████████████▄▄▄▄▄
▄████████████████████▀░
▄█████████████████████▄░
▄█████████▀▀████████████▄
██████████████▀▀█████████
████████████████████████
██████████████▄▄█████████
▀█████████▄▄████████████▀
▀█████████████████████▀░
▀████████████████████▄░
▀███████████████▀▀▀▀▀
▀▀███████▀▀███████

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
 
Playgram.io
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

▄▄▄░░
▀▄







▄▀
▀▀▀░░
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
██████▄▄███████▄▄████████
███▄███████████████▄░░▀█▀
███████████░█████████░░
░█████▀██▄▄░▄▄██▀█████░
█████▄░▄███▄███▄░▄█████
███████████████████████
███████████████████████
██░▄▄▄░██░▄▄▄░██░▄▄▄░██
██░░░░██░░░░██░░░░████
██░░░░██░░░░██░░░░████
██▄▄▄▄▄██▄▄▄▄▄██▄▄▄▄▄████
███████████████████████
███████████████████████
 
PLAY NOW

on Telegram
[/
chainofzee (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 14


View Profile
June 03, 2020, 07:55:45 PM
 #11

The size of a transaction is not determined by the amount of BTC you are transacting.
It is determined by the amount of Inputs and Outputs of a transaction. For a legacy transaction, thats ~192 bytes. Segwit is at ~138 vbytes (assuming  the minimum of 1 input and 1 output).
Whether this is 100 sats or 10 BTC doesn't matter as long as its 1 input.

how could sb include more than 1 inputs?
as I understand we could only have 1 input and 1/more outputs.
isn't that the case?
hosseinimr93
Legendary
*
Offline Offline

Activity: 2590
Merit: 5689



View Profile
June 03, 2020, 09:00:30 PM
Last edit: June 03, 2020, 09:25:08 PM by hosseinimr93
 #12

how could sb include more than 1 inputs?
as I understand we could only have 1 input and 1/more outputs.
isn't that the case?
You can send from any number of inputs to any number of outputs.

Let's say you have a wallet with addresses A and B. You receive 0.01 BTC in address A and 0.02 BTC in address B. If you want to send 0.03 BTC to someone, your wallet will send the 0.03 BTC from addresses A and B. Here the transaction you make includes 2 inputs.

Even if addresses A and B belong to different wallets, you can import both of them into a single wallet (if you have their private key) and send the entire balance or a part of that in a single transaction.

Go to a bitcoin explorer (e.g. Blockchain, Blockchair, blockstream). You can find numerous transactions with multiple inputs and multiple outputs.

▄▄███████▄▄
▄██████████████▄
▄██████████████████▄
▄████▀▀▀▀███▀▀▀▀█████▄
▄█████████████▄█▀████▄
███████████▄███████████
██████████▄█▀███████████
██████████▀████████████
▀█████▄█▀█████████████▀
▀████▄▄▄▄███▄▄▄▄████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀
.
 MΞTAWIN  THE FIRST WEB3 CASINO   
.
.. PLAY NOW ..
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
June 03, 2020, 09:21:51 PM
 #13

Just I am curious:
There is also a minimum Transaction sizeOutput Amount I think in Bitcoin Core. Yuu can not send 100 sat.
Sats are not related to transaction size.

The reason your transaction failed is because there are inbuilt mechanisms to prevent the creation of "dust"... as bob123 mentioned, "dust" is defined as any output that would cost more to spend than it is worth.

Currently, this is defined in the Bitcoin Core code as:
   // "Dust" is defined in terms of dustRelayFee,
    // which has units satoshis-per-kilobyte.
    // If you'd pay more in fees than the value of the output
    // to spend something, then we consider it dust.


    // A typical spendable non-segwit txout is 34 bytes big, and will
    // need a CTxIn of at least 148 bytes to spend:
    // so dust is a spendable txout less than
    // 182*dustRelayFee/1000 (in satoshis).
    // 546 satoshis at the default rate of 3000 sat/kB.


    // A typical spendable segwit txout is 31 bytes big, and will
    // need a CTxIn of at least 67 bytes to spend:
    // so dust is a spendable txout less than
    // 98*dustRelayFee/1000 (in satoshis).
    // 294 satoshis at the default rate of 3000 sat/kB.
NOTE: quoted edited for clarity.


So, if it is a "legacy" UTXO being created, it has to be at least 546 sats... if it is a "segwit" UTXO being created, it has to be at least 294 sats


I tried that when I wanted to send 100 sat to Waren Buffet wallet.
Try sending Warren Buffet 546 sats (or 294 if he has a segwit address) Tongue

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
bittraffic
Hero Member
*****
Offline Offline

Activity: 3080
Merit: 644


DGbet.fun - Crypto Sportsbook


View Profile WWW
June 03, 2020, 09:53:07 PM
 #14

how could sb include more than 1 inputs?
as I understand we could only have 1 input and 1/more outputs.
isn't that the case?
You can send from any number of inputs to any number of outputs.

Let's say you have a wallet with addresses A and B. You receive 0.01 BTC in address A and 0.02 BTC in address B. If you want to send 0.03 BTC to someone, your wallet will send the 0.03 BTC from addresses A and B. Here the transaction you make includes 2 inputs.

Even if addresses A and B belong to different wallets, you can import both of them into a single wallet (if you have their private key) and send the entire balance or a part of that in a single transaction.

Go to a bitcoin explorer (e.g. Blockchain, Blockchair, blockstream). You can find numerous transactions with multiple inputs and multiple outputs.


Wow that is something I learn today. If I have a bitcoincore wallet and import it to an electrum wallet that means both addresses are in my electrum app which all their BTC are added up? 

I haven't really explored much the wallets since I have only installed one, to be honest. Bitcoincore syncs too slow on my computer but I still have it with some coins on it. Now I might just try synchronizing it.

pooya87
Legendary
*
Offline Offline

Activity: 3640
Merit: 11039


Crypto Swap Exchange


View Profile
June 04, 2020, 02:42:12 AM
 #15

I tried that when I wanted to send 100 sat to Waren Buffet wallet.

Warren Buffet doesn't have a bitcoin wallet .... that is publicly known. whatever you think you have is a random address and when you send small amounts you are just spamming the bitcoin network and putting an unnecessary burden on all bitcoin nodes that have to store that pointless UTXO in their database and load it each time!

█▀▀▀











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











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

Activity: 1624
Merit: 2481



View Profile WWW
June 04, 2020, 08:10:48 AM
 #16

how could sb include more than 1 inputs?
as I understand we could only have 1 input and 1/more outputs.
isn't that the case?

You can include as many inputs and outputs as you want.
Of course there is a limit. The current limit for the maximum size of a transaction is ~100 kB. That's way higher than your transaction should get.

Note that if you receive multiple transactions to the same address, these are all different UTXO's.
If you receive 10 x 0.1 BTC to address X and send your whole BTC from address X, your transaction will have 10 inputs.



Wow that is something I learn today. If I have a bitcoincore wallet and import it to an electrum wallet that means both addresses are in my electrum app which all their BTC are added up? 

You can not directly import your core wallet into electrum.
And AFAIK you can't import private keys into an HD electrum wallet (not absolutely sure about that).

But if you create a wallet with your private keys from electrum and from core, yes. The BTC will add and you can send the whole amount in a single transaction.


chainofzee (OP)
Jr. Member
*
Offline Offline

Activity: 36
Merit: 14


View Profile
June 04, 2020, 08:37:31 AM
 #17

how could sb include more than 1 inputs?
as I understand we could only have 1 input and 1/more outputs.
isn't that the case?
You can send from any number of inputs to any number of outputs.

Let's say you have a wallet with addresses A and B. You receive 0.01 BTC in address A and 0.02 BTC in address B. If you want to send 0.03 BTC to someone, your wallet will send the 0.03 BTC from addresses A and B. Here the transaction you make includes 2 inputs.

Even if addresses A and B belong to different wallets, you can import both of them into a single wallet (if you have their private key) and send the entire balance or a part of that in a single transaction.

Go to a bitcoin explorer (e.g. Blockchain, Blockchair, blockstream). You can find numerous transactions with multiple inputs and multiple outputs.


Thanks Smiley
but how do we do that and y not combining b4 sending?

Say in this example:
https://www.blockchain.com/btc/tx/90dd555f7169a648f8954a455717489574c7cb8f0fce0f0b4e17804e5fbc4079
both of them belong to the same wallet (or address). how would u make it 2?
does the wallet have this feature? cause im seeing only one "pay to" option in my wallets.


or in this tx:
https://www.blockchain.com/btc/tx/ea012762ac74497e64c2e126d2e1f07144e16a793c7ce0aaba25b4125afc21e4
How do u create these inputs?
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
June 04, 2020, 08:50:34 AM
 #18

How do u create these inputs?

Your wallet is doing this in the background.

All you have to do is set the amount you want to send and the receipent.
Your wallet will figure out which inputs to use.


In electrum, if you want to set the inputs yourself, you can go to the "Coins" tab -> Select multiple UTXO's and click on "Spend".
You'll see the chosen inputs when signing/broadcasting the transaction.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
June 04, 2020, 09:09:47 AM
 #19

... y not combining b4 sending?
Because that's the way Bitcoin works... it's not like a bank account where they just keep adding numbers to your balance when you deposit and you can take out an exact amount later on.

Bitcoin is more like chunks of gold... and every piece you receive stays like that until you want to spend it, so you end up with different sized chunks worth different amounts. So you might have a 0.01 BTC chunk, a 0.02 BTC chunk, a 0.008 BTC chunk etc... when you want to send some to someone, you can't just break a piece off... you have to give whole chunks to the miners to break down for you...

So, if you have received the following amounts in your wallet:

0.01 BTC
0.02 BTC
0.008 BTC

And you want to send 0.017 BTC to your friend... your wallet would most likely select the 0.02 chunk and tell the miners to break off 0.017 and give that to the recipient, and return the rest to you as "change"... The transaction would look like:

InputA: 0.02BTC ---> OutputA: 0.017 BTC
                         ---> OutputB: 0.003 BTC

OutputB would be your change.

Or... the wallet might decide to do it like this:

InputA: 0.01   ---> OutputA: 0.017
InputB: 0.008  ---> OutputB: 0.001

or it could use any other combination of 0.01, 0.02 and/or 0.008 that enabled the wallet to be able to create the 0.017 piece  that you're trying to send and then give the rest back to you as change (minus the transaction fee)

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
konfuzius5278
Member
**
Offline Offline

Activity: 637
Merit: 11


View Profile WWW
June 09, 2020, 01:59:02 PM
 #20

I tried that when I wanted to send 100 sat to Waren Buffet wallet.

Warren Buffet doesn't have a bitcoin wallet .... that is publicly known. whatever you think you have is a random address and when you send small amounts you are just spamming the bitcoin network and putting an unnecessary burden on all bitcoin nodes that have to store that pointless UTXO in their database and load it each time!
1) I paid fee of 0.00000422 BTC for the 1000 sat TX so its my right beeing on the chain.

2) It was published as it was given to him after this dinner date so its false information that it does not exists:
https://medium.com/@TronFoundation/what-i-learned-from-warren-buffetts-dinner-by-justin-sun-2fc9f4c3f7a0

Interesting Link for german chronical pain illness patients: https://www.quick-green.com/
Pages: [1] 2 »  All
  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!