- Wallet Funding API (Alpha): With CDP SDK, you can fund your wallet from fiat currency in a bank account with a single API call. This method is currently limited to US-based individuals using US debit card (without 3DS verification) payment methods configured in a Coinbase account. We will add support for businesses, and for additional payment methods soon. This method currently supports funding wallets with USDC and ETH, with additional assets coming soon.
- Send crypto from an external wallet: If you already have crypto in another wallet, you can fund your API Wallet by transferring crypto from the other wallet to your API Wallet.
- Use Coinbase Product APIs: You can use Coinbase Product APIs (Retail / Exchange) to buy and transfer crypto to your API Wallet address.
Start by creating a Coinbase account if you don’t already have one, and add payment method(s).
Wallet Funding API (Alpha)
For this method, you need a Coinbase account with a US debit card (non-3DS) payment method configured. CDP SDK provides methods to get a quote if desired, and call the Wallet Funding API to buy crypto and transfer it to the indicated API Wallet. If you have multiple debit cards set up, this method will use the first non-3DS, active, verified card you added. The sections below walk through how to use these SDK methods.Supported Assets
You can fund your wallet with assets that are supported in the Coinbase App for the applicable network. Not all assets are available to fund on every network; availability in the Wallet Funding API will mirror an asset’s availability in the Coinbase App. For all of our supported EVM networkseth
and usdc
will be supported, and you can Trade those assets for your desired asset.
Limits
Wallet funding limits are the same as your Coinbase account limits.Get a quote
You may want to obtain estimates for the network fee and Coinbase fee (if applicable - save on fees with Coinbase One) associated with your wallet funding operation, before executing it. You can do this by calling the quoteFund method, as shown below. The quoteFund method returns a QuoteID and estimated network and Coinbase fees, as applicable.Fund your API Wallet
The wallet.fund() method will buy a specified amount of a given crypto asset using your Coinbase account, and transfer it to your API Wallet using the network you configured when creating your wallet. Fees, if applicable, will be charged in addition to the target amount. If you have already generated a quote, you can simply execute it to initiate wallet funding:Receive crypto from an external wallet
You can fund your API Wallet by receiving crypto from an external wallet. To do this, get the deposit address of the API Wallet by calling thegetDefaultAddress
API.
Use Coinbase products to move funds to your API Wallets
Another way to move funds to your API Wallet is to use Coinbase products.Sign up on Coinbase
The first step in using Coinbase products to move funds to your API Wallet is to create a Coinbase account. If you are an individual, you can use a personal Coinbase App account. If you are a business, you can use Coinbase Exchange. The onboarding process will involve answering questions about yourself and your business. If you need assistance in business onboarding, reach out to us in the #wallet-api channel of the CDP Discord.Send funds from Coinbase Retail / Exchange
Once you have onboarded to Retail / Exchange, you can buy crypto with payment methods of your choice on these platforms.- Supported payment methods on Coinbase Exchange can be found here.
- Supported payment methods on Coinbase Retail can be found here.
Move funds from Retail via Coinbase App APIs
Expand to see code snippet to move funds from retail to an API Wallet
Expand to see code snippet to move funds from retail to an API Wallet
Typescript
Move funds from Exchange via Exchange API
Expand to see code snippet to move funds from exchange to an API Wallet
Expand to see code snippet to move funds from exchange to an API Wallet
Withdrawing crypto to fiat
You may wish to convert crypto in your API Wallet to fiat in a bank account. You can do this using the following steps:- Get your Coinbase App deposit address for the same network as the API Wallet from which you want to withdraw
- Use the Transfer API to move funds from your API Wallet to your Coinbase account
- Once the crypto is in your Coinbase account, you can sell crypto for cash
- Lastly, follow the steps in cash out your funds for fiat in your selected payment method