<p>No. You can't push the value of the output being spent in Bitcoin Script as of December 2023.</p>
<p>It's been explored in some of the covenants proposal however. For instance with the Taproot upgrade on the Liquid sidechain, a <a href="https://github.com/ElementsProject/elements/blob/master/doc/tapscript_opcodes.md" rel="nofollow noreferrer">new <code>OP_INSPECTINPUTVALUE</code> was introduced</a> which allows to push the value of (any of) the input(s) onto the stack.</p>

CC BY-SA 4.0
2023-12-18T10:35:07.977Z
2023-12-18T10:35:07.977Z
Antoine Poinsot
<p>When defining the spending conditions for a UTXO can one use the output value in a script by pushing it to the stack?</p>

<script><utxo><covenants>
Is there a way to push the output value of a UTXO to the stack in Bitcoin script?
Poseidon
# Is there a way to push the output value of a UTXO to the stack in Bitcoin script?

(Asked by: username_0 on 2023-12-18)

When defining the spending conditions for a UTXO can one use the output value in a script by pushing it to the stack?

**Tags:** script, utxo, covenants


---

## 1 answers

### Answer by username_1 on 2023-12-18. Score: 4 | Accepted answer

No. You can't push the value of the output being spent in Bitcoin Script as of December 2023.

It's been explored in some of the covenants proposal however. For instance with the Taproot upgrade on the Liquid sidechain, a [new `OP_INSPECTINPUTVALUE` was introduced](https://github.com/ElementsProject/elements/blob/master/doc/tapscript_opcodes.md) which allows to push the value of (any of) the input(s) onto the stack.


---

