ethers.js
and offers a modern, developer-friendly API for building dapps.
The NPM package @coinbase/cdp-wagmi is a bridge that connects Coinbase’s CDP (Coinbase Developer Platform) Wallets to the wagmi ecosystem—bringing CDP-powered smart wallet functionality into React apps using wagmi hooks.
You’ll learn how to install the package, set up the provider, and render your first component.
npm
, pnpm
, or yarn
)CDPEmbeddedWalletConnector
provides the necessary context for Wagmi to work correctly with the CDP Frontend SDK. The providerConfig
must be provided and is responsible for configuring the EIP-1193 provider’s transports which are used to broadcast non-Base transactions.
useSendTransaction
hook:
What's different from standard Wagmi setup?
CDPEmbeddedWalletConnector
instead of traditional wallet connectors. This connector: