Interface UnknownTransaction
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableUnknownTransaction
Mapping for any transaction type that is unrecognized/unsupported by xrpl4j.
-
Field Summary
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Construct aUnknownTransactionbuilder.default TransactionFlagsflags()A set ofTransactionFlags.default TransactionTypeTheTransactionTypeof this UnknownTransaction, which will always beTransactionType.UNKNOWN.The actual transaction type found in the"TransactionType"field of the transaction JSON.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, unknownFields, validateDelegateNotSameAsAccount
-
Method Details
-
builder
Construct aUnknownTransactionbuilder.- Returns:
- An
ImmutableUnknownTransaction.Builder.
-
unknownTransactionType
String unknownTransactionType()The actual transaction type found in the"TransactionType"field of the transaction JSON.This has to be a
StringbecauseTransaction.transactionType()is aTransactionType, which only has an UNKNOWN variant. Because this method is also annotated withJsonPropertyof "TransactionType", this essentially overrides the "TransactionType" field in JSON, buttransactionType()will always beTransactionType.UNKNOWNand this field will contain the actual "TransactionType" field.- Returns:
- A
Stringcontaining the transaction type from JSON.
-
transactionType
TheTransactionTypeof this UnknownTransaction, which will always beTransactionType.UNKNOWN.unknownTransactionType()contains the actual transaction type value.- Specified by:
transactionTypein interfaceTransaction- Returns:
TransactionType.UNKNOWN.
-
flags
A set ofTransactionFlags.- Returns:
- A
TransactionFlags.
-