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

@xlabs-libs/wallet-aggregator-evm

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xlabs-libs/wallet-aggregator-evm

Implements the base abstractions for EVM-compatible blockchains.

  • 0.0.1-alpha.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by41.28%
Maintainers
2
Weekly downloads
 
Created
Source

Wallet Aggregator - EVM

Implements the base abstractions for EVM-compatible blockchains.

Wallets implemented so far:

WalletLink
Metamaskhttps://metamask.io
WalletConnecthttps://walletconnect.com
Coinbase Wallethttps://www.coinbase.com/wallet
Ledger Connecthttps://www.ledger.com

Usage

The base EVMWallet configuration allows for the following parameters:

  • chainParameters: a map of chain parameters as defined in EIP-3085, used when the provider can't connect to a given chain.
  • preferredChain: an EVM chain id (e.g. 5 for Görli, 43113 for Avalanche Fuji Testnet, etc.). When connecting, the wallet will try to switch to this chain if the provider's network's chain id differs.
  • autoSwitch: indicates whether the wallet should attempt to switch the network back to the preferredChain upon detecting a chainChanged event (if set).
import {
    MetamaskWallet,
    WalletConnectWallet,
    CoinbaseWallet,
    LedgerWallet
} from "@xlabs-libs/wallet-aggregator-evm";

const metamask = new MetamaskWallet({
    preferredChain: 5,
    autoSwitch: true
});
const walletConnect = new WalletConnectWallet({
    preferredChain: 43113
});
const coinbase = new CoinbaseWallet({
    options: {
        reloadOnDisconnect: false,
        appName: 'My App'
    }
});
const ledger = new LedgerWallet();

FAQs

Package last updated on 13 Feb 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