> For the complete documentation index, see [llms.txt](https://docs-rpc.crypto-chief.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-rpc.crypto-chief.com/chains/zksync-era.md). Agents can also search and read this documentation through its [MCP server](https://docs-rpc.crypto-chief.com/~gitbook/mcp).

# zkSync Era

zkSync Era RPC on Crypto Chief — node access to a ZK rollup Ethereum Layer 2 developed by Matter Labs. Full method reference with request and response examples.

<figure><img src="https://2009208810-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMsAt8nKCbZHDR0fe6EsD%2Fuploads%2F3C4jk152St4R14tuRp8A%2Fzksync_era.svg?alt=media&amp;token=7c59be90-4eea-4c47-96bf-ab5ef55d071b" alt=""><figcaption></figcaption></figure>

> zkSync Era API is available on [Web3 API platform](https://crypto-chief.com/rpc/zksync-era/).

*zkSync Era* is a ZK rollup Ethereum Layer 2 developed by Matter Labs. It compiles smart contracts to ZK-friendly bytecode via its custom LLVM-based compiler (zksolc / zkvyper) and generates validity proofs for every batch before submitting state roots to Ethereum. Era achieves near-instant finality on the rollup layer while inheriting Ethereum's security through cryptographic proofs rather than fraud challenges.

The node exposes a standard Ethereum [JSON-RPC](https://www.jsonrpc.org/specification) interface plus a set of `zks_*` methods for ZK rollup-specific queries — wallet balances in different token types, L2-to-L1 messaging, and proof status.

***

#### Methods supported

* [`web3_clientVersion`](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md#web3_clientversion) — returns the current client version.
* [`net_version`](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md#net_version) — returns the current network ID.
* [`net_listening`](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md#net_listening) — returns true if client is actively listening for network connections.
* [`eth_syncing`](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md#eth_syncing) — returns data on the sync status or false.
* [`eth_gasPrice`](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md#eth_gasprice) — returns the current price per gas in wei.
* [`eth_accounts`](https://docs-rpc.crypto-chief.com/chains/zksync-era/accounts-and-state.md#eth_accounts) — returns a list of addresses owned by client.
* [`eth_blockNumber`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md#eth_blocknumber) — returns the number of most recent block.
* [`eth_getBalance`](https://docs-rpc.crypto-chief.com/chains/zksync-era/accounts-and-state.md#eth_getbalance) — returns the balance of the account specified by address.
* [`eth_getStorageAt`](https://docs-rpc.crypto-chief.com/chains/zksync-era/accounts-and-state.md#eth_getstorageat) — returns the value from a storage position at an address specified.
* [`eth_getTransactionCount`](https://docs-rpc.crypto-chief.com/chains/zksync-era/accounts-and-state.md#eth_gettransactioncount) — returns the number of transactions sent from an address.
* [`eth_getBlockTransactionCountByHash`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md#eth_getblocktransactioncountbyhash) — returns the number of transactions in a block specified by block hash.
* [`eth_getBlockTransactionCountByNumber`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md#eth_getblocktransactioncountbynumber) — returns the number of transactions in the block specified by number.
* [`eth_getUncleCountByBlockHash`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md#eth_getunclecountbyblockhash) — returns the number of uncles in a block specified by block hash.
* [`eth_getUncleCountByBlockNumber`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md#eth_getunclecountbyblocknumber) — returns the number of uncles in a block specified by block number.
* [`eth_getCode`](https://docs-rpc.crypto-chief.com/chains/zksync-era/accounts-and-state.md#eth_getcode) — returns code at an address specified.
* [`eth_sendRawTransaction`](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls.md#eth_sendrawtransaction) — creates a new message call transaction or a contract creation for signed transactions.
* [`eth_call`](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls.md#eth_call) — executes a new message call immediately without creating a transaction on the blockchain.
* [`eth_estimateGas`](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md#eth_estimategas) — generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
* [`eth_getBlockByHash`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md#eth_getblockbyhash) — returns information for the block specified by block hash.
* [`eth_getBlockByNumber`](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks-part-2.md#eth_getblockbynumber) — returns information for the block specified by block number.
* [`eth_getTransactionByHash`](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls.md#eth_gettransactionbyhash) — returns information on a transaction specified by transaction hash.
* [`eth_getTransactionByBlockHashAndIndex`](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls.md#eth_gettransactionbyblockhashandindex) — returns information on a transaction specified by block hash and transaction index position.
* [`eth_getTransactionByBlockNumberAndIndex`](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls-part-2.md#eth_gettransactionbyblocknumberandindex) — returns information on a transaction by block number and transaction index position.
* [`eth_getTransactionReceipt`](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls-part-2.md#eth_gettransactionreceipt) — returns the receipt of a transaction by transaction hash.
* [`eth_getLogs`](https://docs-rpc.crypto-chief.com/chains/zksync-era/logs-filters-and-tracing.md#eth_getlogs) — returns logs matching the parameters specified.

**Premium-only methods (zkSync Era Sepolia Testnet)**:

* [`debug_traceBlockByHash`](https://docs-rpc.crypto-chief.com/chains/zksync-era/logs-filters-and-tracing.md#debug_traceblockbyhash) — traces the execution of all transactions within a block specified by hash.
* [`debug_traceBlockByNumber`](https://docs-rpc.crypto-chief.com/chains/zksync-era/logs-filters-and-tracing.md#debug_traceblockbynumber) — traces the execution of all transactions within a block specified by number.
* [`debug_traceBlock`](https://docs-rpc.crypto-chief.com/chains/zksync-era/logs-filters-and-tracing-part-2.md#debug_traceblock) — traces the execution of all transactions within a block.

***

#### In this section

* [Client, network and gas](https://docs-rpc.crypto-chief.com/chains/zksync-era/client-network-and-gas.md)
* [Accounts and state](https://docs-rpc.crypto-chief.com/chains/zksync-era/accounts-and-state.md)
* [Blocks](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks.md)
* [Blocks (part 2)](https://docs-rpc.crypto-chief.com/chains/zksync-era/blocks-part-2.md)
* [Transactions and calls](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls.md)
* [Transactions and calls (part 2)](https://docs-rpc.crypto-chief.com/chains/zksync-era/transactions-and-calls-part-2.md)
* [Logs, filters and tracing](https://docs-rpc.crypto-chief.com/chains/zksync-era/logs-filters-and-tracing.md)
* [Logs, filters and tracing (part 2)](https://docs-rpc.crypto-chief.com/chains/zksync-era/logs-filters-and-tracing-part-2.md)
