Interface DelegateObject

All Superinterfaces:
LedgerObject
All Known Implementing Classes:
ImmutableDelegateObject

@Immutable @Beta public interface DelegateObject extends LedgerObject
This object represents a set of permissions that an account has delegated to another account. DelegateSet transactions create these objects.

This class will be marked Beta until the featurePermissionDelegation amendment is enabled on mainnet. Its API is subject to change.

  • Method Details

    • builder

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

      @Derived default LedgerObject.LedgerEntryType ledgerEntryType()
      The type of ledger object, which will always be "Delegate" in this case.
      Returns:
      Always LedgerObject.LedgerEntryType.DELEGATE.
    • account

      Address account()
      The account that wants to authorize another account.
      Returns:
      The Address of the account.
    • authorize

      Address authorize()
      The authorized account.
      Returns:
      The Address of the authorized account.
    • permissions

      List<PermissionWrapper> permissions()
      The transaction permissions that the account has access to.
      Returns:
      A List of PermissionWrappers.
    • ownerNode

      String ownerNode()
      A hint indicating which page of the sender's owner directory links to this object, in case the directory consists of multiple pages.

      Note: The object does not contain a direct link to the owner directory containing it, since that value can be derived from the Account.

      Returns:
      A String containing the owner node hint.
    • flags

      @Derived default Flags flags()
      A bit-map of boolean flags. No flags are defined for the Delegate object type, so this value is always 0.
      Returns:
      Always Flags.UNSET.
    • 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.
    • index

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