# rewards

#### Perform actions related to the AVS's treasury rewards

```
otcli network rewards [options] [command] <action>

Options:
  -h, --help                           display help for command
```

### [Deposit Rewards Funds](https://docs.othentic.xyz/main/user-guide/network-management/rewards/deposit)

Deposit rewards to the AVS treasury

#### Usage

```
otcli network rewards deposit [options]
```

#### Options

<mark style="color:blue;">**--amount**</mark> `optional`                                                                                                         &#x20;

**string (in wei)**

&#x20;The amount in token to deposit

***

<mark style="color:blue;">**--browser-sign**</mark>  `optional`                                                                                                                &#x20;

**flag**

Allows signing using wallets like **MetaMask**, **SAFE**, or other browser-based smart accounts. Ideal for multisig operations and smart contract wallets, especially when users prefer **not to expose private keys directly in the CLI**.

***

<mark style="color:blue;">**--keystore**</mark> `optional`                                                                                                                        &#x20;

**file path**

The path to the keystore file used for signing the transaction.

***

<mark style="color:blue;">**--keystore-password**</mark> `optional`                                                                                                    &#x20;

**file path**

The path to the file containing the keystore password.

***

<mark style="color:blue;">**--silent, --s, --no-prompt**</mark> `optional`                                                                                                    &#x20;

**flag**

Run in non-interactive mode using `.env` and provided arguments, without user prompts.

***

<mark style="color:blue;">**-h, --help**</mark>**&#x20; `optional`**                                                                                                                                    &#x20;

**flag**

Display help information for this command.

***

### [Calculate Eigen Rewards Params](https://docs.othentic.xyz/main/user-guide/network-management/rewards/distribute#id-1.-eigen-rewards-v2)

Calculate Next Time Range for EigenLayer Rewards Request Submission

#### Usage

```
othentic-cli network rewards calc-eigen-rewards-params [options]
```

#### Options

<mark style="color:blue;">**--keystore**</mark> `optional`                                                                                                                        &#x20;

**file path**

The path to the keystore file used for signing the transaction.

***

<mark style="color:blue;">**--browser-sign**</mark>  `optional`                                                                                                                &#x20;

**flag**

Allows signing using wallets like **MetaMask**, **SAFE**, or other browser-based smart accounts. Ideal for multisig operations and smart contract wallets, especially when users prefer **not to expose private keys directly in the CLI**.

***

<mark style="color:blue;">**--keystore-password**</mark> `optional`                                                                                                    &#x20;

**file path**

The path to the file containing the keystore password.

***

<mark style="color:blue;">**--silent, --s, --no-prompt**</mark> `optional`                                                                                                    &#x20;

**flag**

Run in non-interactive mode using `.env` and provided arguments, without user prompts.

***

<mark style="color:blue;">**-h, --help**</mark>  `optional`                                                                                                                                    &#x20;

**flag**

Display help information for this command.

***

### [Eigen Batch Request ](https://docs.othentic.xyz/main/user-guide/network-management/rewards/distribute#id-1.-eigen-rewards-v2)

Submits the actual request for EigenLayer rewards. It is is designed to handle large numbers of operators by breaking down the request into manageable batches. Before running the command please ensure

1. [Time Range Validation](https://github.com/Layr-Labs/eigenlayer-contracts/blob/ecaff6304de6cb0f43b42024ad55d0e8a0430790/src/contracts/core/RewardsCoordinator.sol#L414):

   1. The `duration` does not exceed `MAX_REWARDS_DURATION`.
   2. Both `startTimestamp` and `duration` are multiples of `CALCULATION_INTERVAL_SECONDS`.
   3. The `startTimestamp` is not too far in the past, checking against `MAX_RETROACTIVE_LENGTH` and `GENESIS_REWARDS_TIMESTAMP`.
   4. Rewards period is entirely in the past by comparing with the latest block timestamp (`startTimestamp + duration < block.timestamp`).

   All the above values can be found [here](https://github.com/Layr-Labs/eigenlayer-contracts/blob/64c028333856ab2ae603fcde94fc9b24715ef603/script/configs/mainnet.json#L12) on chain basis.
2. **Maximum Rewards Limit:** The total rewards being distributed in this batch do not exceed the predefined `MAX_REWARDS_AMOUNT`.
3. If rewards are configured on L1.
4. The rewards are in ERC20 tokens (ETH is not supported).
5. EigenLayer rewards flow `EIGEN_PAYMENT_REQUEST_FLOW` is not paused in the Attestation Center smart contract. If paused, unpause it before proceeding.
6. This command should be called on a **Weekly** basis.

#### Usage

```
otcli network rewards eigen-batch-request [options]
```

#### Options

<mark style="color:blue;">**--startTimestamp**</mark> `required`                                                                                                          &#x20;

**number**                                       &#x20;

The rewards start timestamp (in seconds) of epoch. Must be a multiple of one week (604800 seconds).

***

<mark style="color:blue;">**--duration**</mark> `required`                                                                                                                         &#x20;

**number**

The duration (in seconds) of the rewards to claim. Must be a multiple of one week (604800 seconds).

***

<mark style="color:blue;">**--fromOperatorId**</mark> `required`                                                                                                          &#x20;

**number**                                       &#x20;

The operator ID to start the rewards request batch from

***

<mark style="color:blue;">**--toOperatorId**</mark> `required`                                                                                                                &#x20;

**number**

The path to the file containing the keystore password.

***

<mark style="color:blue;">**--browser-sign**</mark>  `optional`                                                                                                                &#x20;

**flag**

Allows signing using wallets like **MetaMask**, **SAFE**, or other browser-based smart accounts. Ideal for multisig operations and smart contract wallets, especially when users prefer **not to expose private keys directly in the CLI**.

***

<mark style="color:blue;">**--keystore**</mark> `optional`                                                                                                                        &#x20;

**file path**

The path to the keystore file used for signing the transaction.

***

<mark style="color:blue;">**--keystore-password**</mark> `optional`                                                                                                    &#x20;

**file path**

The path to the file containing the keystore password.

***

<mark style="color:blue;">**--silent, --s, --no-prompt**</mark> `optional`                                                                                                    &#x20;

**flag**

Run in non-interactive mode using `.env` and provided arguments, without user prompts.

***

<mark style="color:blue;">**-h, --help**</mark>**&#x20; `optional`**                                                                                                                                    &#x20;

**flag**

Display help information for this command.
