These calls expose Elastic Network specific data such as L1→L2 fees, bridge contract addresses, and
batch details.
Unless marked ✗, they behave the same as on a public ZKsync endpoint.
curl -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_L1ChainId","params":[]}'
Method | ✓ / ✗ | Purpose |
zks_getBlockDetails | ✓ | Extra zkSync block info |
zks_getRawBlockTransactions | ✓ | Raw txs in a block |
zks_getL1BatchBlockRange | ✗ | Block range in batch |
zks_getL1BatchDetails | ✗ | Batch details |
zks_L1BatchNumber | ✗ | Latest L1 batch number |
Method | ✓ / ✗ | Purpose |
zks_getL2ToL1LogProof | ✓ | Proof for L2→L1 log |
zks_getL2ToL1MsgProof | ✗ | Proof for L1 Messenger msg |
zks_getProof | ✗ | Storage Merkle proof |
Method | ✓ / ✗ | Purpose |
zks_L1ChainId | ✓ | Underlying L1 chain‑id |
zks_getBatchFeeInput | ✗ | Current batch fee input |
zks_getL1GasPrice | ✗ | Current L1 gas price |
zks_sendRawTransactionWithDetailedOutput | ✗ | Tx with trace output |
Full schemas live in the official zkSync JSON-RPC docs ↗︎.
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{
"jsonrpc":"2.0","id":1,"method":"zks_estimateFee",
"params":[{
"from":"0x…","to":"0x…","data":"0x…"
}]
}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{
"jsonrpc":"2.0","id":1,"method":"zks_estimateGasL1ToL2",
"params":[{
"from":"0x…","to":"0x…","gasPerPubdata":"0x0"
}]
}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{
"jsonrpc":"2.0","id":1,"method":"zks_getAllAccountBalances",
"params":["0x…account…"]
}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getBridgeContracts","params":[]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getBridgehubContract","params":[]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getBlockDetails","params":["0x1a"]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getBytecodeByHash","params":["0x…hash…"]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getConfirmedTokens","params":[0, 50]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getBaseTokenL1Address","params":[]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{
"jsonrpc":"2.0","id":1,"method":"zks_getL2ToL1LogProof",
"params":["0x…txHash…", 0]
}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getRawBlockTransactions","params":["0x1a"]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_getTransactionDetails","params":["0x…txHash…"]}'
curl -s -X POST http://localhost:8011 \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"zks_L1ChainId","params":[]}'
The following methods are not yet implemented and will return Method not found
:
zks_getBatchFeeInput
zks_getFeeParams
zks_getL1BatchBlockRange
zks_getL1BatchDetails
zks_getL1GasPrice
zks_getL2ToL1MsgProof
zks_getMainContract
zks_getProof
zks_getProtocolVersion
zks_getTestnetPaymaster
zks_sendRawTransactionWithDetailedOutput
zks_getTimestampAsserter
zks_getL2Multicall3
eth_*
— Ethereum compatible base methods
debug_*
— Execution traces & state inspection
anvil_*
— Node testing helpers