Interface RawTransactionWrapper
- All Known Implementing Classes:
ImmutableRawTransactionWrapper
@Immutable
@Beta
public interface RawTransactionWrapper
Wrapper object for a
Transaction in the RawTransactions array of a Batch transaction, so that
the JSON representation matches the XRPL binary serialization specification.
This class will be marked Beta until the featureBatch amendment is enabled on mainnet.
Its API is subject to change.
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Construct a builder for this class.default voidcheck()Validates the state of theRawTransactionWrapper.static RawTransactionWrapperof(Transaction transaction) Construct aRawTransactionWrapperwrapping the givenTransaction.The inner transaction.
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableRawTransactionWrapper.Builder.
-
of
Construct aRawTransactionWrapperwrapping the givenTransaction.- Parameters:
transaction- ATransactionto wrap.- Returns:
- A
RawTransactionWrapper.
-
rawTransaction
Transaction rawTransaction()The inner transaction. This transaction must:- Have the
tfInnerBatchTxnflag set - Have a fee of 0
- Have an empty
SigningPubKey - Not have a
TxnSignature
- Returns:
- A
Transaction.
- Have the
-
check
@Check default void check()Validates the state of theRawTransactionWrapper.Ensures that the transaction wrapped by this instance satisfies the requirement of being an inner transaction by verifying that the
tfInnerBatchTxnflag is set on the transaction.- Throws:
IllegalArgumentException- if thetfInnerBatchTxnflag is not set on the wrapped transaction.
-