Answering SPO On-Chain Polls
This describes the process an SPO can take to participate in polls that are posted on-chain. Updated 5/25/2023 - to add note about paying transaction with multi-signature addresses.
Last updated
This describes the process an SPO can take to participate in polls that are posted on-chain. Updated 5/25/2023 - to add note about paying transaction with multi-signature addresses.
Last updated
Credits to Earn Coin Pool for documenting the procedure.
In order to participate in Polls with these steps you need 8.0.0 CLI version. You only need the 8.0.0 CLI and not 8.0.0 node. Also, you only need 8.0.0 CLI on one relay and on your air gapped machine in order to use this method.
If you haven't upgraded to 8.0.0, you can see our guide here.
First we will need a signer-hash. So we will first go to our air gapped machine and create a hash file that we can move to our live environment.
⚠️ON AIR GAPPED MACHINE - this is where your node.vkey is stored.
Unlock cold keys folder by running the following:
Run the following command on air gap machine to create signer-hash file.
You can view signer-hash to make sure it was successful by running:
If successful copy file so you can move to live relay, now you can relock your keys by running:
For this guide we will put files in our $NODE_HOME folder. Please move pool.hex.id to $NODE_HOME folder on a hot/live relay node.
First we need to get the poll.json file. This should be shared by Poll creator. Run this to download poll.json file for the parameter poll:
For future polls the address below will need to be updated to the correct URL for the poll.json file related to that poll.
To answer the poll using interactive method run the following on your live relay node. Please note this is the step where 8.0.0 CLI is required.
still on live relay node let's find UTXO with NO NFTs
Replace <SAMPLE UTXO>#0 including <> with a UTXO that you selected that didn't have an NFT. If you don't have a payment.addr file then replace that with your receive address.
Still on live relay node, build the transaction using the poll-answer.json and pool.hex.id by running:
When paying transaction with multi-signature addresses, you must add to the transaction build: “--witness-override 3” to calculate the correct transaction fees.
We use 3 in this example because we are using 3 private keys to sign the transaction later. Please adjust for your situation.
You should be able to run the following to see your transaction details.
Once again, we put our answer.tx file into our $NODE_HOME folder
⚠️ ON AIR GAPPED
Unlock cold keys folder by running the following:
Now we will sign transaction with our node.skey and our payment.skey
If successful copy file so you can move to live relay, now you can relock your keys by running:
We copy our answer.tx.signed file into our $NODE_HOME folder on our live relay and then run the following to submit it to chain:
Now wait a few minutes for your transaction to get on-chain, then go to one of these tools to see your vote: https://adastat.net/polls https://cardanoscan.io/spo-polls/
https://github.com/cardano-foundation/CIP-0094-polls
Thanks to the following pools for helping to put together these guides. Please consider delegating to their pools to support them. Are you a pool? Consider buying them a coffee