How to upload poolMetaData.json to Github

Quick steps to hosting your poolmetadata.json

  1. Sign up for a Github account by visiting https://github.com/

  2. Create a new repository with a short name

  3. Click Get started by "creating a new file"

4. Enter your file name as poolMetaData.json and paste in your json content.

5. Click Commit new file

6. Click your new file's name

7. Click on Raw button

8. Copy the URL into your clipboard

Example: https://raw.githubusercontent.com/coincashew/test/master/poolMetaData.json

9. The URL must be shorter than 64 characters. Use https://git.io/ to shorten it.

Example: https://git.io/JUcnl

10. Use this tinyurl URL--metadata-url in your stakepool registration transaction.

11. Download your json with wget from your git.io url

cd $NODE_HOME
wget -O poolMetaData.json <your git.io link>

This step may be required because git.io may change the json file by removing spaces and new lines.

12. Generate the updated pool metadata hash

block producer node
block producer node
cardano-cli stake-pool metadata-hash --pool-metadata-file poolMetaData.json > poolMetaDataHash.txt