<p>First, it is worth noting that the bitcoin network does not have any notion of ‘account balances’ at the protocol level, this is an abstraction used by wallets for convenience. </p>

<p>Bitcoin uses UTXOs, and it is possible for multiple UTXOs to exist at the same address. </p>

<p>In your case, you can spend all of the UTXOs at the addresses you’ve listed in a single transaction, your wallet software will simply need to consume the relevant UTXOs as inputs, spending the coins to new outputs (creating new UTXOs). </p>

<p>Whether the coins exist at one address, or many, is irrelevant in your ability to spend the coins. A bitcoin transaction can have many inputs, and many outputs, if you so desire. Note that in general, the larger the number of inputs/outputs, the larger the vbyte size of the transaction will be, and thus the higher the fees will be. </p>

CC BY-SA 4.0
2018-07-17T22:46:31.007Z
2018-07-17T22:46:31.007Z
chytrik
<p>please I need help, am using Bitcore-lib in my project and am having issues sending BTC, let’s assume I have addresses A, B, C, D, E &amp; F and they have A = 0.2BTC, B = 0.13BTC, C = 0.25BTC, D = 0.0015BTC &amp; E = 0.36BTC and I want to send the sum of BTC in A, B, C, D &amp; E to F at once. Please can anyone help me on how to do that in node js?</p>

CC BY-SA 4.0
2018-07-17T07:06:50.563Z
Since you have different addresses with different keys each transaction has to be placed from a different address (it doesn't matter if your wallet has all of them) so I don't think it will be possible to move all the funds at once without gathering all of them in one of those addresses.
YoMismo
CC BY-SA 4.0
2018-07-17T07:14:00.077Z
@YoMismo Please can you give a detailed explanation?
kene A
CC BY-SA 4.0
2018-07-17T07:45:19.333Z
Go to https://blockchain.info/ and check the transactions. One single transaction may imply moving funds from different addresses to just one (check the next arbitrary transaction: https://www.blockchain.com/es/btc/tx/3ed504d0a4ccf2184dc0e68dc6030179ecc9d46fc42a3f7c2073e3c24fee36c3). So if you want to create a transaction where a single origin address appears you may need to gather funds in just one address and transfer funds from there.
YoMismo
CC BY-SA 4.0
2018-07-17T21:59:12.017Z
Quick question, please how do you go about transaction fees using this solution any pointers??
kene A
CC BY-SA 4.0
2018-10-13T14:08:46.833Z
@yomismo Please can you give me a guide on how to go about the transaction fees, i have done all this but it's still not clear on how to tackle transaction fees i'm using bitcore-lib
kene A
<bitcoin-core>
Address balances
kene A
# Address balances

(Asked by: username_0 on 2018-07-17)

please I need help, am using Bitcore-lib in my project and am having issues sending BTC, let’s assume I have addresses A, B, C, D, E & F and they have A = 0.2BTC, B = 0.13BTC, C = 0.25BTC, D = 0.0015BTC & E = 0.36BTC and I want to send the sum of BTC in A, B, C, D & E to F at once. Please can anyone help me on how to do that in node js?

**Tags:** bitcoin-core

> **Comments:**
> **username_1**: Since you have different addresses with different keys each transaction has to be placed from a different address (it doesn't matter if your wallet has all of them) so I don't think it will be possible to move all the funds at once without gathering all of them in one of those addresses.  
> **username_0**: @username_1 Please can you give a detailed explanation?  
> **username_1**: Go to https://blockchain.info/ and check the transactions. One single transaction may imply moving funds from different addresses to just one (check the next arbitrary transaction: https://www.blockchain.com/es/btc/tx/3ed504d0a4ccf2184dc0e68dc6030179ecc9d46fc42a3f7c2073e3c24fee36c3). So if you want to create a transaction where a single origin address appears you may need to gather funds in just one address and transfer funds from there.  
> **username_0**: Quick question, please how do you go about transaction fees using this solution any pointers??  
> **username_0**: @username_1 Please can you give me a guide on how to go about the transaction fees, i have done all this but it's still not clear on how to tackle transaction fees i'm using bitcore-lib  

---

## 1 answers

### Answer by username_2 on 2018-07-17. Score: 1

First, it is worth noting that the bitcoin network does not have any notion of ‘account balances’ at the protocol level, this is an abstraction used by wallets for convenience.

Bitcoin uses UTXOs, and it is possible for multiple UTXOs to exist at the same address.

In your case, you can spend all of the UTXOs at the addresses you’ve listed in a single transaction, your wallet software will simply need to consume the relevant UTXOs as inputs, spending the coins to new outputs (creating new UTXOs).

Whether the coins exist at one address, or many, is irrelevant in your ability to spend the coins. A bitcoin transaction can have many inputs, and many outputs, if you so desire. Note that in general, the larger the number of inputs/outputs, the larger the vbyte size of the transaction will be, and thus the higher the fees will be.


---

