GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Creit-Tech/Stellar-Wallets-Kit: A kit to handle all Stellar Wallets at once with a simple API

BranchesTags
Open more actions menu

Latest commit

 

History

307 Commits
307 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples
examples
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Stellar Wallets Kit

A kit to handle all Stellar Wallets at once with a simple API and without caring about individual configurations for each one of them. This library cares only about the connection and interaction with the wallets, allowing developers handling the UI/UX in the way they want.

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

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

Start the kit

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

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

Sign a transaction

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 connection yourself? Check out the documentation for more details.

Compatible Wallets:

  • xBull Wallet (Both PWA and extension version)
  • Albedo
  • Varial, formerly Freighter (extension and mobile)
  • Rabet (extension version)
  • WalletConnect
  • Lobstr
  • Hana
  • Hot Wallet
  • Klever Wallet
  • OneKey Wallet
  • Bitget Wallet

Installation and usage

Check how to install and use our library in our documentation at https://stellarwalletskit.dev

Who is using the kit?

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

  • https://lab.stellar.org/
  • https://swap.xbull.app/
  • https://mainnet.blend.capital/
  • https://app.fxdao.io/
  • https://app.sorobandomains.org/
  • https://stellar.cables.finance/

License

Licensed under the MIT License, Copyright © 2023-present Creit Technologies LLP.

Checkout the LICENSE.md file for more details.

About

A kit to handle all Stellar Wallets at once with a simple API

stellarwalletskit.dev

Topics

albedofreightersorobanstellarwalletsxbull

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

80 stars

Watchers

14 watching

Forks

67 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.