Coder Social home page Coder Social logo

momitch / bsc-0xbitcoin-miner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0xbitcoin/0xbitcoin-miner

0.0 0.0 0.0 906.12 MB

Mine the 0xbitcoin ERC20 token using a command line NodeJS application

Home Page: http://0xbitcoin.org

JavaScript 6.25% Python 0.39% Makefile 0.06% C 64.19% C++ 9.23% Cuda 19.30% M4 0.57%

bsc-0xbitcoin-miner's Introduction

0xBitcoin ERC20 Token Miner

LICENSE GPL

Solves proof of work to mine supported ERC20 tokens. This is a CPU miner. (See Releases for links to GPU miners.)

Update 1.6 - Config Files For Days

This new build uses miner-config.js for setting parameters and no longer has an active command line. If you do not have an Ethereum account, it is recommended that you use Metamask to generate one.

Official Releases Downloads

Download Packaged Releases

Building from Source

Setup (Windows/Linux)

  1. Install NodeJS 10 (nvm install 10)
  2. Clone/download the project
  3. Open a terminal, cd into the project folder and run 'npm install' to install dependencies
  4. Run the command 'npm run build' to build C files with node-gyp
  5. Set up the config file 'miner-config.json' (duplicate miner-config-sample as a reference)
  6. Start the miner with 'npm run miner'

Setup (Mac)

  1. Install Homebrew & NodeJS 10
  2. Run 'brew install yarn' to install yarn package manager
  3. Clone/download this project
  4. Open a terminal, cd into the project folder and run 'yarn'
  5. Run the command 'yarn build' to build C files with node-gyp
  6. Set up the config file 'miner-config.json' (duplicate miner-config-sample as a reference)
  7. Start the miner with 'node index.js'

NOT WORKING ?

Make sure you have build-essential installed to compile C code and make sure you have python3.

Try these commands:

node-gyp rebuild

Miner-Config.js File

You must create a file called 'miner-config.json' in the same directory as index.js. Duplicate 'miner-config-sample.json' and rename it.

If you do not have a public address or private key, use Metamask or another Etherum wallet to make them.

REMINDER: You >can< set the web3provider to a ropsten, mainnet, or other type of test-network provider and the software will still work. If solo mining (not to a pool) just be sure to define the correct contract address for that network and be sure your account has a small amount of ether (or test-ether).

"mining_account_public_address":"0x111111",
"mining_account_private_key":"1234567",
"mining_style":"solo" OR "pool",
"contract_address":"0xb6...",
"pool_url":"http://tokenminingpool.com:8080",
"gas_price_gwei":10,
"cpu_thread_count": 1,
"web3provider": "https://infura.io/API/apikey...."

Getting Started

  1. Duplicate the 'miner-config-sample.json' file and rename it to 'miner-config.json'
  2. Set the parameters in this file appropriately
  3. In the console, run the command 'node index.js' to start mining

Pool Mining

  • When mining into a pool, your gasprice does not matter and you will pay NO GAS FEES
  • Every pool is different so consult each pool owner. Typically, pools will offer a token withdraw mechanism or automatically send tokens to your address on a periodic basis or when a limit is reached

Solo Mining

  • IF SOLO MINING it is necessary to fill the mining account (it is an Ethereum account) with a small amount of ether.
  • Typically 0.005 eth is good enough to get started. The ether is used for gas to make function calls to the token smart contract when your miner finds a solution to the Proof of Work.
  • When the gas is spent that means that you have found a solution! If you were the first to find it, you will be rewarded with 0xbitcoin tokens. (See the block explorer for typical gas prices at the current moment.)

Testing

npm run test

Credits

  1. Zegordo (Developed the accelerated CPU Miner)

     ETH address [0x8AE981d92875C88f713600EB7dC4D23FA7E0E621]
    

Tokens that can be mined using Proof of Work:

  1. 0xBitcoin token - http://0xbitcoin.org - https://github.com/0xbitcoin/0xbitcoin-token

bsc-0xbitcoin-miner's People

Contributors

ethereumdegen avatar lttofu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.