<blockquote>
  <p>So what will happen if an output of 1 BTC is available for me to spend, but I want to spend 10 BTC?</p>
</blockquote>

<p>If you have 1 USD in your pocket and you want to buy something for 10 USD, you simply can't.</p>

<p>The cited section is equal to: If you have 10 USD and want to buy something for 1 USD the merchant gets 1 USD and you get 9 USD in change.</p>

CC BY-SA 4.0
2018-07-13T13:13:55.483Z
Oh! So the output value is your account balance! Thanks a lot! :D
Gagan
CC BY-SA 4.0
2018-07-13T19:31:11.320Z
@Gagan worth mentioning: in bitcoin there is not an ‘account balance’, there is only UTXOs (unspent transaction outputs). So your wallet’s ‘account balance’ is simply the sum of all UTXOs your wallet controls. As related to your Q: to spend a UTXO is to ‘consume’ it entirely. You cannot just spend ‘half a UTXO’, it is all or nothing (hence the reason a change address exists, so you can pay yourself back any excess funds in the UTXO). Other cryptocurrencies use an ‘account balance’ system, the difference seems subtle, but it is important if you want to understand these systems.
chytrik
CC BY-SA 4.0
2018-07-13T12:58:01.090Z
2018-07-13T12:58:01.090Z
0xb10c
<blockquote>
  <p>So what will happen if an output of 1 BTC is available for me to
  spend, but I want to spend 10 BTC?</p>
</blockquote>

<p>You would have to create a manually crafted transaction, and instead of 1 BTC you make it a 10 BTC. Then the network rules come into play, and when you forward the transaction it is <a href="https://en.bitcoin.it/wiki/Protocol_rules#.22tx.22_messages" rel="nofollow noreferrer">checked for validity</a>. 
The rule 14 specifically, but also 9,12 and 15 would apply, making the transaction invalid.</p>

CC BY-SA 4.0
2018-07-13T13:17:05.027Z
Thanks for the approach! That's great for learning how network rules play. :)
Gagan
CC BY-SA 4.0
2018-07-13T13:13:19.160Z
2018-07-13T13:13:19.160Z
pebwindkraft
<p>Click <a href="https://bitcore.io/api/lib/transaction" rel="nofollow noreferrer">here</a> for reference.</p>

<blockquote>
  <p>Note also that an output can be used only once. That's why there's a concept of "change address" in the bitcoin ecosystem: if an output of 10 BTC is available for me to spend, but I only need to transmit 1 BTC, I'll create a transaction with two outputs, one with 1 BTC that I want to spend, and the other with 9 BTC to a change address, so I can spend this 9 BTC with another private key that I own.</p>
</blockquote>

<p>So what will happen if an output of 1 BTC is available for me to spend, but I want to spend 10 BTC?</p>

<p>Note: It is a general question and is not specific to any API feature.</p>

<blockchain><output>
How output transaction works in Bitcoin?
Gagan
# How output transaction works in Bitcoin?

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

Click [here](https://bitcore.io/api/lib/transaction) for reference.

> Note also that an output can be used only once. That's why there's a concept of "change address" in the bitcoin ecosystem: if an output of 10 BTC is available for me to spend, but I only need to transmit 1 BTC, I'll create a transaction with two outputs, one with 1 BTC that I want to spend, and the other with 9 BTC to a change address, so I can spend this 9 BTC with another private key that I own.

So what will happen if an output of 1 BTC is available for me to spend, but I want to spend 10 BTC?

Note: It is a general question and is not specific to any API feature.

**Tags:** blockchain, output


---

## 2 answers

### Answer by username_1 on 2018-07-13. Score: 1 | Accepted answer

> So what will happen if an output of 1 BTC is available for me to spend, but I want to spend 10 BTC?

If you have 1 USD in your pocket and you want to buy something for 10 USD, you simply can't.

The cited section is equal to: If you have 10 USD and want to buy something for 1 USD the merchant gets 1 USD and you get 9 USD in change.

> **Comments:**
> **username_0**: Oh! So the output value is your account balance! Thanks a lot! :D  
> **username_2**: @username_0 worth mentioning: in bitcoin there is not an ‘account balance’, there is only UTXOs (unspent transaction outputs). So your wallet’s ‘account balance’ is simply the sum of all UTXOs your wallet controls. As related to your Q: to spend a UTXO is to ‘consume’ it entirely. You cannot just spend ‘half a UTXO’, it is all or nothing (hence the reason a change address exists, so you can pay yourself back any excess funds in the UTXO). Other cryptocurrencies use an ‘account balance’ system, the difference seems subtle, but it is important if you want to understand these systems.  

---

### Answer by username_3 on 2018-07-13. Score: 1

> So what will happen if an output of 1 BTC is available for me to
> spend, but I want to spend 10 BTC?

You would have to create a manually crafted transaction, and instead of 1 BTC you make it a 10 BTC. Then the network rules come into play, and when you forward the transaction it is [checked for validity](https://en.bitcoin.it/wiki/Protocol_rules#.22tx.22_messages).
The rule 14 specifically, but also 9,12 and 15 would apply, making the transaction invalid.

> **Comments:**
> **username_0**: Thanks for the approach! That's great for learning how network rules play. :)  

---

