mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-06 03:34:14 +00:00
32 lines
1.0 KiB
Markdown
32 lines
1.0 KiB
Markdown
# Perform a voluntary exit
|
|
|
|
> ⚠️ Voluntary exits are **irreversible**. You won't be able to validate again with the same key. And you won't be able to withdraw your stake until the Eth1 and Eth2 merge. *Note that voluntary exits won't be processed if the chain isn't finalising.*
|
|
|
|
To perform a voluntary exit, make sure your beacon node is running with the `--rpc`option enabled (e.g. `./run-mainnet-beacon-node.sh --rpc`), then run:
|
|
|
|
|
|
**Prater**
|
|
|
|
```
|
|
build/nimbus_beacon_node deposits exit \
|
|
--validator=<VALIDATOR_PUBLIC_KEY> \
|
|
--data-dir=build/data/shared_prater_0
|
|
```
|
|
|
|
|
|
**Mainnet**
|
|
|
|
```
|
|
build/nimbus_beacon_node deposits exit \
|
|
--validator=<VALIDATOR_PUBLIC_KEY> \
|
|
--data-dir=build/data/shared_mainnet_0
|
|
```
|
|
|
|
> **Note:** Make sure your `<VALIDATOR_PUBLIC_KEY>` is prefixed with `0x`. In other words the public key should look like `0x95e3...`
|
|
|
|
## `rest-url` parameter
|
|
|
|
As of `v1.7.0` the `deposits exit` command can accept a `--rest-url` parameter. This means you can issue exits with any [REST API](./rest-api.md) compatible beacon node
|
|
|
|
|