- Follow the setup instructions to connect to the Testnet, if required during development.
-
Now, you can use the
signTransactionmethod from@stellar/freighter-apiin your dapp to sign Soroban XDRs using the account in Freighter. -
Upon calling
signTransaction, Freighter will open and prompt the user to sign the transaction. Approving the transaction will return an object containing the signed XDR to the requesting dapp.
Freighter Wallet
Prompt Freighter to sign transactions as a JS dapp developer
Sign smart contract transactions using the Freighter browser extension
If you’re building a JS dapp, easily sign Soroban transactions using the Freighter browser extension and its corresponding client library @stellar/freighter-api: