Skip to content

Stellar Wallets KitAll Stellar Wallets with just one library

Forget about reading the wallets' documentation, just support all of them at once with this kit.

Auth modal

Getting started

You can use our library and interact with wallets in multiple ways, here is the shortest way but depending on the logic of you app you might need to do something different, check the documentation for more details.

Here are the steps to install, start and sign a transaction with our kit:

Install the package

shell
npx jsr add @creit-tech/stellar-wallets-kit

Start the kit

typescript
import { StellarWalletsKit } from "@creit-tech/stellar-wallets-kit/sdk";
import { defaultModules } from '@creit-tech/stellar-wallets-kit/modules/utils';

StellarWalletsKit.init({modules: defaultModules()});

Create the authentication button

typescript
const buttonWrapper = document.querySelector('#buttonWrapper');
StellarWalletsKit.createButton(buttonWrapper);

Sign a transaction

typescript
const {address} = await StellarWalletsKit.getAddress();

const {signedTxXdr} = await StellarWalletsKit.signTransaction(tx.toXDR(), {
  networkPassphrase: Networks.PUBLIC,
  address,
});

console.log("Signed Transaction:", signedTxXdr);

And that's it! you just added support to all Stellar wallets and signed a transaction that is ready to go to the public network with just a few lines of code 🙌

You need something more complex? Maybe listening to updates from the kit or manually handling the connection yourself? Check the documentation for more details.

Compatible Wallets:

  • xBull Wallet (Both PWA and extension version)
  • Albedo
  • Freighter
  • Rabet (extension version)
  • WalletConnect
  • Lobstr
  • Hana
  • Hot Wallet
  • Klever Wallet

Who is using the kit?

If you would like to see the kit in action, check these websites that are already using it: