@swapkit/wallet-evm-extensions

Installation

<pnpm|bun> add @swapkit/wallet-evm-extensions

Integration

Implementation with @swapkit/core

import { SwapKit } from '@swapkit/core'
import { evmWallet } from '@swapkit/wallet-evm-extensions'

const swapKitClient = SwapKit({
  wallets: { ...evmWallet },
});
/* 
  WalletOption.METAMASK
  WalletOption.COINBASE_WEB
  WalletOption.TRUSTWALLET_WEB
  WalletOption.OKX_MOBILE
  WalletOption.BRAVE
*/
await swapKitClient.connectEVMWallet([Chain.Ethereum], WalletOption.MetaMask)

const wallet = await swapKitClient.getWalletWithBalance(Chain.Ethereum)

Wallet Support

Last updated