CDP SDK Examples

August 21, 2025 ยท View on GitHub

Setup

Follow these steps to get started:

  1. Get a CDP API key and wallet secret from the CDP Portal
  2. Fill in your API key and wallet secret in .env.example, then run mv .env.example .env
  3. In the examples/rust folder, run cargo check to verify dependencies are installed

Usage

To run an example, use cargo run --example followed by the example name, for example:

cargo run --example wallet_client

Available Examples

  • wallet_client - Basic wallet client initialization and usage
  • evm_account_management - EVM account creation and management
  • evm_signing - EVM transaction signing examples
  • smart_account_management - Smart account operations and management
  • solana_account_management - Solana account creation and management
  • solana_signing - Solana transaction signing examples
  • token_balances - Retrieving and displaying token balances