org.ergoplatform.appkit.UnsignedTransaction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ergo-appkit_2.11 Show documentation
Show all versions of ergo-appkit_2.11 Show documentation
A Library for Polyglot Development of Ergo Applications
The newest version!
package org.ergoplatform.appkit;
import org.ergoplatform.ErgoAddress;
import org.ergoplatform.sdk.ErgoToken;
import javax.annotation.Nonnull;
import java.util.List;
/**
* This interface is used to represent unsigned transactions after they are
* built using {@link UnsignedTransactionBuilder}.
*
* @see UnsignedTransactionBuilder
* @see SignedTransaction
*/
public interface UnsignedTransaction extends Transaction {
/**
* Gets unsigned input boxes that will be used in this transaction
*/
List getInputs();
/**
* Gets data inputs that will be used in this transaction
*/
List getDataInputs();
/**
* Returns the change address associated with this unsigned transaction
*/
ErgoAddress getChangeAddress();
/**
* The list of tokens requested (in builders) for burning in this transaction when
* it will be executed on blockchain.
*
* Returns empty list when no burning was explicitly requested (which is by default).
*/
@Nonnull
List getTokensToBurn();
/**
* Json representation of this transaction.
*
* @param prettyPrint if true, the ErgoTrees will be pretty printed, otherwise they
* will be output as hex strings
* @return formatted (pretty printed) JSON string
*/
@Nonnull
String toJson(boolean prettyPrint);
/**
* Json representation of this transaction.
* Note, Json formatting is pretty-printed if either prettyPrint or formatJson is set
* to true.
*
* @param prettyPrint if `true` then ergoTree is pretty-printed, otherwise
* encoded bytes are used.
* @param formatJson if `true` then json pretty printer is used to format json output.
*
* @return string with json text
*/
@Nonnull
String toJson(boolean prettyPrint, boolean formatJson);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy