Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public static final class BitcoinTransaction.Input
- Object
- BitcoinTransaction.Input
One input: the outpoint it spends, its unlocking script, sequence and witness.
Methods
public String getPrevTxid() | The spent transaction’s id in display (big-endian) hex, as explorers show it. |
public long getPrevIndex() | The output index spent. |
public Script getScriptSig() | The unlocking script. |
public void setScriptSig(Script scriptSig) | Replaces the unlocking script. |
public long getSequence() | The sequence number. |
public void setSequence(long sequence) | Replaces the sequence number. |
public List<byte[]> getWitness() | The witness stack items, in order. |
public void setWitness(List<byte[]> items) | Replaces the witness stack. |
Inherited methods
Method details
getPrevTxid
public String getPrevTxid()The spent transaction’s id in display (big-endian) hex, as explorers show it.
getPrevIndex
public long getPrevIndex()The output index spent.
getScriptSig
public Script getScriptSig()The unlocking script.
setScriptSig
public void setScriptSig(Script scriptSig)Replaces the unlocking script.
getSequence
public long getSequence()The sequence number.
setSequence
public void setSequence(long sequence)Replaces the sequence number.
getWitness
public List<byte[]> getWitness()The witness stack items, in order.
setWitness
public void setWitness(List<byte[]> items)Replaces the witness stack.