Class BitcoinTransaction.Input
java.lang.Object
com.codename1.crypto.bitcoin.BitcoinTransaction.Input
- Enclosing class:
BitcoinTransaction
One input: the outpoint it spends, its unlocking script, sequence and witness.
-
Method Summary
Modifier and TypeMethodDescriptionlongThe output index spent.The spent transaction's id in display (big-endian) hex, as explorers show it.The unlocking script.longThe sequence number.List<byte[]> The witness stack items, in order.voidsetScriptSig(Script scriptSig) Replaces the unlocking script.voidsetSequence(long sequence) Replaces the sequence number.voidsetWitness(List<byte[]> items) Replaces the witness stack.
-
Method Details
-
getPrevTxid
The spent transaction's id in display (big-endian) hex, as explorers show it. -
getPrevIndex
public long getPrevIndex()The output index spent. -
getScriptSig
The unlocking script. -
setScriptSig
Replaces the unlocking script. -
getSequence
public long getSequence()The sequence number. -
setSequence
public void setSequence(long sequence) Replaces the sequence number. -
getWitness
The witness stack items, in order. -
setWitness
Replaces the witness stack.
-