Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ambire/login-sdk-web3-onboard

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ambire/login-sdk-web3-onboard

Ambire Wallet Login SDK web3-onboard module

  • 0.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by900%
Maintainers
5
Weekly downloads
 
Created
Source

@ambire/login-sdk-web3-onboard

A package for integrating Ambire Wallet Login for dApps using web3-onboard.

Install

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

Usage

import Onboard from '@web3-onboard/core'
import { AmbireWalletModule } from '@ambire/login-sdk-web3-onboard'

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

const onboard = Onboard({
    wallets: [ambireWallet],
    chains: [
        {
            id: '0x1',
            token: 'ETH',
            label: 'Ethereum Mainnet',
            rpcUrl: '<RPC provider URL>'
          },
          // ... other chains
    ],
    appMetadata: {
        name: 'Your dApp name',
        icon: '',
        description: 'Your dApp',
    },
    accountCenter: {
    desktop: {
        enabled: false,
    },
    },
})

const wallets = await onboard.connectWallet()

FAQs

Package last updated on 11 Dec 2023

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