MemoProtocol
public protocol MemoProtocol : Sendable
Protocol defining the interface for transaction memos that attach messages or data to Stellar transactions.
-
Converts the memo to its XDR representation for network transmission.
Declaration
Swift
func toXDR() -> MemoXDR -
Creates a text memo from the provided string.
Declaration
Swift
init?(text: String) throws -
Creates a hash memo from the provided data.
Declaration
Swift
init?(hash: Data) throws -
Creates a return hash memo from the provided data.
Declaration
Swift
init?(returnHash: Data) throws -
Returns the memo type identifier as a string.
Declaration
Swift
func type() -> String
View on GitHub
Install in Dash