0.0.0-nightly-20230904215030 • Published 2 years ago

@thorswap-lib/evm-web3-wallets v0.0.0-nightly-20230904215030

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@thorswap-lib/evm-web3-wallets

Install

pnpm add @thorswap-lib/evm-web3-wallets

To use the browser extensions you need to extend core and install the corresponding package for the chain you want to use.

import { SwapKitCore } from '@thorswap-lib/swapkit-core';
import { evmWallet } from '@thorswap-lib/evm-web3-wallets';

const client = new SwapKitCore();

client.extend({
  wallets: [
    evmWallet, // MM, Brave, Trust, Coinbase
  ],
});

client.connectEVMWallet(chains, WalletOption.Metamask)
chainMetamaskBraveWalletWalletconnectCoinbasepackage
BTC@thorswap-lib/toolbox-utxo
LTC@thorswap-lib/toolbox-utxo
BCH@thorswap-lib/toolbox-utxo
DOGE@thorswap-lib/toolbox-utxo
ETH@thorswap-lib/toolbox-evm
AVAX@thorswap-lib/toolbox-evm
BSC@thorswap-lib/toolbox-evm
COSMOS (ATOM)@thorswap-lib/toolbox-cosmos
BNB@thorswap-lib/toolbox-cosmos
THORCHAIN (RUNE)@thorswap-lib/toolbox-cosmos

Links

1.0.0

2 years ago