API Directory › 🔗 Blockchain & Web3 › Covalent
API KeyHTTPSCORS

Covalent API

Unified API for historical balances, transactions and NFT data across chains.

Auth
API Key
HTTPS
Yes
CORS
Yes
Open Covalent docs ↗

What it does

Covalent (GoldRush) is a unified blockchain data API covering 100+ chains through one consistent schema: historical token balances and prices, full transaction history with decoded log events, NFT data with metadata and sales, and portfolio value over time.

Base URL

https://api.covalenthq.com/v1

Authentication

Sign up for an API key. Pass it as HTTP Basic auth (key as the username, empty password), or ?key=YOUR_KEY, or Authorization: Bearer YOUR_KEY. The chain goes in the path as a numeric id or name (/1/ or /eth-mainnet/).

Code examples

curl
curl -s "https://api.covalenthq.com/v1/eth-mainnet/address/0xd8dA6BF.../balances_v2/" \
  -u "$COVALENT_KEY:"
Python (transactions)
import requests

r = requests.get(
  "https://api.covalenthq.com/v1/eth-mainnet/address/0xd8dA6BF.../transactions_v3/",
  auth=(KEY, ""), timeout=20)
body = r.json()
for tx in body["data"]["items"][:5]:
    print(tx["block_signed_at"], tx["tx_hash"], tx["value"])

Rate limits & quotas

Free plan: a monthly credit allowance (calls cost credits by complexity) and roughly 4 requests/second. Over the rate cap: HTTP 429. Big history endpoints paginate; some (transactions_v3) use link-based paging via links.prev/next.

Key response fields

data.items[]The results array (schema depends on endpoint)
(balances) items[].contract_ticker_symbol / balance / quoteToken holding and USD value
(transactions) items[].tx_hash / value / gas_spent / log_events[]Tx with decoded events
data.pagination / linksPaging info
error / error_message / error_codeTop-level failure flags (HTTP may still be 200)

Common errors

401Missing or wrong key.
402Monthly credit allowance exhausted.
429Per-second rate exceeded.
200 + error:trueEndpoint-level failure — always check the error boolean before reading data.

When to use it (and alternatives)

Best when you need the same data model across many chains — a multichain portfolio tracker, tax tool, or analytics dashboard. Moralis is the main competitor (fewer chains, similar wallet focus); for a query language over raw on-chain data, The Graph or Bitquery.

FAQ

Why is there an error field on a 200 response?

Covalent wraps every response in {data, error, error_message, error_code}. A malformed address or unsupported chain can return HTTP 200 with error: true — check it first.

How do I authenticate with curl?

Basic auth with the key as the username and nothing as the password: -u "YOUR_KEY:" (note the trailing colon). The ?key= query param also works but leaks into logs.

Which chain identifier should I use?

Either the numeric chain id (1, 137) or the name (eth-mainnet, matic-mainnet). Names are clearer; the docs list every supported chain.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Blockchain & Web3 APIs

← Back

More Blockchain & Web3 APIs · All 196 APIs