Prompt Freighter to sign transactions as a JS dapp developer
If you're building a JS dapp, easily sign Soroban transactions using the Freighter browser extension and its corresponding client library @stellar/freighter-api:
-
Follow the setup instructions to connect to the Testnet, if required during development.
-
Now, you can use the
signTransaction
method from@stellar/freighter-api
in 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 the signed XDR to the requesting dapp.
Guides in this category:
๐๏ธ Connect to the Testnet
Create a Stellar account on Testnet with Freighter
๐๏ธ Enable Soroban tokens
Add smart contract tokens to your Freighter wallet
๐๏ธ Integrate Freighter with a React dapp
Integrate the Freighter wallet into your React dapps
๐๏ธ Prompt Freighter to sign transactions as a JS dapp developer
Sign smart contract transactions using the Freighter browser extension
๐๏ธ Send Soroban token payments
Send a smart contract token payment directly from Freighter
๐๏ธ Sign authorization entries
Use Freighter's API to sign an authorization entry
๐๏ธ Sign Soroban XDRs
Sign smart contract XDRs using dapps integrated with Freighter