Prerequisites
- Linux or macOS (Windows via WSL2)
- Internet connection for downloading data
- ~2GB free disk space for initial setup
Quick Start
Install Amp
Install Amp using the official version manager Restart your terminal or run:Verify the installation:
ampup:Start Amp in solo mode
Solo mode runs all components (server, worker, controller) in a single process with auto-managed PostgreSQL:You should see output indicating the services are starting:
Solo mode automatically creates and manages a PostgreSQL instance in
.amp/metadb/ — no manual database setup required!Register an EVM RPC dataset
Open a new terminal and register a dataset to extract Ethereum mainnet data:
This creates a dataset definition but doesn’t start extraction yet. You need to deploy it next.
Deploy the extraction job
Deploy the dataset to start extracting blockchain data:This extracts blocks 18,000,000 through 18,001,000 (1,000 blocks). Check job progress:Wait for the job status to show
Completed (usually takes 1-2 minutes for 1,000 blocks).Query via Arrow Flight (Python)
For high-performance queries, use the Arrow Flight endpoint:Available Tables
Each dataset provides three tables:| Table | Description | Columns |
|---|---|---|
blocks | Block headers | number, hash, parent_hash, timestamp, gas_used, gas_limit, … |
transactions | Transactions | block_number, hash, from, to, value, gas, input, … |
logs | Event logs | block_number, transaction_hash, address, topics, data, … |
Built-in User-Defined Functions
Amp includes EVM-specific UDFs for common operations:Next Steps
Core Concepts
Learn about Amp’s architecture and data flow
SQL Guide
Master SQL querying in Amp
Data Sources
Connect to Firehose, Solana, and more
Production Deployment
Deploy Amp in production
Troubleshooting
Solo mode fails to start
Solo mode fails to start
Symptom:
ampd solo exits with PostgreSQL errorsSolution: Remove the existing PostgreSQL directory and try again:Query returns no data
Query returns no data
Symptom: Queries run but return empty resultsSolution: Check that the extraction job completed:Wait for the status to show
Completed before querying.Connection refused on port 1603
Connection refused on port 1603
Symptom:
curl: (7) Failed to connect to localhost port 1603Solution: Ensure ampd solo is running in another terminal. Check the logs to confirm the server started successfully.