new Memo()
Memo represents memos attached to transactions. Use static methods to create memos.
- Source:
- See:
Methods
(static) hash(hash) → {xdr.Memo}
Creates and returns a MEMO_HASH memo.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
hash |
array
|
string
|
32 byte hash or hex encoded string |
Returns:
- Type:
-
xdr.Memo
(static) id(id) → {xdr.Memo}
Creates and returns a MEMO_ID memo.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string
|
64-bit number represented as a string |
Returns:
- Type:
-
xdr.Memo
(static) none() → {xdr.Memo}
Returns an empty memo (MEMO_NONE).
- Source:
Returns:
- Type:
-
xdr.Memo
(static) returnHash(hash) → {xdr.Memo}
Creates and returns a MEMO_RETURN memo.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
hash |
array
|
string
|
32 byte hash or hex encoded string |
Returns:
- Type:
-
xdr.Memo
(static) text(text) → {xdr.Memo}
Creates and returns a MEMO_TEXT memo.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string
|
memo text |
Returns:
- Type:
-
xdr.Memo