Skip to main content

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

Last modified on June 25, 2026