zks_estimateGasL1ToL2
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_estimateGasL1ToL2 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 2,
"method": "zks_estimateGasL1ToL2",
"params": [
{
"from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222",
"data": "0xffffffff"
}
]
}
'{
"jsonrpc": "2.0",
"result": "0x25f64db",
"id": 2
}ZKSync API
zks_estimateGasL1ToL2
Estimates the gas required for an L1 to L2 transaction
POST
/
zks_estimateGasL1ToL2
zks_estimateGasL1ToL2
curl --request POST \
--url https://api.mainnet.abs.xyz/zks_estimateGasL1ToL2 \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 2,
"method": "zks_estimateGasL1ToL2",
"params": [
{
"from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222",
"data": "0xffffffff"
}
]
}
'{
"jsonrpc": "2.0",
"result": "0x25f64db",
"id": 2
}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
Was this page helpful?
⌘I