Skip to main content
The Ethereum API gives developers programmatic access to the canonical EVM blockchain across both of its layers: the execution layer over JSON-RPC for accounts, contracts, logs, and transactions, and the consensus layer over the Beacon Chain REST API for validators, attestations, and finality. Chainstack serves both through a single Ethereum node endpoint.

Ethereum API at a glance

PropertyValue
ChainEthereum — Layer 1, proof-of-stake consensus
Mainnet chain ID1
Testnet chain IDsSepolia 11155111, Hoodi 560048
Block time~12 seconds
Execution layerJSON-RPC — eth, net, web3, debug, trace, erigon namespaces
Consensus layerBeacon Chain REST API — /eth/v1/beacon, /eth/v1/validator, /eth/v1/node
Methods served by Chainstack100 — 69 execution-layer JSON-RPC methods + 31 Beacon Chain endpoints
Real-time dataWebSocket eth_subscribe (newHeads, logs, newPendingTransactions, syncing)
Debug & tracedebug_*, trace_*, and erigon_* namespaces
NetworksMainnet, Sepolia, and Hoodi, with full and archive nodes
Request units1 RU per full request, 2 RUs per archive request

Get your own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

What is Ethereum

Ethereum, launched in 2015, is a decentralized, open-source blockchain network that provides a platform for developers to build decentralized applications for diverse purposes. Ethereum runs on a proof-of-stake (PoS) consensus mechanism, and one of its most critical features is smart contract functionality, which lets developers create self-executing programs that automate the enforcement of contractual terms and conditions. Ethereum is the reference implementation of the Ethereum Virtual Machine (EVM), the execution environment that dozens of other chains — Base, BNB Smart Chain, Polygon, Arbitrum, Optimism, and more — adopt for compatibility. Tooling, contract bytecode, and JSON-RPC calls that work against Ethereum carry over to the wider EVM ecosystem with minimal changes. A modern Ethereum node runs two clients that share consensus and produce blocks together:
  • Execution layer — processes transactions, runs the EVM, and holds account and contract state. It exposes the JSON-RPC interface that applications use to read state and send transactions.
  • Consensus layer — runs proof-of-stake validation through the Beacon Chain, tracking validators, attestations, and finality. It exposes a REST API for validator duties and chain-finality data.

What is the Ethereum API

The Ethereum API lets developers build decentralized applications, analytics tools, wallets, and indexers. To read data from and send transactions to the Ethereum blockchain, an application connects to an Ethereum node endpoint, then calls the layer it needs:
  • The execution layer implements the JSON-RPC specification, a communication protocol that lets you make remote calls and execute them as if they were local. This is where you query balances, blocks, logs, and receipts, call and deploy smart contracts, and submit signed transactions.
  • The consensus layer exposes the Beacon Chain REST API for validator state, committees, sync committees, rewards, and finality checkpoints.
A Chainstack Ethereum node serves both, so a single endpoint covers execution-layer JSON-RPC, Beacon Chain queries, and WebSocket subscriptions for real-time data.

Methods

Chainstack serves 100 Ethereum methods across the execution and consensus layers:
LayerNamespace or pathMethods servedNotes
Executioneth_*39Accounts, blocks, logs, gas, contract calls, transactions, subscriptions
Executiondebug_*9Transaction and block tracing
Executiontrace_*8OpenEthereum-style tracing and replays
Executionerigon_*8Erigon-specific block, header, and log queries
Executionnet_*3Network listening status and peer count
Executionweb3_*2Client version and Keccak-256 hashing
ConsensusBeacon Chain REST31Validators, committees, rewards, finality, events
For the complete, per-method availability matrix, see Ethereum methods.
The txpool_* and admin_* namespaces are listed for completeness but are not served on Chainstack Ethereum nodes. See Ethereum methods for the full availability matrix.

What you can build

