Context

data class Context(    val tx: Transaction,     val inputIndex: Int,     val amount: Satoshi,     val prevouts: List<TxOut>)

Execution context of a tx script. A script is always executed in the "context" of a transaction that is being verified.

Parameters

tx

transaction that is being verified

inputIndex

0-based index of the tx input that is being processed

Constructors

Link copied to clipboard
fun Context(    tx: Transaction,     inputIndex: Int,     amount: Satoshi,     prevouts: List<TxOut>)

Properties

Link copied to clipboard
val amount: Satoshi
Link copied to clipboard
val inputIndex: Int
Link copied to clipboard
val prevouts: List<TxOut>
Link copied to clipboard
val tx: Transaction