Skip to main content
Use 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 same Wallet model as the other wallet types. Use wallet.stellarAddress to derive the Stellar G-address from the wallet public key when needed.
StellarAddress.swift
You can also call the address helpers directly:
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
For issued assets, include the asset code and issuer:
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