Protocols

The following protocols are available globally.

  • Protocol defining the interface for transaction memos that attach messages or data to Stellar transactions.

    See more

    Declaration

    Swift

    public protocol MemoProtocol : Sendable
  • Protocol for memos containing hash values with hex encoding capabilities.

    See more

    Declaration

    Swift

    public protocol MemoHashProtocol : Sendable
  • Specifies protocol for Account object used when creating an Transaction object.

    See more

    Declaration

    Swift

    public protocol TransactionAccount : Sendable
  • Protocol for fixed-size binary data wrappers used in XDR encoding.

    WrappedData provides a type-safe way to handle fixed-size byte arrays in Stellar’s XDR protocol. Common sizes include 4, 12, and 32 bytes for various key types and hashes.

    See more

    Declaration

    Swift

    public protocol WrappedData : Equatable, XDRDecodable, XDREncodable
  • A protocol for types which can be decoded from binary.

    See more

    Declaration

    Swift

    public protocol XDRDecodable : Decodable, Sendable
  • A protocol for types which can be encoded to binary.

    See more

    Declaration

    Swift

    public protocol XDREncodable : Encodable, Sendable