Skip to main content
Use 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 same Wallet 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
You can also derive a Stellar address from a Solana-format Ed25519 public key:
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
For issued assets, include the asset code and issuer:
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