Class NamespaceMetadataTransactionV1Descriptor

java.lang.Object
org.symbol.sdk.symbol.descriptors.NamespaceMetadataTransactionV1Descriptor
All Implemented Interfaces:

SymbolTransactionDescriptor, SymbolTypedDescriptor, TypedDescriptor


public final class NamespaceMetadataTransactionV1Descriptor extends Object implements SymbolTransactionDescriptor
NamespaceMetadataTransactionV1Descriptor

Type safe descriptor used to generate a descriptor map for NamespaceMetadataTransactionV1Descriptor.

Associate a key-value state (metadata) to a namespace (V1, latest). Compare to AccountMetadataTransaction and MosaicMetadataTransaction.

  • Constructor Details

    • NamespaceMetadataTransactionV1Descriptor

      public NamespaceMetadataTransactionV1Descriptor(Address targetAddress, long scopedMetadataKey, NamespaceId targetNamespaceId, int valueSizeDelta, byte[] value)
      Creates a descriptor for NamespaceMetadataTransactionV1.
      Parameters:

      targetAddress - Account owning the namespace whose metadata should be modified.

      scopedMetadataKey - Metadata key scoped to source, target and type.

      targetNamespaceId - Namespace whose metadata should be modified.

      valueSizeDelta - Change in value size in bytes, compared to previous size.

      value - Difference between existing value and new value.
      Note: When there is no existing value, this array is directly used and value_size_delta==value_size.
      Note: When there is an existing value, the new value is the byte-wise XOR of the previous value and this array. (field is omitted when null)

  • Method Details