Is there any way for a Bitcoin P2SH Script to read the amount of Satoshis being redeemed?
Asked
Active
Viewed 46 times
1 Answers
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.
Murch
- 71,155
- 33
- 180
- 600