⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip the expensive compute units.
Switch Today →
Skip to main content

rollup_gasPrices

Get L2 gas price oracle data on the Zora OP Stack network. This method is essential for understanding gas pricing dynamics on Zora's L2, including both execution and data availability costs.

Parameters

None. This method takes no parameters.

Returns

Returns gas price oracle data including:

  • L1 gas price (for data availability)
  • L2 gas price (for execution)
  • Scalar multiplier
  • Overhead values

The exact structure depends on the OP Stack implementation.

Implementation Example

curl -X POST https://api-zora-mainnet.n.dwellir.com/2307f636-d01d-4f85-ba5e-514ff37069f5 \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "rollup_gasPrices",
"params": [],
"id": 1
}'

Response Example

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"l1GasPrice": "0x5d21dba00",
"l2GasPrice": "0x5f5e100",
"l1BaseFee": "0x5d21dba00",
"overhead": "0xbc",
"scalar": "0x10000000000000000000000000000000"
}
}

Note: This method returns OP Stack specific gas pricing data that helps calculate the total cost of transactions on Zora L2. The response includes both L1 data costs and L2 execution costs, which is essential for accurate fee estimation in creator economy applications.


Need help? Contact our support team or check the Zora documentation.