List of all zkSync Era API endpoints
zkSync Era API Endpoints by use case
- Getting Blocks
- Reading Transactions
- Writing Transactions & EVM Execution
- Account Information
- Event Logs
- Chain Information
- Getting Uncles
- Gas Estimation
- Web3
- Real-time Events
Available Enhanced APIs
Getting Blocks
- zks_getBlockDetails
- zks_getRawBlockTransactions
- eth_getBlockByHash
- eth_blocknumber
- eth_getBlockByNumber
- eth_getBlockReceipts
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
Reading Transactions
- zks_getTransactionDetails
- zks_getBytecodeByHash
- eth_getTransactionByHash
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionReceipt
- eth_getTransactionCount
Writing Transactions & EVM Execution
Account Information
- zks_getAllAccountBalances
- zks_getProof
- eth_getCode
- eth_getBalance
- eth_accounts
- eth_getStorageAt
- eth_getProof
Event Logs
- zks_getL2ToL1LogProof
- eth_getLogs
- eth_newFilter
- eth_newPendingTransactionFilter
- eth_newBlockFilter
- eth_getFilterChanges
- eth_getFilterLogs
- eth_uninstallFilter
Chain Information
- zks_getMainContract
- zks_getTestnetPaymaster
- zks_L1BatchNumber
- zks_L1ChainId
- eth_chainId
- eth_protocolVersion
- net_listening
- net_version
Getting Uncles
- eth_getUncleCountByBlockHash
- eth_getUncleByBlockNumberAndIndex
- eth_getUncleByBlockHashAndIndex
- eth_getUncleCountByBlockNumber
Gas Estimation
- zks_estimateFee
- zks_estimateGasL1ToL2
- eth_estimateGas
- eth_gasPrice
- eth_feeHistory
- eth_createAccessList
Batch Information
Bridge Information
L2 to L1 Messaging
Web3
Real-time Events
Introduces WebSocket-based requests/responses which leverage a network connection allowing developers to listen for changes continuously without the need for HTTP polling.
Available Enhanced APIs
NFT API
All Networks |
---|
getNfts, getNFTMetadata, getContractsForOwner, getNFTMetadataBatch |
Transfers API
All Networks |
---|
- ERC20 Transfers - ERC1155 Transfers - ERC721 Transfers - External Transfers - Internal Transfers |
Token API
All Networks |
---|
- alchemy_getTokenBalances - alchemy_getTokenMetadata |
Webhooks
All Networks |
---|
- Mined Transaction - Dropped Transactions - Address Activity |
Debug API
All Networks |
---|
- debug_traceBlockByHash - debug_traceBlockByNumber - debug_traceTransaction - debug_traceCall |