Skip to content

encodeTransactionNote

encodeTransactionNote(note?): Uint8Array | undefined

Defined in: src/transaction/transaction.ts:50

Parameters

note?

TransactionNote

The transaction note

Returns

Uint8Array | undefined

the transaction note ready for inclusion in a transaction

Case on the value of data this either be:

  • null | undefined: undefined
  • string: The string value
  • Uint8Array: passthrough
  • Arc2TransactionNote object: ARC-0002 compatible transaction note
  • Else: The object/value converted into a JSON string representation