new Memo(type, value)
Memo
represents memos attached to transactions.
- Source:
- See:
Parameters:
Name | Type | Description |
---|---|---|
type |
string
|
|
value |
*
|
|
Members
type
Contains memo type: MemoNone
, MemoID
, MemoText
, MemoHash
or MemoReturn
value
Contains memo value:
null
forMemoNone
,string
forMemoID
,Buffer
forMemoText
after decoding usingfromXDRObject
, original value otherwise,Buffer
forMemoHash
,MemoReturn
.
Methods
toXDRObject() → {xdr.Memo}
Returns XDR memo object.
Returns:
- Type:
-
xdr.Memo
(static) fromXDRObject(object) → {Memo}
Returns Memo from XDR memo object.
Parameters:
Name | Type | Description |
---|---|---|
object |
xdr.Memo
|
XDR memo object |
Returns:
- Type:
-
Memo
(static) hash(hash) → {Memo}
Creates and returns a MemoHash
memo.
Parameters:
Name | Type | Description |
---|---|---|
hash |
array
|
string
|
32 byte hash or hex encoded string |
Returns:
- Type:
-
Memo
(static) id(id) → {Memo}
Creates and returns a MemoID
memo.
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
64-bit number represented as a string |
Returns:
- Type:
-
Memo