ZKSync API
zks_estimateGasL1ToL2
Estimates the gas required for an L1 to L2 transaction
post/zks_estimateGasL1ToL2
Request body
Response
Returns the estimated gas amount
Example response
{
"jsonrpc": "2.0",
"id": 2,
"result": "0x25f64db"
}Estimates the gas required for an L1 to L2 transaction
Returns the estimated gas amount
{
"jsonrpc": "2.0",
"id": 2,
"result": "0x25f64db"
}