Class AccountMetadataTransactionBuilder

  • All Implemented Interfaces:
    Serializer

    public class AccountMetadataTransactionBuilder
    extends TransactionBuilder
    implements Serializer
    Binary layout for a non-embedded account metadata transaction
    • Constructor Detail

      • AccountMetadataTransactionBuilder

        protected AccountMetadataTransactionBuilder​(java.io.DataInputStream stream)
        Constructor - Creates an object from stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
      • AccountMetadataTransactionBuilder

        protected AccountMetadataTransactionBuilder​(SignatureDto signature,
                                                    KeyDto signerPublicKey,
                                                    byte version,
                                                    NetworkTypeDto network,
                                                    EntityTypeDto type,
                                                    AmountDto fee,
                                                    TimestampDto deadline,
                                                    UnresolvedAddressDto targetAddress,
                                                    long scopedMetadataKey,
                                                    short valueSizeDelta,
                                                    java.nio.ByteBuffer value)
        Constructor.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        targetAddress - Metadata target address.
        scopedMetadataKey - Metadata key scoped to source, target and type.
        valueSizeDelta - Change in value size in bytes.
        value - Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
    • Method Detail

      • loadFromBinary

        public static AccountMetadataTransactionBuilder loadFromBinary​(java.io.DataInputStream stream)
        Creates an instance of AccountMetadataTransactionBuilder from a stream.
        Parameters:
        stream - Byte stream to use to serialize the object.
        Returns:
        Instance of AccountMetadataTransactionBuilder.
      • create

        public static AccountMetadataTransactionBuilder create​(SignatureDto signature,
                                                               KeyDto signerPublicKey,
                                                               byte version,
                                                               NetworkTypeDto network,
                                                               EntityTypeDto type,
                                                               AmountDto fee,
                                                               TimestampDto deadline,
                                                               UnresolvedAddressDto targetAddress,
                                                               long scopedMetadataKey,
                                                               short valueSizeDelta,
                                                               java.nio.ByteBuffer value)
        Creates an instance of AccountMetadataTransactionBuilder.
        Parameters:
        signature - Entity signature.
        signerPublicKey - Entity signer's public key.
        version - Entity version.
        network - Entity network.
        type - Entity type.
        fee - Transaction fee.
        deadline - Transaction deadline.
        targetAddress - Metadata target address.
        scopedMetadataKey - Metadata key scoped to source, target and type.
        valueSizeDelta - Change in value size in bytes.
        value - Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
        Returns:
        Instance of AccountMetadataTransactionBuilder.
      • getTargetAddress

        public UnresolvedAddressDto getTargetAddress()
        Gets metadata target address.
        Returns:
        Metadata target address.
      • getScopedMetadataKey

        public long getScopedMetadataKey()
        Gets metadata key scoped to source, target and type.
        Returns:
        Metadata key scoped to source, target and type.
      • getValueSizeDelta

        public short getValueSizeDelta()
        Gets change in value size in bytes.
        Returns:
        Change in value size in bytes.
      • getValue

        public java.nio.ByteBuffer getValue()
        Gets difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).
        Returns:
        Difference between existing value and new value \note when there is no existing value, new value is same this value \note when there is an existing value, new value is calculated as xor(previous-value, value).