class TransactionOutput extends ChildMessage {

    public Script getScriptPubKey() throws ScriptException {
        if (scriptPubKey == null) {
            scriptPubKey = new Script(scriptBytes);
        }
        return scriptPubKey;
    }

    public  TransactionOutput(NetworkParameters params, @Nullable Transaction parent, byte[] payload,
                             int offset);
    public  TransactionOutput(NetworkParameters params, @Nullable Transaction parent, byte[] payload, int offset, MessageSerializer serializer);
    public  TransactionOutput(NetworkParameters params, @Nullable Transaction parent, Coin value, Address to);
    public  TransactionOutput(NetworkParameters params, @Nullable Transaction parent, Coin value, ECKey to);
    public  TransactionOutput(NetworkParameters params, @Nullable Transaction parent, Coin value, byte[] scriptBytes);

}