skillfed

cdp-sdk

CDP SDK

cdp-sdk v1.47.1 79.4K downloads/30d#14,362 on PyPI
Permissive license MIT Active released

What it is and what it does

The CDP SDK is a Python client for Coinbase's Developer Platform that abstracts blockchain account management and transaction operations across EVM and Solana networks. It provides async-first APIs to create accounts (with optional import from existing private keys), manage transaction permissions through policies, and execute blockchain operations like token transfers and swaps. The client handles authentication via API keys and wallet secrets, manages connection pooling internally, and is designed to be instantiated once per application lifecycle and reused across concurrent operations.

The package wraps lower-level blockchain libraries (web3, solana, solders) and Coinbase's own APIs, letting developers focus on application logic rather than key management, signing, or network details. It supports both simple accounts and EVM smart accounts, end-user management for multi-tenant scenarios, and webhook subscriptions for transaction events.

Use it for:

  • Build a custodial wallet service that creates and manages user accounts on EVM or Solana without exposing private keys
  • Implement transaction policies to enforce spending limits or approval workflows before blockchain operations execute
  • Create a multi-chain token swap interface that abstracts EVM swap mechanics through the SDK's high-level API
  • Develop a serverless function that processes blockchain transactions on-demand, reusing a singleton CDP client across invocations
  • Manage end-user accounts and delegated operations in a multi-tenant application with fine-grained access control

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for the Coinbase Developer Platform that enables creating and managing EVM and Solana blockchain accounts, sending transactions, and interacting with wallet and policy APIs.

Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and requires Python 3.10+. It is purpose-built for Coinbase platform users who need programmatic account and transaction management across EVM and Solana. Install it if you are building on Coinbase Developer Platform; avoid it if you need a general-purpose web3 library or are not using Coinbase's infrastructure.

Install

cdp-sdk on PyPI

pip

pip install cdp-sdk

uv

uv add cdp-sdk

poetry

poetry add cdp-sdk

Installing cdp-sdk

Before you install

Low install friction with a pure Python wheel distribution. The package is actively maintained with a recent release and depends on well-established libraries like aiohttp, web3, and solana for async HTTP and blockchain operations.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install cdp-sdk

from cdp import CdpClient
import asyncio

async def main():
    async with CdpClient(
        api_key_id="YOUR_API_KEY_ID",
        api_key_secret="YOUR_API_KEY_SECRET",
        wallet_secret="YOUR_WALLET_SECRET",
    ) as cdp:
        account = await cdp.evm.create_account()
        print(account)

asyncio.run(main())

Requires Python 3.10 or later. You must obtain a Coinbase Developer Platform API Key ID, API Key Secret, and Wallet Secret from the Coinbase portal before initializing the client.

Verify before relying

  • Whether the SDK supports all EVM chains or is limited to specific networks
  • Rate limiting or quota details for the Coinbase Developer Platform API
  • Whether smart account functionality requires additional setup beyond the owner account

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 11 — aiohttp-retry, aiohttp, base58, cryptography, pydantic, pyjwt, python-dateutil, solana, solders, urllib3, web3
Maintenance actively maintained — 56 days since the last release
First released
Downloads 79,394/month — #14,362 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: cdp_sdk-1.47.1-py3-none-any.whl

Tags

coinbase blockchain SDKEVM Solana account managementcryptocurrency wallet API clientblockchain transaction libraryweb3 account creationCDP API Python clientcrypto wallet SDK
blockchainasync-firstcoinbase

More Application Frameworks packages