@swapkit/wallet-coinbase

Installation

<pnpm|bun> add @swapkit/wallet-coinbase

Integration

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)

Wallet Support

Last updated