# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apexpool.gitbook.io/stake-pool-scripts/hardware-wallet-for-pledge/stake-key-registration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
