Socket
Socket
Sign inDemoInstall

connext

Package Overview
Dependencies
9
Maintainers
5
Versions
160
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    connext

Browser SDK for Connext


Version published
Weekly downloads
14
Maintainers
5
Created
Weekly downloads
 

Readme

Source

Connext Browser SDK

The Connext Browser SDK is the simplest way to add micropayments to any web app.

Connext is the protocol for p2p micropayments, built using state channels on the Ethereum blockchain. This SDK creates a Connext client inside of an iframe in your browser page, and then uses that client along with some minimal UI components to dispatch transfers to a recipient.

The SDK supports the following features:

  • 🎩 Email-based login via Magic.
  • 💳 Debit card on/offboarding via Moonpay.
  • ⛽ End-to-end Ethereum gas (transaction fee) abstraction.
  • 💵 Transfers in USD by default, with optional customizeability to other currencies.
  • 🦊 Login using any popular Ethereum wallet such as Metamask. (coming soon!)

Installation

You can install the SDK using npm:

npm i --save connext

Usage

After installing, import the SDK into your web app, instantiate it and open the login UI.

import ConnextSDK from "connext";

const connext = new ConnextSDK();

// login
await connext.login();

// publicIdentifier
const publicIdentifier = connext.publicIdentifier;

// balance
const balance = await connext.balance();

// deposit
await connext.deposit();

// transfer
await connext.transfer("indra987zxy...", "12.5");

// withdraw
await connext.withdraw();

Documentation

For more documentation, please check the Github repo for Connext SDK

FAQs

Last updated on 27 Aug 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc