# Emergency script

In the unlikely event that the MultisigX services become unavailable, users can access their funds using the Emergency Script. This script is open-source and designed to allow users to create Proposals or sign them manually.\
\
You can clone the [Emergency Script repository](https://github.com/ElrondCity/MultisigX-Emergency-Script) from Elrond City's GitHub organisation.

<figure><img src="https://2671219203-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUah5k4hGoCMI4Ng3A8mQ%2Fuploads%2FB52RMvjr6VStOUTaB6fm%2FScreenshot%20from%202023-02-15%2012-38-49.png?alt=media&#x26;token=51515ce2-e681-4334-91ab-596794df2059" alt=""><figcaption><p>The script's action menu</p></figcaption></figure>

### Dependencies

The tool is a shell script, and only needs **erdpy** to interact with the blockchain.\
The script is most likely **not** POSIX-compliant, and was only tested using Bash.\
\
If you are using the latest version of **erdpy**, renamed **mxpy**, you can use the following command to convert the scripts:

```sh
sed -i 's/erdpy/mxpy/g' *.sh
```

### Usage

To use the script, you'll need a computer running Linux (or a Virtual Machine, or a Windows Subsystem for Linux), and your wallet as a PEM file or Keystore file.\
You can restore you wallet in this format using your seed phrase, on the [MultiversX Web Wallet](https://wallet.multiversx.com/unlock).

In the *interaction.sh* file, replace the *ADDRESS* variable's content by the address of your Vault, and replace the *OWNER* variable's content by your wallet address.

Enter your address in the *PRIVATE\_KEY* variable if you are using a Keystore (.json files), or replace the whole variable by the following if you are using a PEM file:

```sh
PRIVATE_KEY=(--pem=wallet.pem)
```

If needed, make the scripts executable using chmod:

```sh
chmod +x *.sh
```

You can then run the main script using

```
./useVault.sh
```

Follow the instructions on-screen and you'll be signing proposals in no time!
