RE: Qtum Staking Tutorial using qtumd on a Raspberry Pi 3

You are viewing a single comment's thread from:

Qtum Staking Tutorial using qtumd on a Raspberry Pi 3

in qtum •  7 years ago  (edited)

Can I suggest adding an alias to the .bashrc? Instead of typing : ~/qtum-wallet/bin/qtum-cli, we can add to ~/.bashrc:

alias qtum-cli='~/qtum-wallet/bin/qtum-cli'

That way, we can just execute qtum-cli from the wallet directory by typing: qtum-cli

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I cant connect to my wallet using qtum-cli :
$ ~/qtum-wallet/bin/qtum-cli getinfo
error: couldn't connect to server: unknown (code -1)
(make sure server is running and you are connecting to the correct RPC port)

I know nothing about .cookie so I don't know what to do. Any help?

The .cookie file gets created in the datadir (by default under ~/.qtum) when qtumd starts up and RPC is enabled. You probably don't have qtumd running -- you can use $ pgrep -a qtumd to check (if that outputs nothing, then it isn't running).

Yes, or add ~/qtum-wallet/bin into your $PATH. I should indeed have suggested it.