Storing Information
How to store information off-chain for Governance Actions, DRep registration, and Voting.
Generally speaking, most data in Governance is stored off-chain, and is referenced by an on-chain url and hash. For more detailed information, please see CIP-1694
Off-chain data can be stored in many places, such as IPFS, a web URL, or repo site like GitHub. The URL that references the data has to be publicly readable.
Here is an example of using GitHub for storing data for a Governance Action. Storing data for becoming a DRep is the same process.
Agree to store information and click "Continue
Your information will be packaged up in a .jsonld file. Click on the button with the filename in it, and save it to your computer.
If you don't have a github account, you will need to create one. Simply enter your email address and click "Sign up for GitHub.
Click "Continue
Create a password, click "Continue"
Create a github user name (must be unique on github).
GitHub will send you a confirmation code to your email inbox. Find it and enter it here.
You now have a new GitHub account. You must create a repository, so in the screen below:
Create a name for your repository
Make your repository public
Click "Create Repository"
Now you have a public GitHub repository of your own!. In the example below, the repository is called "Saver-saver". You will need to upload the data.jsonld file that you got from GovTool now. Click the link "uploading an existing file"
Upload the "data.jsonld" file to GitHub by drag-and-dropping it or choosing it from your computer. Click the "Commit changes" button. This will add your file to GitHub and put it in your repository.
After the file uploads, you will see it's name in the list below. Click on the file name (it is a link)
This will display the file contents. You now need to get a URL to paste into GovTool. To do this, click the "Raw" button above the code.
From the "Raw" view, copy out the URL in the address bar:
Return to GovTool, paste the URL into the URL field, and click "Submit"
You have now submitted your data. It may take a few minutes or seconds for GovTool to process it.
Last updated