Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.49 KB

how-to-upload-poolmetadata.json-to-github.md

File metadata and controls

54 lines (34 loc) · 1.49 KB

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"

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

  1. Click Commit new file

  1. Click your new file's name

  2. Click on Raw button

  3. Copy the URL into your clipboard

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

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

Example:
https://git.io/JUcnl

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

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

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

{% hint style="info" %} This step may be required because git.io may change the json file by removing spaces and new lines. {% endhint %}

  1. Generate the updated pool metadata hash

{% tabs %} {% tab title="block producer node" %}

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

{% endtab %} {% endtabs %}