Skip to content

Mining

This guide will assume you’ve already downloaded the core desktop wallet from the wallets page.

Tutorial – How to Mine for blocks with Microsoft Windows

Mine for blocks with your Windows wallet and the following instructions.

Click here to download the file cookiecoin-qt-windows.zip.

Open File Explorer and go to your downloads directory.

Extract the zip file cookiecoin-qt-windows.zip and put the files into a desktop folder called ‘Cookiecoin’

Open “Run” with the keyboard shortcut winkey + r.

Enter the following text behind “Open”: notepad

Press on the button “OK”.

Paste the following into notepad.

rpcuser=rpc_cookiecoin
rpcpassword=dR2oBQ3K1zYMZQtJFZeAerhWxaJ5Lqeq9J2
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
listen=1
server=1
addnode=node3.walletbuilders.com

Click on the menu item “File” -> “Save As…”.

The open dialog box will appear, click on “Save as type” and select the option “All Files (*.*)”.

Enter the following text behind “File name”: cookiecoin.conf

Click on the menu bar, type the following text %appdata% and press on the enter key. enter

Create a new folder named Cookiecoin and open the folder in %appdata%

You’ll need to copy all the files from your initial Cookiecoin desktop folder, and paste them into this new %appdata% Cookiecoin folder

Press on the button “Save”.

Create a new file with the keyboard shortcut ctrl + n.

Paste the following into notepad.

@echo off
set SCRIPT_PATH=%cd%
cd %SCRIPT_PATH%
echo Press [CTRL+C] to stop mining.
:begin
 for /f %%i in ('cookiecoin-cli.exe getnewaddress') do set WALLET_ADDRESS=%%i
 cookiecoin-cli.exe generatetoaddress 1 %WALLET_ADDRESS%
goto begin

Click on the menu item “File” -> “Save As…”.

The open dialog box will appear, click on “Save as type” and select the option “All Files (*.*)”.

Enter the following text behind “File name”: mine.bat

Click on the menu bar, open the location where you extracted the zip file cookiecoin-qt-windows.zip.

Please note you may need to run the main 3 files ‘as Administrator’ before it will work. Also, you must have the actual wallet program itself open before clicking mine.bat or it will not work.

Press on the button “Save”.

Open your wallet and execute mine.bat to mine your first block, after which you can just leave it running and it will continue to solo mine. As of November 2023 the current block reward is 7,000 COCO per block found (will automatically go into your wallet).

Data mining icons created by Freepik – Flaticon


Mine for Cookiecoin blocks with your Raspberry Pi wallet and the following instructions.

The tutorial is only compatible with Raspbian 11 (bullseye) and above.

Click the Terminal app icon in your dock.

Update your Raspberry Pi with the following command:sudo apt-get update && sudo apt-get upgrade -y

Disable the swap file on your Raspberry Pi with the following command:sudo dphys-swapfile swapoff

Open nano.sudo nano /etc/dphys-swapfile

Change the value “CONF_SWAPSIZE=100” with “CONF_SWAPSIZE=1024”.

Save the file with the keyboard shortcut ctrl + x.

Re-initialize the swap file with the following command:sudo dphys-swapfile setup

Start the swap file with the following command:sudo dphys-swapfile swapon

Download the wallet for Cookiecoin with the following command:wget "https://dl.walletbuilders.com/download?customer=a5043fb963a85a66630087dd207cb9aa558c8a2989ec558673&filename=cookiecoin-qt-raspberry.tar.gz" -O cookiecoin-qt-raspberry.tar.gz

Type the following command to extract the tar file:tar -xzvf cookiecoin-qt-raspberry.tar.gz

Type the following command to install the wallet and tools for Cookiecoin:

sudo mv qt/cookiecoin-qt cookiecoind cookiecoin-cli cookiecoin-tx /usr/bin/

Create the data directory for Cookiecoin with the following command.mkdir $HOME/.cookiecoin

Open nano.nano $HOME/.cookiecoin/cookiecoin.conf -t

Paste the following into nano.rpcuser=rpc_cookiecoin
rpcpassword=dR2oBQ3K1zYMZQtJFZeAerhWxaJ5Lqeq9J2
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
listen=1
server=1
addnode=node3.walletbuilders.com

Save the file with the keyboard shortcut ctrl + x.

Open nano.nano ~/Desktop/mine.sh -t

Paste the following into nano.#!/bin/bash
SCRIPT_PATH=`pwd`;
cd $SCRIPT_PATH
echo Press [CTRL+C] to stop mining.
while :
do
 cookiecoin-cli generatetoaddress 1 $(cookiecoin-cli getnewaddress)
done

Save the file with the keyboard shortcut ctrl + x.

Make the file executable.chmod +x ~/Desktop/mine.sh

Open nano.nano ~/Desktop/Cookiecoin-qt.sh -t

Paste the following into nano.cookiecoin-qt

Save the file with the keyboard shortcut ctrl + x.

Make the file executable.chmod +x ~/Desktop/Cookiecoin-qt.sh

Go to the desktop (GUI) of your Raspberry Pi.

Open the file Cookiecoin-qt.sh, press on the button “Execute” to start your wallet.

Go back to the terminal and type the following command to create the wallet file for your desktop wallet:cookiecoin-cli createwallet ""

Go to the desktop, open the file mine.sh and press on the button “Execute in Terminal” to mine your first block.