Package io.nem.symbol.catapult.builders
Class EmbeddedMultisigAccountModificationTransactionBuilder
- java.lang.Object
-
- io.nem.symbol.catapult.builders.EmbeddedTransactionHeaderBuilder
-
- io.nem.symbol.catapult.builders.EmbeddedTransactionBuilder
-
- io.nem.symbol.catapult.builders.EmbeddedMultisigAccountModificationTransactionBuilder
-
- All Implemented Interfaces:
Serializer
public class EmbeddedMultisigAccountModificationTransactionBuilder extends EmbeddedTransactionBuilder implements Serializer
Binary layout for an embedded multisig account modification transaction
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmbeddedMultisigAccountModificationTransactionBuilder(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, byte minRemovalDelta, byte minApprovalDelta, java.util.List<KeyDto> publicKeyAdditions, java.util.List<KeyDto> publicKeyDeletions)Constructor.protectedEmbeddedMultisigAccountModificationTransactionBuilder(java.io.DataInputStream stream)Constructor - Creates an object from stream.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmbeddedMultisigAccountModificationTransactionBuildercreate(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, byte minRemovalDelta, byte minApprovalDelta, java.util.List<KeyDto> publicKeyAdditions, java.util.List<KeyDto> publicKeyDeletions)Creates an instance of EmbeddedMultisigAccountModificationTransactionBuilder.MultisigAccountModificationTransactionBodyBuildergetBody()Gets the body builder of the object.bytegetMinApprovalDelta()Gets relative change of the minimal number of cosignatories required when approving a transaction.bytegetMinRemovalDelta()Gets relative change of the minimal number of cosignatories required when removing an account.java.util.List<KeyDto>getPublicKeyAdditions()Gets cosignatory public key additions.java.util.List<KeyDto>getPublicKeyDeletions()Gets cosignatory public key deletions.intgetSize()Gets the size of the object.static EmbeddedMultisigAccountModificationTransactionBuilderloadFromBinary(java.io.DataInputStream stream)Creates an instance of EmbeddedMultisigAccountModificationTransactionBuilder from a stream.byte[]serialize()Serializes an object to bytes.-
Methods inherited from class io.nem.symbol.catapult.builders.EmbeddedTransactionBuilder
create, getEntityBody_Reserved1, getNetwork, getSignerPublicKey, getType, getVersion
-
Methods inherited from class io.nem.symbol.catapult.builders.EmbeddedTransactionHeaderBuilder
create, getEmbeddedTransactionHeader_Reserved1, getStreamSize
-
-
-
-
Constructor Detail
-
EmbeddedMultisigAccountModificationTransactionBuilder
protected EmbeddedMultisigAccountModificationTransactionBuilder(java.io.DataInputStream stream)
Constructor - Creates an object from stream.- Parameters:
stream- Byte stream to use to serialize the object.
-
EmbeddedMultisigAccountModificationTransactionBuilder
protected EmbeddedMultisigAccountModificationTransactionBuilder(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, byte minRemovalDelta, byte minApprovalDelta, java.util.List<KeyDto> publicKeyAdditions, java.util.List<KeyDto> publicKeyDeletions)
Constructor.- Parameters:
signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.minRemovalDelta- Relative change of the minimal number of cosignatories required when removing an account.minApprovalDelta- Relative change of the minimal number of cosignatories required when approving a transaction.publicKeyAdditions- Cosignatory public key additions.publicKeyDeletions- Cosignatory public key deletions.
-
-
Method Detail
-
loadFromBinary
public static EmbeddedMultisigAccountModificationTransactionBuilder loadFromBinary(java.io.DataInputStream stream)
Creates an instance of EmbeddedMultisigAccountModificationTransactionBuilder from a stream.- Parameters:
stream- Byte stream to use to serialize the object.- Returns:
- Instance of EmbeddedMultisigAccountModificationTransactionBuilder.
-
create
public static EmbeddedMultisigAccountModificationTransactionBuilder create(KeyDto signerPublicKey, byte version, NetworkTypeDto network, EntityTypeDto type, byte minRemovalDelta, byte minApprovalDelta, java.util.List<KeyDto> publicKeyAdditions, java.util.List<KeyDto> publicKeyDeletions)
Creates an instance of EmbeddedMultisigAccountModificationTransactionBuilder.- Parameters:
signerPublicKey- Entity signer's public key.version- Entity version.network- Entity network.type- Entity type.minRemovalDelta- Relative change of the minimal number of cosignatories required when removing an account.minApprovalDelta- Relative change of the minimal number of cosignatories required when approving a transaction.publicKeyAdditions- Cosignatory public key additions.publicKeyDeletions- Cosignatory public key deletions.- Returns:
- Instance of EmbeddedMultisigAccountModificationTransactionBuilder.
-
getMinRemovalDelta
public byte getMinRemovalDelta()
Gets relative change of the minimal number of cosignatories required when removing an account.- Returns:
- Relative change of the minimal number of cosignatories required when removing an account.
-
getMinApprovalDelta
public byte getMinApprovalDelta()
Gets relative change of the minimal number of cosignatories required when approving a transaction.- Returns:
- Relative change of the minimal number of cosignatories required when approving a transaction.
-
getPublicKeyAdditions
public java.util.List<KeyDto> getPublicKeyAdditions()
Gets cosignatory public key additions.- Returns:
- Cosignatory public key additions.
-
getPublicKeyDeletions
public java.util.List<KeyDto> getPublicKeyDeletions()
Gets cosignatory public key deletions.- Returns:
- Cosignatory public key deletions.
-
getSize
public int getSize()
Gets the size of the object.- Specified by:
getSizein interfaceSerializer- Overrides:
getSizein classEmbeddedTransactionBuilder- Returns:
- Size in bytes.
-
getBody
public MultisigAccountModificationTransactionBodyBuilder getBody()
Gets the body builder of the object.- Overrides:
getBodyin classEmbeddedTransactionBuilder- Returns:
- Body builder.
-
serialize
public byte[] serialize()
Serializes an object to bytes.- Specified by:
serializein interfaceSerializer- Overrides:
serializein classEmbeddedTransactionBuilder- Returns:
- Serialized bytes.
-
-