Skip to main content

Overview

This tool uses the Coinbase Developer Platform (CDP) SDK to:
  1. Fetch all transactions for a specified address
  2. Process both native transfers and token transfers
  3. Export the data to a CSV file with timestamp
  4. Track progress for long-running downloads

Prerequisites

  • Python 3.x
  • CDP API Key (see Authentication section)
  • Install the CDP SDK

Authentication

  1. Sign up at CDP Portal
  2. Generate an API key from your dashboard
  3. Optionally download the API key JSON file, or copy the key details
  4. Place it in your file system (e.g., ~/Downloads/cdp_api_key.json) or use environment variables

Usage

  1. Copy the code below to a Python file (e.g., app.py)
  2. Set your target address and configure the CDP client
  1. Run the script
  1. The script will generate a CSV file named transactions_{address}_{timestamp}.csv

Output Format

The CSV includes the following columns: