Registering Your Stake Pool
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://pool.example.net"
}
EOFCalculate the hash of your metadata file. It's saved to poolMetaDataHash.txt
cardano-cli conway 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 conway 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.
You MUST register at least one relay node on the blockchain using the registration certificate. If you operate multiple relay nodes, then registering all your relay nodes publicly on the blockchain may create a security risk. You can operate one or more unregistered relays by Implementing Peer Sharing. Do NOT register your block-producing node on the blockchain.
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.
Retrieve the UTXOs available for your payment address and calculate the balance.
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.
🛑 Critical Security Reminders 🔥
Block-producing Node
The only stake pool keys and certs that are required to run a stake pool are those required by the block producer, specifically the following three files.
All other keys must remain offline in your air-gapped offline cold environment.
Relay Nodes
Relay nodes must NOT store any operational certificates, vrf, skey or cold` ``` keys.
Last updated