spend Script
Create a spend (input) script that will satisfy the constraints specified by the outputScript and the redeemScript (if applicable). This script will contain the redeemScript in the P2SH case.
Parameters
params
provide needed, script-specific args in the params field, like the signature
open fun spendScript(flatTx: ByteArray, inputIdx: Long, sigHashType: ByteArray, inputAmount: Long, vararg params: ByteArray): SatoshiScript
Create a spend (input) script that will satisfy the constraints specified by the outputScript and the redeemScript (if applicable). This script will contain the redeemScript in the P2SH case. Many scripts require signatures. This API provides the data needed for this class to craft signatures, and provides additional derived-class defined params.
Parameters
params
provide needed, script-specific args in the params field