Wallet Components & Utilities · OnchainKit
Introduction to Wallet Components & Utilities
The WalletDropdownFundLink
works just like the FundButton
except that it’s inside your wallet
dropdown menu.
If your user connects a Coinbase Smart Wallet, it provides an easy way to access the Coinbase Smart Wallet Fund flow. Users will be able to buy and receive crypto, or use their Coinbase balances onchain with Magic Spend.
If your user connects any other EOA wallet, it provides an easy way to access Coinbase Onramp where your users will also be able to buy crypto using a fiat payment method, or transfer existing crypto from their Coinbase account.
Coinbase Onramp Support
If you would like to provide non Coinbase Smart Wallet users with an easy way to access Coinbase Onramp, please make
sure you go through the FundButton
walkthrough to configure your Project ID. Otherwise
only Coinbase Smart Wallet users will be able to use the WalletDropdownFundLink
.
Usage
Override text
You can override component text using the text
prop.
Override icon
You can override the icon using the icon
prop.
Customizing the popup size
You’re able to customize the size of the popup window using the popupSize
prop. Valid values are sm
, md
, and lg
.
Override default behavior
You can override default link behavior by using the openIn
prop. Valid values are popup
and tab
.
Override funding URL
You can override the default URL by using the fundingUrl
prop.