WalletType.stellar to create or load a Stellar wallet, then pass a StellarTransaction payload to signTransaction.
Quick start
stellar_signing.dart
Display the address
A Stellar wallet uses the sameWallet model as the other wallet types. Use wallet.address when it is present. If you only have the raw Ed25519 public key, derive the Stellar G-address with getStellarAddress.
stellar_address.dart
stellar_address_from_solana.dart
Sign a payment
StellarTransaction.payment supports native XLM payments and issued assets. The networkPassphrase must match the network the transaction will be submitted to.
stellar_payment.dart
stellar_asset_payment.dart
Sign serialized XDR
If your backend or Stellar SDK code already builds the transaction, pass the serialized XDR directly.stellar_xdr.dart
Network passphrases
| Network | Constant |
|---|---|
| Stellar Testnet | StellarNetwork.testnetPassphrase |
| Stellar Public Network | StellarNetwork.publicPassphrase |