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

optimism_rollupConfig

Get the rollup configuration parameters on the Unichain network.

Parameters

This method accepts no parameters.

Returns

Object containing rollup configuration details including genesis information, block time, sequencer drift, chain IDs, and other rollup parameters.

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": "optimism_rollupConfig",
"params": [],
"id": 1
}'

Response Example

{
"jsonrpc": "2.0",
"id": 1,
"result": {
"genesis": {
"l1": {
"hash": "0x...",
"number": 12345
},
"l2": {
"hash": "0x...",
"number": 0
},
"l2_time": 1234567890,
"system_config": {
"batcherAddr": "0x...",
"overhead": "0x...",
"scalar": "0x...",
"gasLimit": 30000000
}
},
"block_time": 2,
"max_sequencer_drift": 600,
"seq_window_size": 3600,
"channel_timeout": 300,
"l1_chain_id": 1,
"l2_chain_id": 130,
"regolith_time": 0,
"canyon_time": 0,
"batch_inbox_address": "0x...",
"deposit_contract_address": "0x...",
"l1_system_config_address": "0x...",
"protocol_versions_address": "0x..."
}
}

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