| Modifier and Type | Class and Description |
|---|---|
class |
Transaction.Input |
class |
Transaction.Output |
| Constructor and Description |
|---|
Transaction() |
Transaction(Transaction tx) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInput(byte[] prevTxHash,
int outputIndex) |
void |
addOutput(double value,
PublicKey address) |
void |
addSignature(byte[] signature,
int index) |
void |
finalize() |
byte[] |
getHash() |
Transaction.Input |
getInput(int index) |
ArrayList<Transaction.Input> |
getInputs() |
Transaction.Output |
getOutput(int index) |
ArrayList<Transaction.Output> |
getOutputs() |
byte[] |
getRawDataToSign(int index) |
byte[] |
getRawTx() |
int |
numInputs() |
int |
numOutputs() |
void |
removeInput(int index) |
void |
removeInput(UTXO ut) |
void |
setHash(byte[] h) |
public Transaction()
public Transaction(Transaction tx)
public void addInput(byte[] prevTxHash,
int outputIndex)
public void addOutput(double value,
PublicKey address)
public void removeInput(int index)
public void removeInput(UTXO ut)
public byte[] getRawDataToSign(int index)
public void addSignature(byte[] signature,
int index)
public byte[] getRawTx()
public void setHash(byte[] h)
public byte[] getHash()
public ArrayList<Transaction.Input> getInputs()
public ArrayList<Transaction.Output> getOutputs()
public Transaction.Input getInput(int index)
public Transaction.Output getOutput(int index)
public int numInputs()
public int numOutputs()