curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=232 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_estimateFee",
"params": [
{
"from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222",
"data": "0xffffffff"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"gas_limit": "0x156c00",
"gas_per_pubdata_limit": "0x143b",
"max_fee_per_gas": "0xee6b280",
"max_priority_fee_per_gas": "0x0"
}
}
ZKS
zks_estimateFee
Returns the fee for the transaction.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=232 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "zks_estimateFee",
"params": [
{
"from": "0x1111111111111111111111111111111111111111",
"to": "0x2222222222222222222222222222222222222222",
"data": "0xffffffff"
}
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"gas_limit": "0x156c00",
"gas_per_pubdata_limit": "0x143b",
"max_fee_per_gas": "0xee6b280",
"max_priority_fee_per_gas": "0x0"
}
}
Was this page helpful?