ZKSync API
zks_estimateGasL1ToL2
Estimates the gas required for an L1 to L2 transaction
post/zks_estimateGasL1ToL2
Request
- Base URLhttps://api.mainnet.abs.xyz
- URLhttps://api.mainnet.abs.xyz/zks_estimateGasL1ToL2
- Authnone declared
Request body
Response
Returns the estimated gas amount
Example response
{
"jsonrpc": "2.0",
"id": 2,
"result": "0x25f64db"
}Changes
No recorded changes to this operation across all 2 revisions of this API.