# Verifying Stake Pool Operation

If you can successfully complete the following tasks, then your stake pool is registered on the blockchain:

* [Retrieving the Stake Pool ID](#poolid)
* [Querying Stakes](#stakes)
* [Finding Your Stake Pool Using a Block Explorer](#explorer)

## Retrieving the Stake Pool ID <a href="#poolid" id="poolid"></a>

Compute your stake pool ID using the following command:

{% tabs %}
{% tab title="air-gapped offline machine" %}

```bash
cardano-cli conway stake-pool id --cold-verification-key-file $HOME/cold-keys/node.vkey --output-format hex > stakepoolid.txt
cat stakepoolid.txt
```

{% endtab %}
{% endtabs %}

Copy **stakepoolid.txt** to your **hot environment.**

## Querying Stakes <a href="#stakes" id="stakes"></a>

Using your stake pool ID and the following command, you can query the Cardano blockchain at any time to display the stakes delegated to your pool:

{% tabs %}
{% tab title="block producer node" %}

```bash
cardano-cli conway query stake-snapshot --stake-pool-id $(cat stakepoolid.txt) --mainnet 
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
If the query returns results, then your stake pool is registered! :clap:
{% endhint %}

In the `pools` object in the JSON-formatted query results, the following keys display the stakes delegated to your pool, in Lovelace:

* `stakeGo` displays the total stakes delegated to your pool in the previous epoch
* `stakeSet` displays the total stakes delegated to your pool in the current epoch
* `stakeMark` displays the total stakes currently delegated to your pool for the next epoch

## Finding Your Stake Pool Using a Block Explorer <a href="#explorer" id="explorer"></a>

Using your stake pool ID, you can also find data for your pool on block explorers such as [https://pooltool.io/](https://pooltool.io)

## Conclusion

{% hint style="success" %}
Congratulations! Your stake pool is included in the Cardano network and is ready to produce blocks.
{% endhint %}

Currently, Input Output recommends the following stake pool configuration:

* At least two relay nodes that are registered on the blockchain
* One relay node that is NOT registered on the blockchain

When you finish testing that your stake pool successfully produces blocks, consider [future-proofing](/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/part-i-installation/prerequisites.md#futureproof) your stake pool.


---

# 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://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node/part-iii-operation/verifying-stake-pool-operation.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.
