{"id":23411,"library":"cdp-sdk","title":"CDP SDK","description":"The Coinbase Developer Platform SDK for Python enables developers to build onchain applications using Coinbase's APIs. Version 1.44.0 requires Python >=3.10. Release cadence is active, with frequent updates.","status":"active","version":"1.44.0","language":"python","source_language":"en","source_url":"https://github.com/coinbase/cdp-sdk-python","tags":["coinbase","crypto","blockchain","onchain"],"install":[{"cmd":"pip install cdp-sdk","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Old package name was coinbase-sdk; renamed to cdp-sdk.","wrong":"from coinbase_sdk import Cdp","symbol":"Cdp","correct":"from cdp import Cdp"}],"quickstart":{"code":"import os\nfrom cdp import Cdp, Wallet\n\nCdp.configure(api_key_name=os.environ.get('CDP_API_KEY_NAME', ''), api_key_private_key=os.environ.get('CDP_API_KEY_PRIVATE_KEY', ''))\n\n# Create a wallet\nwallet = Wallet.create(network_id='base-sepolia')\nprint(f\"Wallet created: {wallet.id}\")","lang":"python","description":"Quickstart: configure API key and create a wallet."},"warnings":[{"fix":"pip uninstall coinbase-sdk; pip install cdp-sdk; change all 'from coinbase_sdk' to 'from cdp'.","message":"Version 1.0.0 renamed from coinbase-sdk to cdp-sdk. All imports changed from coinbase_sdk.* to cdp.*. Update imports and pip install.","severity":"breaking","affected_versions":"<1.0.0"},{"fix":"Ensure Cdp.configure() is called only once (e.g., at module level or in app init).","message":"Cdp.configure() must be called exactly once at the start of your application. Calling it multiple times will raise an exception.","severity":"gotcha","affected_versions":"all"},{"fix":"Always pass network_id='base-sepolia' (or desired testnet) to Wallet.create().","message":"The method Wallet.create() with no arguments defaults to base-mainnet. Always specify network_id to avoid accidentally creating a mainnet wallet.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip uninstall coinbase-sdk; pip install cdp-sdk","cause":"Installed old coinbase-sdk package or didn't install cdp-sdk.","error":"ModuleNotFoundError: No module named 'cdp'"},{"fix":"Set environment variables CDP_API_KEY_NAME and CDP_API_KEY_PRIVATE_KEY, then call Cdp.configure() at startup.","cause":"Cdp.configure() was not called or called with invalid credentials.","error":"ValueError: API key not configured. Call Cdp.configure() first."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}