- Follow the setup instructions to connect to the Testnet, if required during development.
-
Now, you can use the
signTransactionmethod from@stellar/varial-sdkin your dapp to sign Soroban XDRs using the account in Varial. -
Upon calling
signTransaction, Varial 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.
@stellar/varial-sdk is the new name of @stellar/freighter-api. Dapps already using @stellar/freighter-api keep working, but new methods ship only in @stellar/varial-sdk.