Ethereum API Overview
Don't have an API key?
Build faster with production-ready APIs, smart wallets and rollup infrastructure across 70+ chains. Create your free Alchemy API key and get started today.
The Ethereum API allows applications to connect to an Ethereum node that is part of the Ethereum blockchain. Developers can interact with on-chain data and send different types of transactions to the network by utilizing the endpoints provided by the API.
Send Your First Request on Alchemy
Let’s use the viem package to create an Ethereum client connected to Alchemy and fetch the latest block number!
Create Client Connected to Alchemy
Now that you’ve created a client connected to Alchemy, you can continue with some basics:
Get Latest Block Number
Get an Address Balance
Read Block Data
Fetch a Transaction by Hash
Fetch Transaction Receipt
Ethereum Tutorials
Check out the following tutorials to learn how to build with Ethereum:
- Build a Web3 Dashboard
- Ethereum Developer Guide to the Merge
- How do I distinguish between a contract address and wallet address?
For full documentation on Web3 libraries, check out the official documentation:
- Viem Documentation - Modern TypeScript interface for Ethereum
- Ethers.js Documentation - Complete Ethereum wallet implementation