# The withdrawals upgrade for Testnet

This will be an upgrade that adds the ability to withdraw rewards and validators' staked deposits.

The timing of the upgrade will be applied first on Agora Testnet, then we will watch for network stabilization and upgrade to Agora Mainnet.

The upgrade schedule is as follows.

TestNet Withdrawal Upgrade Date: July 12, 2023, 10:04 AM&#x20;

Testnet withdrawal upgrade Epoch: 58857&#x20;

The testnet agora node upgrade must be completed before that date and time.

### How to upgrade an Agora node for testnet (For Linux and Mac Users)

#### 1. Testnet Upgrade for Linux or MacOS

Stop the existing node and run the command below.

```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bosagora/agora-chain/v0.x.x/upgrade.sh)"
```

Start the node.

```
./agora.sh start
```

#### 2. Validator withdrawals for Linux or MacOS

* Generate the SignedBLSToExecutionChange data to enable withdrawals

  ```
  ./agora.sh deposit-cli generate-bls-to-execution-change <folder>
  ```

  `<folder>` is where the SignedBLSToExecutionChange data is stored. The default folder is `./bls_to_execution_changes`
* Send the SignedBLSToExecutionChange data to enable withdrawals

  ```
  ./agora.sh validator withdraw <folder>
  ```

  `<folder>` is where the SignedBLSToExecutionChange data is stored. The default folder is `./bls_to_execution_changes`
* Withdraw rewards and how to withdraw deposits can be found [here](https://agora-cl-docs.bosagora.org/docs/wallet/withdraw-validator).

For more information about upgrading and running nodes, see [here](https://github.com/bosagora/agora-chain/blob/v0.x.x/README-en.md#upgrade-for-linux-or-macos).&#x20;

### How to upgrade an Agora node for testnet (For Windows users)

#### 1. Testnet Upgrade for Windows

Stop the existing node and run the command below.

```
curl -S -L -o upgrade.bat https://raw.githubusercontent.com/bosagora/agora-chain/v0.x.x/upgrade.bat
upgrade.bat
```

Start the node.

```
agora.bat start
```

#### 2. Validator withdrawals for Windows

* Generate the SignedBLSToExecutionChange data to enable withdrawals

  ```
  agora.bat deposit-cli generate-bls-to-execution-change <folder>
  ```

  `<folder>` is where the SignedBLSToExecutionChange data is stored. The default folder is `./bls_to_execution_changes`
* Send the SignedBLSToExecutionChange data to enable withdrawals

  ```
  agora.bat validator withdraw <folder>
  ```

  `<folder>` is where the SignedBLSToExecutionChange data is stored. The default folder is `./bls_to_execution_changes`
* Withdraw rewards and how to withdraw deposits can be found [here](https://agora-cl-docs.bosagora.org/docs/wallet/withdraw-validator).

For more information about upgrading and running nodes, see [here](https://github.com/bosagora/agora-chain/blob/v0.x.x/README-en.md#upgrade-for-windows).&#x20;

### Update monitoring dashboard data sources&#x20;

The monitoring dashboard data source has been updated.&#x20;

Newly changed dashboard data source [link](https://raw.githubusercontent.com/bosagora/agora-chain/v0.x.x/networks/testnet/monitoring/dashboard/agora-chain-dashboard.json). \
The monitoring address and port are <http://localhost:3000>
