Stellar SDK for iOS & macOS - Swift, Stellar, Horizon, Soneso
// readme
Stellar SDK for iOS & macOS
Build and sign Stellar transactions, query Horizon, and interact with Soroban smart contracts via RPC. Communicate with anchors and external services using the built-in SEP protocol support.
Installation
Add the SDK with Swift Package Manager:
.package(name: "stellarsdk", url: "git@github.com:Soneso/stellar-ios-mac-sdk.git", from: "3.12.0"),
Requires iOS 15+, macOS 12+, Xcode 16+ (Swift 6 toolchain). Your app can build in Swift 5 or Swift 6 language mode.
Quick examples
Send a payment
Transfer XLM between accounts:
let paymentOp = PaymentOperation(sourceAccountId: nil,
destinationAccountId: receiverId,
asset: Asset(type: AssetType.ASSET_TYPE_NATIVE)!,
amount: 100)
let transaction = try Transaction(sourceAccount: senderAccount,
operations: [paymentOp],
memo: Memo.none)
try…