New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sats-connect/ui

Package Overview
Dependencies
Maintainers
2
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sats-connect/ui

A Bitcoin Web3 wallet provider selector. Built as a custom element, compatible with all major UI frameworks.

  • 0.0.7
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
19K
decreased by-17.46%
Maintainers
2
Weekly downloads
 
Created
Source

@sats-connect/ui

A Bitcoin Web3 wallet provider selector. Built as a custom element, compatible with all major UI frameworks.

Basic usage

import { loadSelector, selectWalletProvider } from "@sats-connect/ui";

// Call this once in your app to load the custom element.
loadSelector();

// At a later point,
//
// 1. Decide which wallet providers should be displayed to the user.
// 2. Display the selector and capture the user's selection.

// (1)
const providersToDisplay = someBusinessLogic();
// (2)
const userSelectedProviderId = await selectWalletProvider(providersToDisplay);

Development

An example app using the selector is included for convenience during development. To get started, run

npm install
npm run dev

Building the @sats-connect/ui package

To build the @sats-connect/ui package, run

npm run build

Building the example app

To build the example app use

npm run build-app

Viewing the example app live

The latest version of the example app is available at https://sats-connect-ui.netlify.app.

Docs

Technical documentation is in the docs folder.

FAQs

Package last updated on 19 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc