> For the complete documentation index, see [llms.txt](https://docs.liquidcollective.io/eth/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.liquidcollective.io/eth/technical-reference/cli/validators/add.md).

# validators add

```
lceth validators add [flags]
```

## Options

```
  -o, --operator-idx int       Required operator index on OperatorRegistry contract
  -d, --deposit-data string    JSON deposit data file listing validator keys to be added
  -i, --deposit-input string   Hex input of deposit transaction listing validator keys to be added
      --from address           Optional account used to sign the transaction.
                               Expects an 0x prefixed Ethereum address (default 0x0000000000000000000000000000000000000000)
  -n, --nonce bigInt           Optional nonce to use for the transaction, if not set then use pending nonce.
                               Expects either a decimal or an hex encoded value with 0x prefix
  -v, --value bigInt           Optional funds to transfer along the transaction in Wei, if not set then no funds are transferred
                               Expects either a decimal or an hex encoded value with 0x prefix (default 0x0)
  -p, --gas-price bigInt       Optional gas price to use for the transaction execution in Wei. If not set then uses gas price oracle
                               Expects either a decimal or an hex encoded value with 0x prefix
  -f, --gas-fee-cap bigInt     Optional gas fee cap to use for the EIP-1559 transaction execution in Wei. If not set then uses gas price oracle
                               Expects either a decimal or an hex encoded value with 0x prefix
  -t, --gas-tip-cap bigInt     Optional gas priority tip fee cap to use for the EIP-1559 transaction execution in Wei. If not set then uses gas price oracle
                               Expects either a decimal or an hex encoded value with 0x prefix
  -l, --gas-limit uint         Optional gas limit to set for the transaction execution. If not set then estimate gas
                               Expects either a decimal or an hex encoded value with 0x prefix
      --send                   If set then performs all transaction steps and send the transaction to the network
      --no-sign                If set then performs all transaction steps and stop before signing the transaction
  -h, --help                   help for add
```

## Options inherited from parent commands

```
      --allowlist-addr string            Address of the Allowlist contract [env: ALLOWLIST_ADDR]
      --beacon-deployment-block string   deployment block beacon deposit contract [env: BEACON_DEPLOYMENT_BLOCK]
      --beacon-deposit-addr string       Address of the Beacon Deposit contract [env: BEACON_DEPOSIT_ADDR]
      --deployment-block uint            Deployment block of the contracts [env: DEPLOYMENT_BLOCK]
      --el-fee-recipient-addr string     Address of the Execution Layer fee recipient contract [env: EL_FEE_RECIPIENT_ADDR]
      --eth-el-addr string               JSON-RPC address of the Ethereum execution layer node to connect to [env: ETH_EL_ADDR]
      --healthz-addr string              healthz entrypoint address:port [env: HEALTHZ_ADDR] (default ":8081")
      --keystore-password string         Password used to encrypt key files [env: KEYSTORE_PASSWORD]
      --keystore-path string             Directory where to store keys [env: KEYSTORE_PATH]
      --kms-key-id string                KMS key ID used to sign and submit transactions [env: KMS_KEY_ID]
      --log-format string                Log output format (text or json) [env: LOG_FORMAT] (default "text")
      --log-level string                 Log output level [env: LOG_LEVEL] (default "info")
      --operators-registry-addr string   Address of the Operators Registry contract [env: OPERATORS_REGISTRY_ADDR]
      --oracle-addr string               Address of the Oracle contract [env: ORACLE_ADDR]
      --redeem-manager-addr string       Address of the RedeemManager contract [env: REDEEM_MANAGER_ADDR]
      --river-addr string                Address of the River contract [env: RIVER_ADDR]
      --server-addr string               Server entrypoint address:port [env: SERVER_ADDR] (default ":8080")
      --tlc-addr string                  Address of the TLC contract [env: TLC_ADDR]
      --withdraw-addr string             Address of the Withdraw contract [env: WITHDRAW_ADDR]
      --wls-eth-addr string              Address of the WlsEth contract [env: WLSETH_ADDR]
```

## Example Usage

### Signing with encrypted geth keystore

```
% lceth validators add --operator-idx 0
--deposit-data ~/Downloads/deposit-data.json
--from 0x24f3b2bc10e59c6c2fb4cd1e706e51b977cf4754
--operators-registry-addr 0xAF73C9D8Eb11F54930746e1fC0E68ca3574AE485
--river-addr 0x0CA0c58b1986a55876552E0D9532C963625D5646
--withdraw-addr 0x9E6Dd63444Af1568261Bea7bB22aB975fA5a5B41
--redeem-manager-addr 0x5d51E82b75A4F16ef677d5bE20d707b6441A00b7
--oracle-addr 0xDb9C7257647169c8F48ddEbB3b30b94e5DF37f78
--el-fee-recipient-addr 0xf88d4AD5d6f45ce86952DDc5aACCE5A97501e104
--beacon-deposit-addr 0x00000000219ab540356cBB839Cbe05303d7705Fa
--deployment-block 307755
--block-log-fetch-step 10000
--eth-el-addr <ETH_RPC_URL>
--keystore-password <PASSWORD>
--keystore-path ./data/keystore/
--skip-check-duplicates
--send
INFO[0000] initialization succeeded                      addr.allowlist=0x21504e21Dd31ec7f778DFeFc56A5DBaaa63E5BB4 addr.beacon-deposit=0x00000000219ab540356cBB839Cbe05303d7705Fa addr.el-fee-recipient=0xf88d4AD5d6f45ce86952DDc5aACCE5A97501e104 addr.operators-registry=0x08CC4d7cE071BB80EB30184da96692C312Cfa904 addr.oracle=0xDb9C7257647169c8F48ddEbB3b30b94e5DF37f78 addr.river=0x0CA0c58b1986a55876552E0D9532C963625D5646 addr.tlc=0x0000000000000000000000000000000000000000 addr.withdraw=0x9E6Dd63444Af1568261Bea7bB22aB975fA5a5B41 addr.wlseth=0x0000000000000000000000000000000000000000 beacon-deployment.block=0 chain.id=560048 deployment.block=307755
INFO[0000] configuring geth keystore                     keystore-path=./data/keystore/
INFO[0000] set signer address                            address=0x24f3b2BC10E59C6c2Fb4CD1e706e51B977CF4754
INFO[0000] reading deposit data file                     file=./deposit-data.json version=v0.30.0-6-ga1a1339
INFO[0000] found deposit data                            keys=2 version=v0.30.0-6-ga1a1339
INFO[0000] adding 2 validators in 1 txs                  version=v0.30.0-6-ga1a1339
INFO[0000] creating tx 1/1 with 2 validators             version=v0.30.0-6-ga1a1339
INFO[0000] validate deposit data...                      expected.amount=32000000000 expected.fork_version=0x10000910 expected.withdrawal_credentials=0x0100000000000000000000009e6dd63444af1568261bea7bb22ab975fa5a5b41
INFO[0000] valid deposit data
INFO[0001] tx 1/1 sent                                   tx_hash=0xda143c3f1a90b4455e2913c2195eebfba53eadf9f90202116ab2bee51df2d55b version=v0.30.0-6-ga1a1339
INFO[0006] waiting for tx 1/1 to be confirmed            timeElapsed=5.00078575s tx_hash=0xda143c3f1a90b4455e2913c2195eebfba53eadf9f90202116ab2bee51df2d55b version=v0.30.0-6-ga1a1339
INFO[0006] tx 1/1 confirmed successfully                 tx_hash=0xda143c3f1a90b4455e2913c2195eebfba53eadf9f90202116ab2bee51df2d55b version=v0.30.0-6-ga1a1339
```

The resulting transaction can be inspected on the relevant block explorer — for Hoodi, `https://hoodi.etherscan.io/tx/<tx_hash>`.

### Signing with AWS KMS ECDSA key

```
% lceth validators add --operator-idx 0
--deposit-data ~/Downloads/deposit-data.json
--from 0x348d29b8bfa00ee5d62aa8d4205d72bad1c3cb7c
--operators-registry-addr 0xAF73C9D8Eb11F54930746e1fC0E68ca3574AE485
--river-addr 0x0CA0c58b1986a55876552E0D9532C963625D5646
--withdraw-addr 0x9E6Dd63444Af1568261Bea7bB22aB975fA5a5B41
--redeem-manager-addr 0x5d51E82b75A4F16ef677d5bE20d707b6441A00b7
--oracle-addr 0xDb9C7257647169c8F48ddEbB3b30b94e5DF37f78
--el-fee-recipient-addr 0xf88d4AD5d6f45ce86952DDc5aACCE5A97501e104
--beacon-deposit-addr 0x00000000219ab540356cBB839Cbe05303d7705Fa
--deployment-block 307755
--block-log-fetch-step 10000
--eth-el-addr <ETH_RPC_URL>
--kms-key-id <KMS_KEY_ID>
--skip-check-duplicates
--send
```

## SEE ALSO

* [lceth validators](https://docs.liquidcollective.io/eth/technical-reference/cli/validators.md) - Methods to manage validators on OperatorsRegistry contract
