# Metadata

Inside the `metadata` folder, create the `metadata.json` file and adjust the content to match your data:

```json
{
  "name": "Stake Pool Name",
  "description": "Stake Pool Description",
  "ticker": "TCKR",
  "homepage": "https://stakepool.url/",
  "extended": "https://stakepool.url/extended.json"
}
```

You can skip the extended metadata, but it is better to include it from the start, because changing the metadata later requires creating a new stake pool certificate and submitting it.

The `extended.json` file has the following template:

```json
{ 
    "info": {
        "url_png_icon_64x64": "https://stakepool.url/img/icon.png",
        "url_png_logo": "https://stakepool.url/img/logo.png",
        "social": {
            "twitter_handle": "<twitter_handle>",
            "telegram_handle": "",
            "facebook_handle": "",
            "youtube_handle": "",
            "twitch_handle": "",
            "discord_handle": "",
            "github_handle": ""
        }
    },
    "my-pool-ids": {
        "0": "<stake_pool_id>"
    }
}
```

The `stake pool id` will be generated in a later step, after creating the stake pool cold key pair.

Upload the two metadata files to your website or where you want to host them.&#x20;

Save the metadata URL, it will be required later for the configuration file.&#x20;

Download the metadata file from this URL and make sure the file is identical with the initial metadata file.

Generate the metadata hash with the following command:

```bash
cardano-cli stake-pool metadata-hash --pool-metadata-file metadata.json | tee poolmetadata.hash
```

The metadata hash will be required for the configuration file, it will be read directly from the `poolmetadata.hash` file.


---

# 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/stake-pool-registration/metadata.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.
