public class StoredTransactionOutput extends Object implements Serializable
Constructor and Description |
---|
StoredTransactionOutput(InputStream in) |
StoredTransactionOutput(Sha256Hash hash,
long index,
BigInteger value,
int height,
boolean isCoinbase,
byte[] scriptBytes)
Creates a stored transaction output
|
StoredTransactionOutput(Sha256Hash hash,
TransactionOutput out,
int height,
boolean isCoinbase) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Sha256Hash |
getHash()
The hash of the transaction which holds this output
|
int |
getHeight()
Gets the height of the block that created this output (or -1 if this output was not created by a coinbase)
|
long |
getIndex()
The index of this output in the transaction which holds it
|
byte[] |
getScriptBytes()
The backing script bytes which can be turned into a Script object.
|
BigInteger |
getValue()
The value which this Transaction output holds
|
int |
hashCode() |
void |
serializeToStream(OutputStream bos) |
String |
toString() |
public StoredTransactionOutput(Sha256Hash hash, long index, BigInteger value, int height, boolean isCoinbase, byte[] scriptBytes)
hash
- the hash of the containing transactionindex
- the outpointvalue
- the value availableheight
- the height this output was created inscriptBytes
- public StoredTransactionOutput(Sha256Hash hash, TransactionOutput out, int height, boolean isCoinbase)
public StoredTransactionOutput(InputStream in) throws IOException
IOException
public BigInteger getValue()
public byte[] getScriptBytes()
public Sha256Hash getHash()
public long getIndex()
public int getHeight()
public void serializeToStream(OutputStream bos) throws IOException
IOException
Copyright © 2014. All rights reserved.