Skip to main content
POST
zks_estimateGasL1ToL2

Body

application/json
jsonrpc
string
default:2.0
required

JSON-RPC version

method
string
default:zks_estimateGasL1ToL2
required

The method to call

params
any[]
required

Call parameters

id
integer
default:2
required

Request identifier

Response

200 - application/json

Returns the estimated gas amount

jsonrpc
string
Example:

"2.0"

id
integer
Example:

2

result
string

The estimated gas amount in hexadecimal format

Example:

"0x25f64db"