> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dfns.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Coinbase Prime

> Connect Coinbase Prime to Dfns to deposit and withdraw assets between your Dfns wallets and Coinbase Prime accounts with policy controls.

Dfns offers a robust integration with Coinbase Prime, a leading prime brokerage platform for digital assets. This allows institutional clients to securely manage and transfer assets between their Dfns MPC wallets and their segregated custody accounts at Coinbase Prime. The integration provides a streamlined and secure workflow for trading, settlement, and asset management, combining the flexibility of Dfns's API-first wallet infrastructure with the comprehensive services of a top-tier prime broker.

## How to set it up

### API Key Generation

Log into your Coinbase Prime account and go to the Coinbase Prime homepage at [https://prime.coinbase.com/](https://prime.coinbase.com/). From here, click **Settings** under the profile icon in the left menu and then on `API`. Click **Create Portfolio API Key** and generate a Read only key by selecting only the **Read** permission within the **Access Type** screen:

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/Zg3BwjXb9xa3_Cby/images/coinbase1.jpeg?fit=max&auto=format&n=Zg3BwjXb9xa3_Cby&q=85&s=4e93fd7a76613e600d0e6d5af6ee239c" alt="" width="2304" height="1175" data-path="images/coinbase1.jpeg" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/Zg3BwjXb9xa3_Cby/images/coinbase2.jpeg?fit=max&auto=format&n=Zg3BwjXb9xa3_Cby&q=85&s=13768f42fff97de8d388de37b2d8100b" alt="" width="1536" height="783" data-path="images/coinbase2.jpeg" />
</Frame>

In **Pending Keys**, click **Activate Key** for the newly created Read API Key.

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/Zg3BwjXb9xa3_Cby/images/coinbase3.jpeg?fit=max&auto=format&n=Zg3BwjXb9xa3_Cby&q=85&s=35e5ed44b585c925fc45e997dbc6b97b" alt="" width="1536" height="783" data-path="images/coinbase3.jpeg" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/Zg3BwjXb9xa3_Cby/images/coinbase4.jpeg?fit=max&auto=format&n=Zg3BwjXb9xa3_Cby&q=85&s=707ad216f531f2b467ba8db651bff52b" alt="" width="1536" height="783" data-path="images/coinbase4.jpeg" />
</Frame>

Log into your Dfns dashboard and navigate to **Integrations**, find the Coinbase Prime card and click **Configure**, then click **New**. Copy the Access Key, Passphrase and Sigining API keys from Coinbase Prime into the corresponding fields.

Go back to Coinbase Prime and generate a second Write API key this time activating **Transfer** in the Access Type screen.:

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/Zg3BwjXb9xa3_Cby/images/coinbase5.jpeg?fit=max&auto=format&n=Zg3BwjXb9xa3_Cby&q=85&s=75d73b113604a65d778c9ba213f30daa" alt="" width="1536" height="783" data-path="images/coinbase5.jpeg" />
</Frame>

Copy the generated values into the Write API key fields in Dfns. Click **Create** and the integration setup is complete.

## Trusted Withdrawal Addresses

Coinbase Prime enforces **an address book** for all withdrawal wallet addresses. This means that before withdrawing any assets to an external wallet, the wallet address must be added to the address book in your Coinbase Prime account. Follow these steps to whitelist a wallet address using Coinbase Prime's standard interface:

1. **Initiate a withdrawal from the Dfns dashboard** to your desired Dfns wallet
   1. If your address is already in the *address book*\*, you will not have anything to do
   2. If your address is not in the *address book*\*, you will have an error message telling your to login to your Coinbase Prime Dashboard
2. **Log into your Coinbase Prime account.**
3. **Click on the notifications**, you should see a pending notification to add a trusted address.
4. **Click on Approve** to add the trusted address, the name of the address should start with `dfns-...`

This trusted address process adds an extra layer of security, ensuring that only authorized wallet addresses can receive withdrawals from your Coinbase Prime account.

<Frame>
  <img src="https://mintcdn.com/dfns-6d8c7466/Zg3BwjXb9xa3_Cby/images/coinbase6.jpeg?fit=max&auto=format&n=Zg3BwjXb9xa3_Cby&q=85&s=d76c498308914a5a1e7183f14088f52b" alt="" width="1536" height="783" data-path="images/coinbase6.jpeg" />
</Frame>
