@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

Supported ChainsToolbox

[Chain.Arbitrum, Chain.Avalanche, Chain.BinanceSmartChain, Chain.Optimism, Chain.Polygon, Chain.Ethereum]

Last updated