> For the complete documentation index, see [llms.txt](https://apexpool.gitbook.io/stake-pool-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apexpool.gitbook.io/stake-pool-scripts/hardware-wallet-for-pledge/stake-key-registration.md).

# Stake key registration

The new stake key (of the hardware wallet) must be registered on the blockchain and delegated to the stake pool.&#x20;

This can also be done by connecting the hardware wallet to a wallet like Eternl, Yoroi, Adalite.io etc. and delegating from there. To do it in the command line, follow the instructions below.

Save the following script as `hw-stake-registration.sh` in the `pool-scripts` folder and execute it to generate the certificate:

```bash
#!/bin/bash


source ./env

cardano-cli stake-address registration-certificate \
--stake-verification-key-file ${NODE_HOME}/keys/hw-stake.vkey \
--out-file ${NODE_HOME}/pool-certificates/hw-stake-registration.cert
```
