TypeScript SDK
CoinbaseSDKWalletConnectionOptions
Options for connecting to the CoinbaseSDK Wallet
If you want the wallet to be connected to a specific blockchain, you can pass a Chain object to the connect method.
This will trigger a chain switch if the wallet provider is not already connected to the specified chain.
You can create a Chain object using the defineChain function.
At minimum, you need to pass the id of the blockchain.
import { defineChain } from "thirdweb";const myChain = defineChain(myChainId); const address = await wallet.connect({ chain: myChain });The Thirdweb client object