@ambire/login-sdk-web3-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.6 • Public • Published

@ambire/login-sdk-web3-react

A module for integrating Ambire Wallet Login for dApps using web3-react.

Install

npm install @ambire/login-sdk-web3-react

Usage

import { initializeConnector } from '@web3-react/core'
import { AmbireConnector } from '@ambire/login-sdk-web3-react'

const sdkOptions = {
  dappName: 'Your dApp name',
  dappIconPath: '<url-to-dApp-icon>',       // optional, but needed for dApp icon to be shown in Ambire Login modal
}

const [ambireConnector, ambireConnectHooks] = initializeConnector<AmbireConnector>(
  (actions) => new AmbireConnector(actions, sdkOptions, onErrorFunction)
)

Readme

Keywords

none

Package Sidebar

Install

npm i @ambire/login-sdk-web3-react

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

53.9 kB

Total Files

12

Last publish

Collaborators

  • superkalo
  • gergana95
  • cmihaylov_dev
  • borislav.itskov
  • 0xdex18
  • 0xstojnovsky
  • ivogeorgiev