signTransaction
Signs a Stellar transaction XDR using the connected wallet. The wallet provider handles the actual signing via its native API (e.g. Freighter, Lobstr, OneKey).Usage
Building a Transaction XDR
Use the@stellar/stellar-sdk to build a transaction before signing:
Parameters
Returns
Promise<{ signedXdr: string }> - A promise that resolves to an object containing the signed transaction XDR.
Errors
React
Related functions
- addStellarExtension - Add Stellar support to your client
- isStellarWalletAccount - Check if a wallet account is a Stellar account