Polygon zkEVM is a decentralized Ethereum Layer 2 scaling solution 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 allows applications to connect to a Polygon zkEVM node that is part of the Polygon
zkEVM network. Developers can interact with on-chain data and send different types of transactions to the network by utilizing the endpoints provided by the API. The API follows a JSON-RPC standard. JSON-RPC is a stateless, lightweight, remote procedure call (RPC) protocol encoded in JSON.
Explained in the Polygon zkEVM API Quickstart Guide.
Yes, Polygon zkEVM is fully opcode compatible with the Ethereum Virtual Machine (EVM). It is designed to emulate the EVM by recreating all existing EVM opcodes, which allows for transparent deployment of existing Ethereum smart contracts. By achieving compatibility with the EVM, Polygon zkEVM enables developers to seamlessly deploy and interact with smart contracts on the Layer 2 solution
Polygon uses the JSON-RPC API standard as its API. The Polygon zkEVM JSON-RPC API serves as the backbone for the Polygon zkEVM network and powers any blockchain interaction.
In aggregate, this API suite allows users to read block/transaction data, query chain information, execute smart contracts, store data on-chain, etc. Developers and consumers alike interact with Polygon zkEVM’s base JSON-RPC APIs to communicate with its decentralized network of nodes.
When accessing the Polygon network via a node provider like Alchemy, Polygon zkEVM developers use an API key to send transactions and retrieve data from the network.
For the best development experience, we recommend that you sign up for a free API key!
Polygon zkEVM does not have its own separate native token. Instead, it uses MATIC, the native token of the Polygon network, for transactions, gas fees, and other network activities. MATIC serves as the native token for the entire Polygon ecosystem, which includes the zkEVM Layer 2 scaling solution. Users can bridge the MATIC tokens from Polygon to zkEVM using the Polygon bridge.
The testnet you should use for Polygon zkEVM is the zkEVM Public Testnet. By connecting to this testnet, you can launch smart contracts, execute transactions, and test applications on the zkEVM network.
Additionally, you can obtain test tokens from the Goerli testnet and use the Polygon zkEVM bridge to transfer these tokens to the zkEVM Public Testnet. This process allows you to test out the capabilities of the Polygon zkEVM network in a testnet environment before deploying to the mainnet.
You can find the list of all the methods Alchemy support for the Polygon zkEVM API on the Polygon zkEVM API Endpoints page.
Don't worry, we got you. Check out our discord and feel free to post any questions you have!