WalletType.stellar to create or load a Stellar wallet, then pass a StellarTransaction value to signTransaction.
Quick start
StellarSigning.swift
Display the address
A Stellar wallet uses the sameWallet model as the other wallet types. Use wallet.stellarAddress to derive the Stellar G-address from the wallet public key when needed.
StellarAddress.swift
StellarAddressHelpers.swift
Sign a payment
StellarTransaction supports native XLM payments and issued assets. The networkPassphrase must match the network the transaction will be submitted to.
StellarPayment.swift
StellarAssetPayment.swift
Sign serialized XDR
If your backend or Stellar SDK code already builds the transaction, pass the serialized XDR directly.StellarXDR.swift
Network passphrases
| Network | Constant |
|---|---|
| Stellar Testnet | StellarNetwork.testnetPassphrase |
| Stellar Public Network | StellarNetwork.publicPassphrase |