Class AccountMetadataTransactionV1Descriptor

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

Associate a key-value state (metadata) to an account (V1, latest). \note This transaction must always be wrapped in an AggregateTransaction so that a cosignature from target_address can be provided. Without this cosignature the transaction is invalid. Compare to MosaicMetadataTransaction and NamespaceMetadataTransaction.

Constructors

Properties

Methods

Constructors

  • Creates a descriptor for AccountMetadataTransactionV1.

    Parameters

    • targetAddress: Address

      Account whose metadata should be modified.

    • scopedMetadataKey: bigint

      Metadata key scoped to source, target and type.

    • valueSizeDelta: number

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

    • Optional value: string | Uint8Array

      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.

    Returns AccountMetadataTransactionV1Descriptor

Properties

rawDescriptor: {
    scopedMetadataKey: bigint;
    targetAddress: Address;
    type: string;
    valueSizeDelta: number;
}

Type declaration

  • scopedMetadataKey: bigint
  • targetAddress: Address
  • type: string
  • valueSizeDelta: number

Methods

  • Builds a representation of this descriptor that can be passed to a factory function.

    Returns object

    Descriptor that can be passed to a factory function.