Skip to main content

useCoinbaseWallet

Hook that requests users to connect their Coinbase Wallet to your dApp.

import { useCoinbaseWallet } from "@thirdweb-dev/react";

Usage

import { useCoinbaseWallet } from "@thirdweb-dev/react";

function App() {
const connectCoinbase = useCoinbaseWallet();

return <button onClick={() => connectCoinbase()}>Connect to Coinbase</button>;
}

Once connected, use the useAddress hook to get the address of the connected wallet.