Last updated 6 months ago
<pnpm|bun> add @swapkit/wallet-coinbase
Implementation with @swapkit/core
import { SwapKit } from '@swapkit/core' import { coinbaseWallet } from '@swapkit/wallet-coinbase' const swapKitClient = SwapKit({ wallets: { ...coinbaseWallet }, }); await swapKitClient.connectCoinbaseWallet([Chain.Ethereum, Chain.Avalanche]) const avaxWallet = await swapKitClient.getWalletWithBalance(Chain.Avalanche) const ethWallet = await swapKitClient.getWalletWithBalance(Chain.Ethereum)
[Chain.Arbitrum, Chain.Avalanche, Chain.BinanceSmartChain, Chain.Optimism, Chain.Polygon, Chain.Ethereum]
EVM