How to set up a POOL in a few minutes - and register using CNTOOLS

Hi,

U will need to rename some files then go to cntools - pool - retire

u must have inside priv folder (cd $CNODE_HOME/priv) 2 folders… wallet and pool. Inside folder wallet u must create the wsllet folder where u will upload all wallet filed (pyment.addr, payment.skey, payment.vkey, stake.skey, stake.vkey, etc) and inside pool folder u must have the pool folder where u will upload the pool fildes (cold kes, etc)

u must first rename:

  • node.counter → cold.counter
  • node.skey → cold.skey
  • node.vkey → cold.vkey
  • node.cert → op.cert

next epoch after you will retire you will receive 500 ADA back as rewards

Cheers,

Thanks Alex - really grateful for your time.

I copied the files directly into $CNODE_HOME/priv/pool and $CNODE_HOME/priv/wallet as above, renamed the pool files as well… but I assumed they need to go into a folder (within the pool and wallet folders) that is specific to the pool so I created a folder within ‘pool’ with the name of my stake pool and dropped the files in there; ie the files now sit in $CNODE_HOME/priv/pool/mag1c/

The wallet is also setup successfully (it seems) - when I go to CNTOOLS > Pool > retire I get through all the steps until selected wallet, it does this successfully but then I get an error:

Select wallet for pool de-registration transaction fee

Selected wallet: WALLETNAME (Funds: XXXXX Ada)

parse error: Invalid numeric literal at line 1, column 23

cardano-cli: Cannot decode byte ‘\x8a’: Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream
press any key to proceed …

I’m not sure what this is, perhaps I’ve not copied some files across correctly?? I simply used the cli cp command to copy them from the USB drive into the folder as above…

Thanks again for your time!

what files do u have on wallet folder? Can u share?

U can check if the wallet is fine by submiting a transaction (cntools - funds - send ). Send 1 ADA to another wallet address and check if it’s succesfully or not

Cheers,

Hi Alex
I set the wallet up by importing my yoroi wallet via mnemonic (I presume this was the right thing to do?). The file structure is as follows:

$%^&*@box:/opt/cardano/cnode/priv/wallet/WALLETNAME$ ls
base.addr payment.skey.gpg reward.addr stake.vkey
payment.addr payment.vkey stake.skey.gpg

$%^&*@box:/opt/cardano/cnode/priv/wallet/WALLETNAME$

I setup another wallet and successfully sent 1 ADA to it:

Select destination type

Selected value: [a] Address
Address: ############################################################################

Add a message to the transaction?

Selected value: [n] No
Transaction successfully submitted.

Waiting for new block to be created (timeout = 600 slots, 600s)
INFO: press any key to cancel and return (won’t stop transaction)

Transaction
From : WALLETNAME
Amount : 1.000000 Ada
To : ##############################################################################
Fees : 0.183277 Ada
Balance

  • Source : ###### Ada
  • Destination : 1.000000 Ada

press any key to proceed …

Cheers

I set the wallet up by importing my yoroi wallet via mnemonic (I presume this was the right thing to do?).

Yes, is fine

Then the wallet is fine, now can u share the pool files? From pool folder
type ls -l to see also the size of the files (need for compare)

PS: what is the ticker?
Cheers,

Hi Alex

ticker is mag1c

Pool files:
$%^&*@box:/opt/cardano/cnode/priv/pool/mag1c$ ls -l
total 40
-rw-r–r-- 1 203 Apr 22 13:28 cold.counter
-rw-r–r-- 1 187 Apr 22 13:28 cold.skey
-rw-r–r-- 1 197 Apr 22 13:28 cold.vkey
-rw------- 1 1327 Apr 22 13:12 hot.skey
-rw------- 1 183 Apr 22 13:12 hot.vkey
-rw-rw-r-- 1 4 Apr 22 13:12 kes.start
-rw-r–r-- 1 365 Apr 22 13:28 op.cert
-rw------- 1 182 Apr 22 13:29 pool.dereg
-rw-rw-r-- 1 57 Apr 22 13:12 pool.id
-rw-rw-r-- 1 57 Apr 22 13:12 pool.id-bech32

I note I have the pool files in a folder named as the ticker - not sure if that is an issue?

Cheers

There is no issue with the folder name… these are the only files?
anyway it looks there is an issue with decoding some files

if you are using cntools, can u go and run again prereqs.sh -f this time?
It will force to download/upgrade the new files/packages

