---
title: "zks_estimateGasL1ToL2"
method: POST
path: "/zks_estimateGasL1ToL2"
tags: ["ZKSync API"]
---

# zks_estimateGasL1ToL2

`POST /zks_estimateGasL1ToL2`

Estimates the gas required for an L1 to L2 transaction

## Request body

- object
  - `jsonrpc` string, required — JSON-RPC version
  - `method` string, required — The method to call
  - `params` unknown[], required — Call parameters
    - unknown
  - `id` integer, required — Request identifier

## Response `200`

Returns the estimated gas amount

- object
  - `jsonrpc` string
  - `id` integer
  - `result` string — The estimated gas amount in hexadecimal format

---

[API](https://skmtc.dev/abs/apis/abstract-json-rpc-api.md) · [All operations](https://skmtc.dev/abs/apis/abstract-json-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/abs/abstract-json-rpc-api/revisions/65e951da6380/schema)
