Retiring a stake pool
If for some reason you need to deregister your stake pool, this task is very similar to registering it. You need to:
- Determine the epoch in which you want to retire the pool.
- Generate a deregistration certificate
- Create a transaction containing the deregistration certificate
- Once the blockchain reaches the selected epoch, the pool will be retired and your deposit will go back to the pool rewards account
- Do not deregister the pool stake key or the deposit will have no place to go and will be sent to the treasury after retirement.
De-registration must take place between current epoch+1 and eMax, which is a protocol parameter determined in the genesis.json file, for example:
"eMax": 100,
Generate the deregistration certificate (pool.dereg):
cardano-cli shelley stake-pool deregistration-certificate \
--cold-verification-key-file cold.vkey \
--epoch 41 \
--out-file pool.dereg
To learn more about how to retire a stake pool, please check Retiring a Stake Pool