Skip to content

Develop with Coinbase: Getting Started

Introduction

This guide will guide you through getting started with Coinbase development.

You will:

  • Install the backend or frontend Coinbase SDK.
  • Create a Coinbase Developer Platform API key

Note

For the sake of brevity, I'm only covering the CDP Python setup. From here on out, guides assume you are using Python.

Prerequisites

Step 1 -- Select an SDK to install

Backend: CDP SDK

Use the Coinbase Developer Platform (CDP) SDK to store, send, trade, and stake your assets.

The CDP SDK currently supports Typescript and Ruby.

Usage

  • Create your own secure MPC wallets
  • Access onchain data, a Base Sepotia faucet, and transfer USDC for free
  • Leverage crypto functions (transfer, stake, or trade)
  • Use Webhooks to receive real-time onchain notifications

Installation

Install the CDP SDK using pip:

pip install cdp-sdk

Frontend: Onchain Kit

Build onchain apps with ready-to-use React components and Typescript utilities.

Usage

Installation

(I only covered CDP SDK for python)

Step 2 -- Create a CDP API key

Assuming you are already signed in, create an API key from the CDP portal.

Click the Create API key button under the API Keys tab:

Create API Key

Give the key a name. Under API-specific restrictions check View, Trade, and Transfer.

Once complete, click Create & download to create the API key.

You should store the key name and secret in a safe place (i.e., a secrets manager or environment variables).