Executor
To learn more about what the Executor does, check out the Executor page.
Running the Executor
Initialize Executor Bot
To initialize the Executor bot, use the following command:
Set Up Keys
For the Executor bot, we will be needing 2 keys:
output_submitter
bridge_executor
Configuration
To configure the Executor, fill in the values in the ~/.opinit/executor.json file
.
where each field is as follows:
Field | Description |
---|---|
version | Indicates the version of the OPinit spec (basically 1). |
listen_address | The address where the Challenger bot listens for incoming requests. |
l1_node | Information about the L1 node, including chain ID and RPC address. See the L1 Networks page for more information. |
l2_node | Information about the L2 node, including chain ID and RPC address. These configs are what you set when deploying the rollup |
da_node | Information about the DA node (mainly L1 or Celestia), including chain ID and RPC address. See the L1 Networks for more information. |
bridge_executor | The key name in the keyring for the bridge executor. This is the same key as input when spinning up the rollup, and needed to be added via opinitd keys add [chain-id] [key-name] . |
output_submitter | The key name in the keyring for the output submitter. This is the same key as input when spinning up the rollup, and needed to be added via opinitd keys add [chain-id] [key-name] . |
max_chunks | The maximum number of chunks in a batch. |
max_chunk_size | The maximum size of a chunk in a batch. |
max_submission_time | The maximum time to submit a batch. |
l2_start_height | Executor automatically sets the starting height for output proposal based on this value. If the value is already stored in the db, this config is ignored. |
batch_start_height | Executor automatically sets the starting height for batch submitting based on this value. If the value is already stored in the db, this config is ignored. |
Start Bot
To start the bot, use the following command:
The following options can be set:
Option | Description | Default Value |
---|---|---|
--log-level | Sets the log level | info |
--polling-interval | Sets the polling interval | 100ms |
--config | Sets the config file name | [bot-name].json |
--home | Sets the home directory | ~/.opinit |
Queries
You can query the Executor bot to get its status or view the withdrawal information:
Status
You can query the Executor bot to get its status:
Withdrawals
To finalize a token withdrawal, the withdrawal information is required.
Executor bot can provide withdrawal information for a given sequence:
Resetting The Bot Database
If the database becomes corrupted or is moved to a new one, you need to initialize or reset it.
To reset the bot database, use the following command:
Was this page helpful?