Options
All
  • Public
  • Public/Protected
  • All
Menu

Announce an namespace metadata transaction to associate a key-value state to an account.

Hierarchy

Index

Constructors

constructor

Properties

Readonly deadline

deadline: Deadline

Readonly maxFee

maxFee: UInt64

Readonly networkType

networkType: NetworkType

Readonly scopedMetadataKey

scopedMetadataKey: UInt64

Optional Readonly signature

signature: string

Optional Readonly signer

Readonly targetAddress

targetAddress: UnresolvedAddress

Readonly targetNamespaceId

targetNamespaceId: NamespaceId

Optional Readonly transactionInfo

Readonly type

type: number

Readonly value

value: string

Readonly valueSizeDelta

valueSizeDelta: number

Readonly version

version: number

Static Readonly Body_Index

Body_Index: number = ...

Index of the transaction body

Included fields are the transaction header, version, network, type, maxFee and deadline

var

{number}

Static Readonly Header_Size

Header_Size: number = ...

Transaction header size

Included fields are size, verifiableEntityHeader_Reserved1, signature, signerPublicKey and entityBody_Reserved1.

var

{number}

Static Readonly Type_Index

Type_Index: number = ...

Index of the transaction type

Included fields are the transaction header, version and network

var

{number}

Accessors

size

  • get size(): number
  • override

    Transaction.size()

    description

    get the byte size of a transaction using the builder

    memberof

    TransferTransaction

    Returns number

Methods

aggregateTransaction

  • aggregateTransaction(): number[]

getSigningBytes

  • getSigningBytes(payloadBytes: number[], generationHashBytes: number[]): number[]

hasMissingSignatures

  • hasMissingSignatures(): boolean

isConfirmed

  • isConfirmed(): boolean

isUnannounced

  • isUnannounced(): boolean

isUnconfirmed

  • isUnconfirmed(): boolean

reapplyGiven

serialize

  • serialize(): string

setMaxFee

toAggregate

toJSON

  • toJSON(): any

Static create

  • Create a mosaic meta data transaction object

    Parameters

    • deadline: Deadline

      transaction deadline

    • targetAddress: UnresolvedAddress

      target account address.

    • scopedMetadataKey: UInt64

      Metadata key scoped to source, target and type.

    • targetNamespaceId: NamespaceId

      Target namespace identifier.

    • valueSizeDelta: number

      Change in value size in bytes.

    • value: string

      String value with UTF-8 encoding Difference between the previous value and new value. You can calculate value as xor(previous-value, new-value). If there is no previous value, use directly the new value.

    • networkType: NetworkType
    • maxFee: UInt64 = ...

      (Optional) Max fee defined by the sender

    • Optional signature: string

      (Optional) Transaction signature

    • Optional signer: PublicAccount

      (Optional) Signer public account

    Returns NamespaceMetadataTransaction

Static createFromPayload

Static createTransactionHash

  • createTransactionHash(transactionPayload: string, generationHashBuffer: number[]): string

Generated using TypeDoc