Interface TicketObject

All Superinterfaces:
LedgerObject
All Known Implementing Classes:
ImmutableTicketObject

@Immutable public interface TicketObject extends LedgerObject
The TicketObject type represents a Ticket, which tracks an account sequence number that has been set aside for future use. You can create new tickets with a TicketCreate transaction.
  • Method Details

    • builder

      Construct a builder for this class.
      Returns:
      An ImmutableTicketObject.Builder.
    • ledgerEntryType

      @Derived default LedgerObject.LedgerEntryType ledgerEntryType()
      The type of ledger object. In this case, always "SignerList".
      Returns:
      Always LedgerObject.LedgerEntryType.SIGNER_LIST.
    • flags

      @Derived default Flags flags()
      A bit-map of Boolean flags enabled for this Ticket. Currently, there are no flags defined for Tickets.
      Returns:
      Always returns Flags.UNSET.
    • account

      Address account()
      The account that owns this Ticket.
      Returns:
      The account that owns this Ticket, as an Address.
    • ownerNode

      String ownerNode()
      A hint indicating which page of the owner directory links to this object, in case the directory consists of multiple pages.
      Returns:
      A String containing the hint.
    • previousTransactionId

      Hash256 previousTransactionId()
      The identifying hash of the transaction that most recently modified this object.
      Returns:
      A Hash256 containing the previous transaction hash.
    • previousTransactionLedgerSequence

      com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence()
      The index of the ledger that contains the transaction that most recently modified this object.
      Returns:
      An UnsignedInteger representing the previous transaction ledger sequence.
    • ticketSequence

      com.google.common.primitives.UnsignedInteger ticketSequence()
      The Sequence Number this Ticket sets aside.
      Returns:
      An UnsignedInteger denoting the sequence number.
    • index

      Hash256 index()
      The unique ID of the TicketObject.
      Returns:
      A Hash256.