rollup_gasPrices
Returns the L1 and L2 gas prices that are being used by the Sequencer to calculate fees.
Parameters:
Returns:
Example:
// Request
curl https://optimism.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"rollup_gasPrices","params":[],"id":1}'
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"l1GasPrice": "0x315b84ced",
"l2GasPrice": "0xf4240"
}
}Last updated
Was this helpful?