Interface UnlModify

All Superinterfaces:
Transaction
All Known Implementing Classes:
ImmutableUnlModify

@Immutable public interface UnlModify extends Transaction
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:
  • "https://xrpl.org/unlmodify.html"
  • Field Details

    • ACCOUNT_ZERO

      static final Address ACCOUNT_ZERO
  • Method Details

    • builder

      static ImmutableUnlModify.Builder builder()
      Construct a builder for this class.
      Returns:
      An ImmutableUnlModify.Builder.
    • account

      @Default default Address 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 as SetFee and EnableAmendment, the rippled API sets the account field to a special XRPL address called ACCOUNT_ZERO, which is the base58 encoding of the number zero. Because rippled does not set the account field of the UnlModify pseudo-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:
      account in interface Transaction
      Returns:
      Always returns ACCOUNT_ZERO, which is the base58 encoding of the number zero.
    • ledgerSequence

      LedgerIndex ledgerSequence()
      The LedgerIndex where this pseudo-transaction appears. This distinguishes the pseudo-transaction from other occurrences of the same change.
      Returns:
      A LedgerIndex to 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 UnsignedInteger denoting either 0 or 1.
    • unlModifyValidator

      String unlModifyValidator()
      The validator to add or remove, as identified by its master public key.
      Returns:
      An String denoting master public key of the validator.