With a Chainstack Ethereum endpoint you can:
  • Query chain state — balances, blocks, logs, receipts, storage, proofs, and gas — through the standard eth_* JSON-RPC interface, compatible with ethers, viem, and web3.py.
  • Deploy and call Solidity contracts with Hardhat, Foundry, Remix, and Ape, using eth_call, eth_estimateGas, and eth_sendRawTransaction.
  • Debug and trace transactions with debug_traceTransaction, trace_block, trace_replayTransaction, and the erigon_* namespace on archive nodes.
  • Stream real-time data over WebSocket with eth_subscribe for newHeads, logs, newPendingTransactions, and syncing.
  • Read consensus-layer state — validators, committees, sync committees, rewards, and finality checkpoints — through the Beacon Chain REST API.
  • Index historical state at any block height — balances, contract storage, and traces — against an archive node.

How to start using the Ethereum API

You need access to an Ethereum node endpoint to use the Ethereum API. Follow these steps to sign up, deploy a node, and find your credentials: Now you are ready to connect to the Ethereum blockchain and use the Ethereum API to build.

SDKs and tooling

You can call the API directly over HTTP and WebSocket, or use a maintained library: For smart contract development, point Foundry, Hardhat, Ape, or Scaffold-ETH 2 at your Chainstack endpoint. Point any library or framework at your node URL and add a chain ID. See Ethereum tooling for wallet, IDE, library, and framework setup.

Networks

Chainstack supports Ethereum mainnet and the Sepolia and Hoodi testnets, with full and archive node modes, WebSocket connections, and debug & trace APIs.
FeatureMainnetSepoliaHoodi
Chain ID111155111560048
Full nodesYesYes
Archive nodesYesYesYes
WebSocketYesYesYes
Debug & trace APIsYesYesYes
A full node keeps recent state — the latest 128 blocks — while an archive node holds all historical state from genesis. Use an archive node for historical balances, contract storage at past blocks, and trace_* replays. See Networks for the full deployment matrix.

Frequently asked questions

What is the Ethereum chain ID?

Ethereum mainnet is chain ID 1. The Chainstack-supported testnets are Sepolia (11155111) and Hoodi (560048). Set the chain ID in your wallet, SDK, or framework config alongside your Chainstack RPC endpoint.

What is the difference between a full node and an archive node?

A full node keeps recent state — the latest 128 blocks on Ethereum — which covers most live application reads and transaction submission. An archive node retains all historical state from genesis, so you can query balances and contract storage at any past block and run trace_* replays. Chainstack offers both modes on mainnet and Sepolia, and archive on Hoodi.

Does Ethereum support debug and trace methods?

Yes. Chainstack Ethereum nodes serve the debug_*, trace_*, and erigon_* namespaces — including debug_traceTransaction, trace_block, trace_replayTransaction, and trace_filter — for transaction tracing and smart contract debugging. Debug and trace are available on mainnet, Sepolia, and Hoodi.

Does Chainstack support WebSocket subscriptions on Ethereum?

Yes. Connect over WebSocket and use eth_subscribe to stream newHeads, logs, newPendingTransactions, and syncing events in real time. Use eth_unsubscribe to cancel a subscription.

Which SDKs work with the Ethereum API?

Any standard Ethereum library works against a Chainstack endpoint: ethers.js and viem for JavaScript and TypeScript, web3.py for Python, and Nethereum for .NET. For contracts, use Foundry, Hardhat, Ape, or Scaffold-ETH 2. See Ethereum tooling.

Does Chainstack serve the Beacon Chain (consensus layer) API?

Yes. Chainstack Ethereum nodes expose 31 Beacon Chain REST endpoints alongside execution-layer JSON-RPC, covering validators, committees, sync committees, rewards, finality checkpoints, and the events stream. See Ethereum methods for the full list.

How are Ethereum requests priced?

Pricing is 1 request unit (RU) per full request and 2 RUs per archive request. For which EVM methods bill as full versus archive, see Request units — EVM methods affected by block age.
Last modified on June 25, 2026