|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.bitcoin.core.Message
com.google.bitcoin.core.TransactionOutput
public class TransactionOutput
A TransactionOutput message contains a scriptPubKey that controls who is able to spend its value. It is a sub-part of the Transaction message.
Field Summary |
---|
Fields inherited from class com.google.bitcoin.core.Message |
---|
bytes, cursor, MAX_SIZE, offset, params, protocolVersion |
Constructor Summary | |
---|---|
TransactionOutput(NetworkParameters params,
Transaction parent,
byte[] payload,
int offset)
Deserializes a transaction output message. |
Method Summary | |
---|---|
void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream. |
byte[] |
getScriptBytes()
|
Script |
getScriptPubKey()
|
BigInteger |
getValue()
Returns the value of this output in nanocoins. |
boolean |
isMine(Wallet wallet)
Returns true if this output is to an address we have the keys for in the wallet. |
String |
toString()
Returns a human readable debug string. |
Methods inherited from class com.google.bitcoin.core.Message |
---|
bitcoinSerialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransactionOutput(NetworkParameters params, Transaction parent, byte[] payload, int offset) throws ProtocolException
ProtocolException
Method Detail |
---|
public Script getScriptPubKey() throws ScriptException
ScriptException
public void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
public BigInteger getValue()
public byte[] getScriptBytes()
public boolean isMine(Wallet wallet)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |