Package org.xrpl.xrpl4j.model.ledger
Interface DelegateObject
- All Superinterfaces:
LedgerObject
- All Known Implementing Classes:
ImmutableDelegateObject
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.ledger.LedgerObject
LedgerObject.LedgerEntryType -
Method Summary
Modifier and TypeMethodDescriptionaccount()The account that wants to authorize another account.The authorized account.builder()Construct a builder for this class.default Flagsflags()A bit-map of boolean flags.index()The unique ID of theDelegateObject.default LedgerObject.LedgerEntryTypeThe type of ledger object, which will always be "Delegate" in this case.A hint indicating which page of the sender's owner directory links to this object, in case the directory consists of multiple pages.The transaction permissions that the account has access to.The identifying hash of the transaction that most recently modified this object.com.google.common.primitives.UnsignedIntegerThe index of the ledger that contains the transaction that most recently modified this object.
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableDelegateObject.Builder.
-
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
Addressof the account.
-
authorize
Address authorize()The authorized account.- Returns:
- The
Addressof the authorized account.
-
permissions
List<PermissionWrapper> permissions()The transaction permissions that the account has access to.- Returns:
- A
ListofPermissionWrappers.
-
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
Stringcontaining the owner node hint.
-
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
Hash256containing 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
UnsignedIntegerrepresenting the previous transaction ledger sequence.
-
index
Hash256 index()The unique ID of theDelegateObject.- Returns:
- A
Hash256containing the ID.
-