Skip to content

MAZE - a mineable (proof-of-work) smartBCH SEP20 token and miner

License

Notifications You must be signed in to change notification settings

mazetoken/smartMaze

Repository files navigation

smartMaze miner

MAZE - a mineable (proof-of-work) smartBCH SEP20 token based on 0xBitcoin

MAZE Token website

MAZE Token Telegram Group

MAZE Token contract is in contracts directory (MazeToken.sol)

MAZE is different than most of SEP20 tokens. It is decentralized and permissionless. No premine and no presale. MAZE Token should not be considered as security. There is neither central distribution nor central developement or promotion/marketing.

Symbol: MAZE
Name: MAZE
Decimals: 6
smartBCH contract address: 0x481de06dca0198844faa36fca04db364e5c2f86c
Genesis transaction: https://www.smartscan.cash/transaction/0xce71475419dca1a39fa12555f70909974aa34d2eed1150c29cf3225bc412c7c1
Initial supply: 0
Max total supply: 21,000,000.000000
Mining reward: 800 MAZE, 400 when supply is 10,500,000, ...
Mining transaction fee: about 9800 BCH satoshi
Block reward time: 1 minute, but might be faster
Difficulty readjustement every 4320 blocks

* This is not an investment advice or recommendation. Use it at your own risk. Get the code and make it better.

RISK: there is no guarantee that you will get mining reward and transaction gas could be spent even if you do not mine anything. Please read How EIP918 Mining Works

MAZE icon

IPFS maze_asset_icon

IPFS maze_asset_metadata

smartBCH explorer

Read about smartBCH here and here


smartBCH network and wallet

Use MetaMask

Add network:

Network name: SmartBCH
RPC URL: https://smartbch.greyh.at
or
https://smartbch.fountainhead.cash/mainnet
or
https://global.uat.cash

Chain ID: 10000
Currency Symbol: BCH

Get SEP20 BCH:

Deposit Bitcoin Cash to your CoinFlex wallet and withdraw Bitcoin Cash SEP20 to your smartBCH MetaMask wallet address


Mining (CPU)

The miner is based on 0xBitcoin miner

Download/clone the smartMaze repository, open miner-config.json file in any editor and paste your wallet address and private key. Do not change the gas price (1050000000) - it is 1.05 gwei. To change web3provider go to index.js file lines 16-20 (comment and remove comment to choose provider) and replace provider uri in miner-config.json

{
  "mining_account_public_address":"your-wallet-address",
  "mining_account_private_key":"your-wallet-address-key",
  "mining_style":"solo",
  "contract_address":"0x481de06dca0198844faa36fca04db364e5c2f86c",
  "pool_url":"",
  "gas_price_gwei": 1050000000,
  "cpu_thread_count": 1,
  "web3provider": "wss://smartbch-wss.greyh.at"
}

Install the miner on Linux or Linux subsystem for Windows 10:

  • Open Windows Control panel - go to "Programs" - go to "Turn Windows features on or off" - select "Windows Subsystem for Linux" and check the box, click ok and reboot Windows

  • Download and install Ubuntu 20.4 LTS (or Debian) from Microsoft Store

  • Open Linux terminal (command line)

  • Setup your username and password

  • In a command line type commands (press enter after every command):

cd /mnt/c

sudo apt update

sudo apt upgrade

sudo apt-get install wget curl

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

sudo apt-get install -y nodejs

sudo apt-get install git cmake gcc g++ make

  • Install Node Version Manager (nvm)

curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash

source ~/.profile

  • navigate to smartMaze directory and type commands:

nvm install 10

nvm use 10

npm install

sudo apt-get install build-essential

npm run build

npm run miner

  • to stop the miner use Ctrl C

*Ignore warnings. If the miner is not working try node-gyp rebuild. Every time you close the command line and open it again, navigate to smartMaze directory and run nvm use 10 first