rollup_gasPrices - Get L2 gas price oracle...
Returns Unichain's L2 gas price oracle values for L1 data, L2 execution, and overhead components.
Returns the L2 gas-price oracle data that Unichain uses to compute total fees. The payload mirrors Optimism Bedrock networks and includes:
gasPrice— Total gas price Unichain applies to transactions.l1GasPrice— Current L1 gas price component applied to calldata.l2GasPrice— The execution gas component on Unichain itself.baseFeeScalar,blobBaseFeeScalar,overhead— Scalars used by the sequencer when combining L1/L2 costs.
Use this method when you must break down L1 calldata charges, size cross-chain deposits, or monitor Unichain fee dynamics beyond what eth_gasPrice exposes.
Implementation Example
curl -X POST https://api-unichain-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "rollup_gasPrices",
"params": [],
"id": 1
}'optimism_rollupConfig - Get rollup configur...
Get the rollup configuration parameters on Unichain. Essential for understanding the rollup setup.
Viction - EVM-Compatible Blockchain Documentation
Complete guide to Viction blockchain integration with Dwellir RPC. Learn how to build on Viction, access JSON-RPC methods, and optimize your dApp performance.