Registering Your Stake Pool
Create your pool's metadata with a JSON file. Update with your pool information.
ticker must be between 3-5 characters in length. Characters must be A-Z and 0-9 only.
description cannot exceed 255 characters in length.
cat > md.json << EOF
{
"name": "MyPoolName",
"description": "My pool description",
"ticker": "MPN",
"homepage": "https://myadapoolnamerocks.com"
}
EOFCalculate the hash of your metadata file. It's saved to poolMetaDataHash.txt
cardano-cli stake-pool metadata-hash --pool-metadata-file md.json > poolMetaDataHash.txtCopy poolMetaDataHash.txt to your air-gapped offline machine, cold environment.
Next, upload your md.json file to a Web site that you administer or a public Web site. For example, you can upload your pool metadata to GitHub.
Verify the metadata hashes by comparing your uploaded .json file and your local .json file's hash.
Get the metadata hash from your metadata json URL. Replace <https://REPLACE WITH YOUR METADATA_URL> with your actual URL.
cardano-cli stake-pool metadata-hash --pool-metadata-file <(curl -s -L <https://REPLACE WITH YOUR METADATA_URL>)This above hash must equal the local metadata hash.
cat poolMetaDataHash.txtIf the hashes do no match, then the uploaded .json file likely was truncated or extra whitespace caused issues. Upload the .json again or to a different web host.
Find the minimum pool cost.
Create a registration certificate for your stake pool. Update with your metadata URL and your relay node information. Choose one of the three options available to configure relay nodes -- DNS based, Round Robin DNS based, or IP based.
metadata-url must be less than 64 characters. Shorten your URL or file name.
Copy pool.cert to your hot environment.
Pledge stake to your stake pool.
Copy deleg.cert to your hot environment.
You need to find the tip of the blockchain to set the invalid-hereafter parameter properly.
Find your balance and UTXOs.
Find the deposit fee for a pool.
Run the build-raw transaction command.
Calculate the minimum fee:
Calculate your change output.
Build the transaction.
Copy tx.raw to your cold environment.
Sign the transaction.
Copy tx.signed to your hot environment.
Send the transaction.