![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@xlabs-libs/wallet-aggregator-evm
Advanced tools
Implements the base abstractions for EVM-compatible blockchains.
Implements the base abstractions for EVM-compatible blockchains.
Wallets implemented so far:
Wallet | Link |
---|---|
Metamask | https://metamask.io |
WalletConnect | https://walletconnect.com |
Coinbase Wallet | https://www.coinbase.com/wallet |
Ledger Connect | https://www.ledger.com |
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
Implements the base abstractions for EVM-compatible blockchains, using [wagmi](https://github.com/wagmi-dev/wagmi) under the hood to handle connection implementations.
The npm package @xlabs-libs/wallet-aggregator-evm receives a total of 1,466 weekly downloads. As such, @xlabs-libs/wallet-aggregator-evm popularity was classified as popular.
We found that @xlabs-libs/wallet-aggregator-evm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.