try also ghc --version
then restart the node and wait to sync again on gLiveView, then try again on cntools - pool -retire

Hey Alex - thanks

I did all the above, and;

$%^&*@box:/opt/cardano/cnode/priv/pool/mag1c$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.7

I restarted the node, waited for it to sync then ran cntools - pool - retire

Unfortunately it still returns the same error after selecting the wallet:

parse error: Invalid numeric literal at line 1, column 23

cardano-cli: Cannot decode byte ‘\x8a’: Data.Text.Internal.Encoding.decodeUtf8: Invalid UTF-8 stream
press any key to proceed …

As an aside, I have notice that the KES has expired - I tried to rotate them but got the same error as above…

Thanks!

What is the node version?

Hey Alex

…pool/mag1c$ cardano-node --version
cardano-node 1.33.0 - linux-x86_64 - ghc-8.10
git rev 814df2c146f5d56f8c35a681fe75e85b905aed5d

…pool/mag1c$ cardano-cli --version
cardano-cli 1.33.0 - linux-x86_64 - ghc-8.10
git rev 814df2c146f5d56f8c35a681fe75e85b905aed5d

Cheers

can u try

file -i cold.skey
file -i cold.counter
file -i cold.vkey
1 Like

Sure thing!

$%^&*@box:/opt/cardano/cnode/priv/pool/mag1c$ file -i cold.skey
cold.skey: application/octet-stream; charset=binary

$%^&*@box:/opt/cardano/cnode/priv/pool/mag1c$ file -i cold.counter
cold.counter: application/json; charset=us-ascii

$%^&*@box:/opt/cardano/cnode/priv/pool/mag1c$ file -i cold.vkey
cold.vkey: application/json; charset=us-ascii

1 Like

so, cold.skey it should be also ascii… can u copy again the file from usb and check again?

1 Like

SUCCESS! - the copy on had on USB was also binary but luckily I had another usb that had an ascii version :slight_smile:

…Transaction successfully submitted.

Waiting for new block to be created (timeout = 600 slots, 600s)
INFO: press any key to cancel and return (won’t stop transaction)
WARN: Balance mismatch, transaction not included in latest block… waiting for next block!
WARN: Balance mismatch, transaction not included in latest block… waiting for next block!

Pool mag1c set to be retired in epoch 335
Pool deposit will be returned to owner reward address after its retired

I’m not sure what the balance mismatch is all about but otherwise I think it all looks ok?

Alex, thank you! You are a real gentleman and I am sincerely very grateful for your patience and your help! You are indeed truly legendary!

1 Like

I’m not sure what the balance mismatch is all about but otherwise I think it all looks ok?

Ignore it, press any key

You are welcome, anytime :beers:

image

1 Like

Hi, On my BP node, I have imported a wallet (YOROI), using a Mnemonic method. I have entered all 15 words correctly. On this imported wallet (on BP node), it is showing 0 ADA. On my YOROI wallet (App on mobile) it is still showing all my ADAs. Do I need to transfer ADAs manually to the wallet address shown in the BP node?.
Is it not so that, if you import a wallet with mnemonic words, your ADA is also transferred automatically to the new wallet?

Screenshot 2022-04-25 at 14.41

CNTOOLS only uses the first address of your wallet, while Yoroi uses lots of different receive and change addresses (shown in the receive tab).

When you used that wallet for a while, Yoroi will already have moved everything to later addresses.

You can transfer everything back to the first address, but it will then happen again, when Yoroi does transactions.

Eternl and Typhon have the possibility to set wallets into single-address mode to prevent that. (It is also needed for, e.g., compatibility with Nami, which also only uses the first address.)

You can transfer everything back to the first address, but it will then happen again, when Yoroi does transactions.

Thanks that explains. So In order to pledge, 1. I have to transfer ADAs back to first address. 2. I should not send ADA from my YOROI wallet, which will remove all ADA from the first Address to a new one.

1 Like

After registering the pledge wallet u will can use yoroi for transactions but it is possible to not see the correct balance in cntools (it will show u the balance for the first address not for the all wallet)

Cheers,

1 Like

After step 2 I get cardano-cli --version command not found, same as root even though /home/myuser/.cabal/bin is in my PATH. The cardano-cli binary doesn’t exist in ~/.cabal/bin nor in ~/git/cardano-node/cardano-node.

1 Like