Interface DelegateSet
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableDelegateSet
A
DelegateSet transaction allows an account to delegate a set of permissions to another account.
This enables the authorized account to send certain types of transactions on behalf of the delegating account.
This class will be marked Beta until the featurePermissionDelegation amendment is enabled on mainnet.
Its API is subject to change.
-
Field Summary
FieldsModifier and TypeFieldDescriptionSet of transaction types that cannot be delegated.static final intThe maximum number of permissions that can be delegated in a single transaction.Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
typeMap -
Method Summary
Modifier and TypeMethodDescriptionThe XRP LedgerAddressof the account to authorize.static ImmutableDelegateSet.Builderbuilder()Construct a builder for this class.default TransactionFlagsflags()Set ofTransactionFlagss for thisDelegateSet.The transaction permissions (represented by transaction type strings) that the account has been granted.default voidValidate that the Authorize field is not the same as the Account field.default voidValidate that the Permissions array does not contain duplicate values.default voidValidate that the Permissions array does not contain non-delegatable transaction types.default voidValidate that the Permissions array has at most PERMISSIONS_MAX_LENGTH elements.default voidValidate that each permission value corresponds to either a valid TransactionType or GranularPermission.Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, delegate, fee, lastLedgerSequence, memos, networkId, sequence, signers, signingPublicKey, sourceTag, ticketSequence, transactionFlags, transactionSignature, transactionType, unknownFields, validateDelegateNotSameAsAccount
-
Field Details
-
PERMISSIONS_MAX_LENGTH
static final int PERMISSIONS_MAX_LENGTHThe maximum number of permissions that can be delegated in a single transaction.- See Also:
-
NON_DELEGABLE_TRANSACTIONS
Set of transaction types that cannot be delegated.
-
-
Method Details
-
builder
Construct a builder for this class.- Returns:
- An
ImmutableDelegateSet.Builder.
-
flags
Set ofTransactionFlagss for thisDelegateSet. Note thatDelegateSettransactions do not support any transaction-specific flags, only universal flags.The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for proper signature computation in rippled.
- Returns:
- Always
TransactionFlags.EMPTY.
-
authorize
Address authorize()The XRP LedgerAddressof the account to authorize.- Returns:
- An
Addressof the account to authorize.
-
permissions
List<PermissionWrapper> permissions()The transaction permissions (represented by transaction type strings) that the account has been granted.- Returns:
- A
ListofPermissionWrappers.
-
validateAuthorizeNotSameAsAccount
@Check default void validateAuthorizeNotSameAsAccount()Validate that the Authorize field is not the same as the Account field. -
validatePermissionsLength
@Check default void validatePermissionsLength()Validate that the Permissions array has at most PERMISSIONS_MAX_LENGTH elements. -
validateNoDuplicatePermissions
@Check default void validateNoDuplicatePermissions()Validate that the Permissions array does not contain duplicate values. -
validateNoNonDelegatableTransactions
@Check default void validateNoNonDelegatableTransactions()Validate that the Permissions array does not contain non-delegatable transaction types. -
validatePermissionValuesAreValid
@Check default void validatePermissionValuesAreValid()Validate that each permission value corresponds to either a valid TransactionType or GranularPermission.
-