Class MultisigAccountModificationTransactionV1Descriptor
java.lang.Object
org.symbol.sdk.symbol.descriptors.MultisigAccountModificationTransactionV1Descriptor
- All Implemented Interfaces:
SymbolTransactionDescriptor,SymbolTypedDescriptor,TypedDescriptor
public final class MultisigAccountModificationTransactionV1Descriptor
extends Object
implements SymbolTransactionDescriptor
- MultisigAccountModificationTransactionV1Descriptor
- Type safe descriptor used to generate a descriptor map for MultisigAccountModificationTransactionV1Descriptor. Create or modify a [multi-signature](/concepts/multisig-account.html) account (V1, latest). This transaction allows you to: - Transform a regular account into a multisig account. - Change the configurable properties of a multisig account. - Add or delete cosignatories from a multisig account (removing all cosignatories turns a multisig account into a regular account again).
-
Constructor Summary
ConstructorsConstructorDescriptionMultisigAccountModificationTransactionV1Descriptor(int minRemovalDelta, int minApprovalDelta) Creates a descriptor for MultisigAccountModificationTransactionV1. -
Method Summary
Modifier and TypeMethodDescriptionaddressAdditions(String... addressAdditions) Sets the addressAdditions field.addressAdditions(List<Address> addressAdditions) Sets the addressAdditions field.addressDeletions(String... addressDeletions) Sets the addressDeletions field.addressDeletions(List<Address> addressDeletions) Sets the addressDeletions field.toMap()Builds a representation of this descriptor that can be passed to a factory function.
-
Constructor Details
-
MultisigAccountModificationTransactionV1Descriptor
public MultisigAccountModificationTransactionV1Descriptor(int minRemovalDelta, int minApprovalDelta) Creates a descriptor for MultisigAccountModificationTransactionV1.- Parameters:
minRemovalDelta- Relative change to the **minimum** number of cosignatures required when **removing a cosignatory**. E.g., when moving from 0 to 2 cosignatures this number would be **2**. When moving from 4 to 3 cosignatures, the number would be **-1**.minApprovalDelta- Relative change to the **minimum** number of cosignatures required when **approving a transaction**. E.g., when moving from 0 to 2 cosignatures this number would be **2**. When moving from 4 to 3 cosignatures, the number would be **-1**.
-
-
Method Details
-
addressAdditions
public MultisigAccountModificationTransactionV1Descriptor addressAdditions(List<Address> addressAdditions) - MultisigAccountModificationTransactionV1Descriptor.addressAdditions
- Sets the addressAdditions field.
- Parameters:
addressAdditions- Cosignatory address additions. All accounts in this list will be able to cosign transactions on behalf of the multisig account. The number of required cosignatures depends on the configured minimum approval and minimum removal values.- Returns:
- This descriptor for chaining.
-
addressAdditions
public MultisigAccountModificationTransactionV1Descriptor addressAdditions(String... addressAdditions) - MultisigAccountModificationTransactionV1Descriptor.addressAdditions
- Sets the addressAdditions field.
- Parameters:
addressAdditions- Cosignatory address additions. All accounts in this list will be able to cosign transactions on behalf of the multisig account. The number of required cosignatures depends on the configured minimum approval and minimum removal values.- Returns:
- This descriptor for chaining.
-
addressDeletions
public MultisigAccountModificationTransactionV1Descriptor addressDeletions(List<Address> addressDeletions) - MultisigAccountModificationTransactionV1Descriptor.addressDeletions
- Sets the addressDeletions field.
- Parameters:
addressDeletions- Cosignatory address deletions. All accounts in this list will stop being able to cosign transactions on behalf of the multisig account. A transaction containing **any** address in this array requires a number of cosignatures at least equal to the minimum removal value.- Returns:
- This descriptor for chaining.
-
addressDeletions
public MultisigAccountModificationTransactionV1Descriptor addressDeletions(String... addressDeletions) - MultisigAccountModificationTransactionV1Descriptor.addressDeletions
- Sets the addressDeletions field.
- Parameters:
addressDeletions- Cosignatory address deletions. All accounts in this list will stop being able to cosign transactions on behalf of the multisig account. A transaction containing **any** address in this array requires a number of cosignatures at least equal to the minimum removal value.- Returns:
- This descriptor for chaining.
-
toMap
- MultisigAccountModificationTransactionV1Descriptor.toMap
- Builds a representation of this descriptor that can be passed to a factory function.
- Specified by:
toMapin interfaceTypedDescriptor- Returns:
- Descriptor map that can be passed to a transaction factory.
-