Interface UnlModify
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableUnlModify
A
UnlModify pseudo-transaction marks a change to the Negative UNL, indicating that a trusted validator has
gone offline or come back online.- See Also:
-
Field Summary
FieldsFields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptiondefault Addressaccount()This field is overridden in this class because of a bug in rippled that causes this field to be missing in API responses.static ImmutableUnlModify.Builderbuilder()Construct a builder for this class.TheLedgerIndexwhere this pseudo-transaction appears.com.google.common.primitives.UnsignedIntegerIf 1, this change represents adding a validator to the Negative UNL.The validator to add or remove, as identified by its master public key.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, transactionType, unknownFields, validateDelegateNotSameAsAccount
-
Field Details
-
ACCOUNT_ZERO
-
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableUnlModify.Builder.
-
account
This field is overridden in this class because of a bug in rippled that causes this field to be missing in API responses. In other pseudo-transactions such asSetFeeandEnableAmendment, the rippled API sets theaccountfield to a special XRPL address called ACCOUNT_ZERO, which is the base58 encoding of the number zero. Because rippled does not set theaccountfield of theUnlModifypseudo-transaction, this override will always set the field to ACCOUNT_ZERO to avoid deserialization issues and to be consistent with other pseudo-transactions.- Specified by:
accountin interfaceTransaction- Returns:
- Always returns ACCOUNT_ZERO, which is the base58 encoding of the number zero.
-
ledgerSequence
LedgerIndex ledgerSequence()TheLedgerIndexwhere this pseudo-transaction appears. This distinguishes the pseudo-transaction from other occurrences of the same change.- Returns:
- A
LedgerIndexto indicates where the tx appears.
-
unlModifyDisabling
com.google.common.primitives.UnsignedInteger unlModifyDisabling()If 1, this change represents adding a validator to the Negative UNL. If 0, this change represents removing a validator from the Negative UNL.- Returns:
- An
UnsignedIntegerdenoting either 0 or 1.
-
unlModifyValidator
String unlModifyValidator()The validator to add or remove, as identified by its master public key.- Returns:
- An
Stringdenoting master public key of the validator.
-