<p>Inputs do not reference the value of the UTXO they spend. You need to look up the spent UTXO to find the value. Usually, this information is available to a node via the UTXO set, or can be looked up by inspecting the transaction that created the UTXO.</p>

CC BY-SA 4.0
2020-12-09T15:33:42.617Z
2020-12-09T15:36:58.487Z
2020-12-09T15:36:58.487Z
Murch
<p>Is there any way for a Bitcoin P2SH Script to read the amount of Satoshis being redeemed?</p>

<script><p2sh><input>
Read the "value" being redeemed in a Bitcoin P2SH Script
FraMog
# Read the "value" being redeemed in a Bitcoin P2SH Script

(Asked by: username_0 on 2020-12-09)

Is there any way for a Bitcoin P2SH Script to read the amount of Satoshis being redeemed?

**Tags:** script, p2sh, input


---

## 1 answers

### Answer by username_1 on 2020-12-09. Score: 1

Inputs do not reference the value of the UTXO they spend. You need to look up the spent UTXO to find the value. Usually, this information is available to a node via the UTXO set, or can be looked up by inspecting the transaction that created the UTXO.


---

