Skip to main content

optimism_rollupConfig

POST

This method is used to query rollup configuration parameters. The call returns information including various configuration options for the rollup. This information may include values necessary for rollup operation such as genesis block information, batch size, sequencer window size, and channel timeout. This allows developers to understand the current configuration state of the rollup and optimize as needed.
Responses
genesisobject
Rollup genesis configuration
block_timeinteger
L2 block production interval (seconds)
max_sequencer_driftinteger
Maximum allowed sequencer drift (seconds)
seq_window_sizeinteger
Sequencer window size (number of blocks)
channel_timeoutinteger
Channel timeout (number of blocks)
l1_chain_idstring
L1 chain ID (hex)
l2_chain_idstring
L2 chain ID (hex)
batch_inbox_addressstring
L1 batch inbox contract address
deposit_contract_addressstring
L1 deposit contract address
l1_system_config_addressstring
L1 system config contract address
codestringrequired
Code identifying the cause of the failed request.
messagestringrequired
Detailed message including the name and value of the invalid parameter.
{
"code": "ERROR_CODE",
"message": "Unauthorized"
}
cURL
curl -X POST 'https://giwa-sepolia.nodit.io' \
-H 'Content-Type: application/json' \
-H 'X-API-KEY: nodit-demo' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "optimism_rollupConfig",
"params": []
}'