Beta

Blockchain API

by Covalent
15Supported chains 3Plans
Starting at $50.00
This add-on is currently in Beta

Feel free to test it, we would appreciate feedback to address any errors that may occur

An industry-leading API that provides all block, transaction & event-level onchain data for 200+ blockchains including Ethereum, Polygon, Optimism, Arbitrum, Base, Linea, BNB Chain and many more.

Fetch all block-level details, contract log events by address or topic hash(es), and gas prices for various transaction types such as ERC20 and native token transfers and swap events.

Note - by purchasing this add-on, you get access to ALL the other Covalent add-ons in the marketplace.

Getting Started

There are 3 primary developer tools for using the Blockchain API:
 
1. Unified API - enterprise-grade endpoints to use with any programming language. Switch blockchains with one path parameter.

curl -X GET https://api.covalenthq.com/v1/eth-mainnet/events/address/0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789/\?starting-block\=19570500\&ending-block\=latest \
    -H 'Content-Type: application/json' \
    -u YOUR_API_KEY:

 
2. Client SDKs - official client libraries for TypeScript, Go and Python.
 

import { CovalentClient } from "@covalenthq/client-sdk";

(async () => {
   const client = new CovalentClient("YOUR_API_KEY");
   try {
      for await (const resp of client.BaseService.getLogEventsByAddress("eth-mainnet","0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", {"startingBlock": 19570500, "endingBlock": "latest"})) {
    console.log(resp);
  }
} catch (error) {
    console.log(error.message);
}
})();

 
3. GoldRush Kit - beautifully designed React components for your dApp frontend
GoldRush Component Example

See the following links to our API Docs and Guides:
- API Docs: comprehensive knowledge base for all things Covalent
- Guides: learn how to build for various use cases and expand your onchain knowledge

Supported Chains

Arbitrum
Arbitrum Nova
Avalanche
Base
Blast
BNB Smart Chain
Celo
Ethereum logo
Ethereum
Fantom
Gnosis
Optimistic Ethereum
Polygon / MATIC
Polygon zkEVM
Scroll
zkSync

Published on May 3, 2024

Support Website Support Email

Plans & features

Premium - $50/month
  • Premium - $50/month
  • Professional - $250/month
  • Platinum - $500/month
Enterprise Sales
50,000 API Credits Per Month
All Block Details
Includes hash, parent block, miner address, gas used and limit
Gas Prices
For ERC20, native token transfers and swap events. Includes gas price and gas spent in native and fiat values for the past 1, 3 and 5 minutes.
Filter Contract Log Events
Filter by contract address or topic hash(es)