<blockquote>
<p>So, I'd like to know if it is possible to make a transaction from multiple addresses to a main address, paying just one transaction fee. If it is possible, how?</p>
</blockquote>
<p>Yes, it's totally possible to make transactions from multiple addresses even if these addresses aren't owned by the same person (entity). There is nothing in bitcoin that discourages this practice and from the standpoint of raising the privacy of the whole ecosystem, it's even highly appreciated.</p>
<p>The biggest issue for you would be the coordination of this transaction, it can make or break the feature. As all members of this transaction need to sign under it. You can check existing protocols (coinjoin) implementations like:</p>
<ul>
<li><a href="https://github.com/Samourai-Wallet/Whirlpool" rel="nofollow noreferrer">samourai wallet</a></li>
<li><a href="https://github.com/zkSNACKs/WalletWasabi" rel="nofollow noreferrer">wasabi wallet</a></li>
<li><a href="https://github.com/JoinMarket-Org/joinmarket-clientserver" rel="nofollow noreferrer">joinmarket</a></li>
<li><a href="https://docs.btcpayserver.org/Payjoin/" rel="nofollow noreferrer">btcpay server (P2E)</a></li>
</ul>
<p>to get some inspiration for your case.</p>
<p>And I double the suggestion, for micropayments, it's better to use a lightning network. Adding inputs/outputs to the transaction raises the transaction weight, resulting in higher fees anyway.</p>

CC BY-SA 4.0
2022-01-21T04:28:36.813Z
2022-01-21T04:28:36.813Z
Tony Sanak
<p>The transaction fees in the Bitcoin network scale with the weight of the transaction rather than the amount spent. The biggest contributor to transaction weight are the inputs. You can spend unspent transaction outputs (UTXO) together and it is more cost effective to do so, but you will still need to create at least an additional input per UTXO.</p>
<p>Therefore, the cost of adding an input to the transaction is what determines the effective value of a UTXO. Besides spending multiple UTXO together, the cost can also be lowered by using more weight efficient transaction outputs. You should look to use a wallet that supports native segwit outputs since they cost less than half of legacy outputs to spend.</p>
<p>Still, it may be impractical to receive particularly small amounts per Bitcoin transactions. As Tony mentioned, the Lightning Network could be more practical for quick and cheap payments.</p>

CC BY-SA 4.0
2022-06-20T14:00:16.883Z
2022-06-20T14:00:16.883Z
Murch
<br>
I am building a platform (in node js) that users are going to pay for items using bitcoin. Some of the items has low prices (perhaps, even lower than the BTC fee).
<br><br>
The problem is: if I make an address for every user, the user buy low priced items and, once I want to retrieve the money, the UTXO be close to fee price, it won't be worth for me.
<br><br>
So, I'd like to know if it is possible to make a transaction from multiple addresses to a main address, paying just one transaction fee. If it is possible, how? 

CC BY-SA 4.0
2022-01-19T21:19:40.410Z
For smaller transactions you should really consider using the Lightning Network.
Vojtěch Strnad
<transactions><transaction-fees><nodejs>
Is it possible to make a transaction from multilple addresses to one address?
Benjamin Walter Mauss
# Is it possible to make a transaction from multilple addresses to one address?

(Asked by: username_0 on 2022-01-19)

I am building a platform (in node js) that users are going to pay for items using bitcoin. Some of the items has low prices (perhaps, even lower than the BTC fee).
  
  
The problem is: if I make an address for every user, the user buy low priced items and, once I want to retrieve the money, the UTXO be close to fee price, it won't be worth for me.
  
  
So, I'd like to know if it is possible to make a transaction from multiple addresses to a main address, paying just one transaction fee. If it is possible, how?

**Tags:** transactions, transaction-fees, nodejs

> **Comments:**
> **username_1**: For smaller transactions you should really consider using the Lightning Network.  

---

## 2 answers

### Answer by username_2 on 2022-01-21. Score: 2

> So, I'd like to know if it is possible to make a transaction from multiple addresses to a main address, paying just one transaction fee. If it is possible, how?

Yes, it's totally possible to make transactions from multiple addresses even if these addresses aren't owned by the same person (entity). There is nothing in bitcoin that discourages this practice and from the standpoint of raising the privacy of the whole ecosystem, it's even highly appreciated.

The biggest issue for you would be the coordination of this transaction, it can make or break the feature. As all members of this transaction need to sign under it. You can check existing protocols (coinjoin) implementations like:

* [samourai wallet](https://github.com/Samourai-Wallet/Whirlpool)
* [wasabi wallet](https://github.com/zkSNACKs/WalletWasabi)
* [joinmarket](https://github.com/JoinMarket-Org/joinmarket-clientserver)
* [btcpay server (P2E)](https://docs.btcpayserver.org/Payjoin/)

to get some inspiration for your case.

And I double the suggestion, for micropayments, it's better to use a lightning network. Adding inputs/outputs to the transaction raises the transaction weight, resulting in higher fees anyway.


---

### Answer by username_3 on 2022-06-20. Score: 0

The transaction fees in the Bitcoin network scale with the weight of the transaction rather than the amount spent. The biggest contributor to transaction weight are the inputs. You can spend unspent transaction outputs (UTXO) together and it is more cost effective to do so, but you will still need to create at least an additional input per UTXO.

Therefore, the cost of adding an input to the transaction is what determines the effective value of a UTXO. Besides spending multiple UTXO together, the cost can also be lowered by using more weight efficient transaction outputs. You should look to use a wallet that supports native segwit outputs since they cost less than half of legacy outputs to spend.

Still, it may be impractical to receive particularly small amounts per Bitcoin transactions. As username_2 mentioned, the Lightning Network could be more practical for quick and cheap payments.


---

