Polygon zkEVM API Quickstart
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.
Polygon zkEVM is a decentralized Ethereum Layer 2 network that uses cryptographic zero-knowledge proofs to offer validity and quick finality to off-chain transactions. Emulating the Ethereum Virtual Machine (EVM), zkEVM allows for transparent deployment of existing Ethereum smart contracts while enhancing scalability, security, and transaction throughput. By utilizing zkEVM, developers can build decentralized applications with quick finality and improved performance, all within the Ethereum ecosystem.
The Polygon zkEVM API is a collection of JSON-RPC methods that enable developers to interact with the Polygon zkEVM network. Using the endpoints provided by the API, developers can access up-to-date network data and submit transactions to it.
Send Your First Request on Alchemy
Let’s use the viem package to create a Polygon zkEVM 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
Polygon zkEVM APIs
For the full list of Polygon zkEVM APIs, see the Polygon zkEVM API Endpoints.