Overview
The SQL API allows you to create custom queries to pull real-time and historical onchain data from Base. In this quickstart, you will learn how to:- Read and use the tables in CDP’s curated schema.
- Pull data from the Base blockchain with a SQL query.
Prerequisites
Sign in to the CDP Portal.Using the SQL Playground? No API keys needed!Using the API programmatically? Create a free CDP Client API key for the cURL example below.
1. Try it in the playground
2. Run a query programmatically
What to read next
- Schema reference: Familiarize yourself with our supported tables for SQL queries
- REST API Reference: Use the SQL API programmatically