CoinCashew
English
Ask or search…
K

Uploading Pool Metadata to GitHub Pages

To host the file containing metadata for your pool on GitHub Pages:

  1. 1.
    Sign up or login to your GitHub account.
  2. 2.
    Create a new public repository named username.github.io, where username is your username (or organization name) on GitHub. Shorter the better.
  1. 3.
    Click Get started by "creating a new file" under Quick setup.
  2. 4.
    Enter your file name as md.json and paste in your JSON content.
  1. 5.
    Click Commit Changes...
  1. 6.
    If everything worked properly, your pool metadata is now hosted at URL:
https://USERNAME.github.io/FILE
Ensure the URL is less than 64 characters. If too long, pick a shorter github username or shorter json file name.
  1. 7.
    In your stakepool registration transaction, set the value of the --metadata-url parameter to this URL.
  2. 8.
    On your block producer node, download your JSON file using the URL with wget command:
cd $NODE_HOME
wget -O md.json <your github pages URL>
Note that it can take up to 10 minutes for changes to your site to publish after you commit changes.
  1. 9.
    As a sanity check, check the contents of your JSON file.
cat md.json
  1. 10.
    On your block producer node, generate the updated pool metadata hash.
cardano-cli stake-pool metadata-hash --pool-metadata-file md.json > poolMetaDataHash.txt