zks_getL1GasPrice
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getL1GasPrice \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getL1GasPrice",
"params": []
}
'{
"jsonrpc": "2.0",
"result": "0x11cccd9f58",
"id": 1
}ZKSync API
zks_getL1GasPrice
Retrieves the current L1 gas price
POST
/
zks_getL1GasPrice
zks_getL1GasPrice
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_getL1GasPrice \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "zks_getL1GasPrice",
"params": []
}
'{
"jsonrpc": "2.0",
"result": "0x11cccd9f58",
"id": 1
}Documentation Index
Fetch the complete documentation index at: https://docs.abs.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Body
application/json
Response
200 - application/json
Returns the current L1 gas price in wei (hexadecimal)
Was this page helpful?
⌘I