Wednesday, 27 December 2017

BITCOIN MINING

BITCOIN MINING
INTRODUCTION
Bitcoin is a cryptocurrency made by a combination of software and network technology.
Bitcoins are holded by a blockchain network working on peer to peer network.
As its name suggests crypto…this currency is  crypted every time for a transaction. There comes the role of miners. Miner solves the crypted block and get some part of the transaction as reward.
Another, part comes when new bitcoins are issued into the network. So again miner mines these newly issued bitcoins and get some part as reward.
Basically the function of the miner is to solve the transaction of bitcoins worldwide smoothly.
Bitcoin mining is done by contributing our hashing power(solving block capacity) to the network and get reward…as our share.
MINING PROCESS
Mining starts with finding a valid block.
A valid block is searched by the miner by the method of brute force which means trying out different blocks again and again .
Once a valid block has been generated the miner starts mining(solving the block).
On an average 2016 blocks are generated every 10 minutes around the network.
Basically these all tough tasks are done by the scrypt.
MINING HARDWARE
Today’s competitive mining network CPU’S and GPU’S are too old fashion and very slow for mining.
For mining bitcoins with profit we need specially hardware called ASIC’S.
These chips are specially designed for mining.
World’s leading and fastest mining hardware is antminer s9 which gives 11.8 to 12.93 TH (HASHING POWER).
Antminer runs on a Antminer APW3++ 1600W power supply device.
STEPS FOR MINING
STEP 1—
For mining we need two basic things –[1] HARDWARE AND [2] SOFTWARE.
HARDWARE CONSISTS – Antminer s9 or antminer s9v2 and power supply.
SOFTWARE—
There are many open source software available like CGMiner, BFGMiner and Easyminer etc.
These softwares act as a bridge between hardware and our computer. These softwares help us to set host address and other settings into our miner.
STEP 2—
JOINING A BITCOIN MINING POOL
As mining rewards are paid to the miner who solves the block but due to very tough competition probability of earning with solo mining is very low. For instance, a single ASIC antminer s9 is mining on the network. So chances of finding a block is 0.001%. It would take very long time to find a block.
So, the solution to this problem is mining pools.
Pools are the group of miners working together and sharing their hashing power and hence sharing their payouts amongst participants.
We can get our share just by connecting our miner to the pool and if any miner solves the block the participants giving their hashing power on the block.
WORLD’S TOP BITCOIN MINING POOLS ---
1) A ntpool (hashing power--1380.02 PH/S)
2) Btc.top (hashing power--1181.00 PH/S)
3) Btc.com (hashing power--859.30 PH/S)
4) F2pool (hashing power—834.26 PH/S)
5) Btcc (hashing power—671.33 PH/S)
6) Slushpool (hashing power—518.14 PH/S)
7) Bixin (hashing power –429.59 PH/S)
8) ViaBTC (hashing power—407.86 PH/S)
9) BitClub (hashing power—402.23 PH/S)
10) 1Hash (hashing power—335.29 PH/S)
11) GBMiners (hashing power—203.93 PH/S)
STEP 3—
SETTING UP A BTC WALLET
As being a miner there is high risk of btc wallet being hacked So our wallet should be secured with MFA/2FA security. Or we can get an offline wallet like LEDGER NANO S..


STEP 4—
CONNECTING OUR MINER

Antminer power supply should be plugged to the electricity socket then a connector is used to transfer the power to the miner hardware (antminer s9).
Next step is connecting our antminer s9 to internet via ethernet cable . A slot is given at the side of the hardware for internet connection.
STEP 5—
Then we have to connect our pc to the internet and then log in to our mining pool using our browser. Then we will simply create a new worker there. After creating a new worker we will get some ipaddress and hostname etc there, which we will use further.
And then we have to connect our miner with the pc.


STEP 6—
Now it’s the turn of our software .
Now we will use that software to setup the ipaddress, hostname, worker name etc for the miner. Then we will connect to the mining pool automatically. A green light will blink on the antminer s9 m which means the miner is working  fine.
We can use our software for checking the hashing power , number of blocks found, etc.
NOTE—
1) Antminer s9 doesn’t require any algorithm as it is already installed with SHA-256 algorithm which is generally used for mining Bitcoin and similar cryptocurrency.
2) Antminer s9 consumes 1250 to 1300 W power.
3) All we need to do is connect our miner with ethernet cable having internet speed upto 500kbps
4) Then join a pool for e.g:- slushpool.
5) Create a new [WORKER] in slushpool website.
6) Then we will get some configurations, after creating the worker at the website.
7) Open the mining software(easyminer) configure the antminer s9 with the slushpool using easyminer from the newly created worker configurations.
8) Then after 4-5 minutes antminer will connect to the pool and start mining. Our hashing power will reflect on the slushpool website. Mined bitcoins are directly transferred  into our bitcoin wallet.
9) Pool mining does not depend on the amount of bitcoins mined by a user. It simply shares the amount of bitcoins mined during a block solving among all the miners giving their hashing power at that particular time. The percentage of profit sharing or reward sharing depends on the hashing power contributed by a miner to that particular pool. Pool mining is far better than solo mining as it is very difficult to find a valid block and then solving it seems to be impossible. 
10) Mining and sharing of rewards are fully automated and quick …so there are no worries about scam as slushpool is trusted pool over years.
CONCLUSION
Mining with best hardware and good paying pool can give our investment double .
Antminer can mine 0.5 btc approx in a month if runned continuosly .
And if we remove electricity costs according to india's electricity antminer can mine 0.3 btc in a month.
Although no one can promise amount of profit earned by mining as the difficulty level increases and decreases continuously .
       So mining only seems to be difficult but if we put our full efforts into it  we will earn millions…..
for more info contact me on whatsapp:- +919756149735

ALTCOIN MINING AND ETHERIUM MINING

While it is now considered too late for hobbyists without expensive ASIC processors to start mining bitcoins, many of the alternative digital currencies are still well suited for mining on your home PC.
In this guide, we’ll take you through all you need to know to start digging up a few litecoins, feathercoins or dogecoins without any costly extra equipment.
For the most part, cryptocurrencies employ either SHA-256 or scrypt as their proof-of-work hashing algorithm, but many of the newer currencies have opted for scrypt.
Gridseed Litecoin Miners
Row of Gridseed litecoin miners set up. Copyright: Arina P Habich
Scrypt tends to be the more memory intensive of the two – however, home PCs with reasonably powerful graphics cards can still mine those cryptocurrencies quite effectively, as there are no dedicated ASICsto compete with – yet.
Perhaps surprisingly, it’s still possible to use just your computer’s CPU to mine some of the digital currencies. This holds true, even if you have only a laptop with integrated graphics; though this may not prove terribly effective and is not a set-up we would recommend.

Wallets at the ready

Before you start mining, you will need a wallet to keep your hard-earned coins in (see our guide to storing bitcoin). A good option is to head to the homepage of the currency you intend to mine and seek out the download link for the default wallet app. If you would like to do more research into litecoin specifically, we have a guide on how to get started.
If you find yourself in need of help and advice, most altcoins have community forums, as well as their own subreddit. The majority of wallets are based on the original Bitcoin-Qt client. Be warned, though, that before these wallets are truly usable, you may face a lengthy wait while the coin's entire block chain downloads.
Dogecoin Client
Wow. Much Wallet (This is DogeCoin's Wallet)

The need for speed

gpuUnless you possess specific mining hardware, there are two ways to mine cryptocurrencies: with your central processing unit (CPU) or with your graphics processing unit (GPU) – the latter being sited, of course, on your graphics card.
Of the two, a GPU offers far better performance for the cryptographic calculations required. However, if you are making your first foray into mining and don't possess a souped-up gaming computer – a laptop with Intel integrated graphics, perhaps – it will still be possible to mine those altcoins, but at a far slower rate.
The catch with GPU mining is that it requires a dedicated graphics processor, such as you may have fitted inside your desktop PC – the Intel integrated graphics cards found in most laptops are just not suitable for the task. To keep speeds up to a respectable level, most altcoin miners build dedicated machinesusing motherboards that can house multiple graphics cards, usually via riser cables.
Be aware, too, that mining digital coins is very system intensive and can reduce the lifespan of your electronic components. It's a good idea to make sure you have adequate cooling in place, keep an eye on those temperatures and keep hold of any warranties – just in case.

Solo, or with the crowd?

poolMining can either be a solitary venture or you can join a mining 'pool', where a number of people combine their processing resources and all take a share of the rewards.
It can be helpful to think of mining pools as joining a lottery syndicate – the pros and cons are exactly the same. Going solo means you get to keep the full rewards of your efforts, but accepting reduced odds of being successful. Conversely, joining a pool means that the members, as a whole, will have a much larger chance of solving a block, but the reward will be split between all pool members, based on the number of 'shares' earned.
If you are thinking of going it alone, it's worth noting that configuring your software for solo mining can be more complicated than with a pool, and beginners would probably be better off taking the latter route. This option also creates a steadier stream of income, even if each payment is modest compared to the full block reward.
Deciding which altcoin to mine will be something else to bear in mind, however, some pools, such as Multipool, manage this for you and switch coins based on profitability.

Installing your CPU miner

A handy piece of software called cpuminer is the easiest way to start mining, but does require the ability to use the command line on your computer. The program can be downloaded from SourceForge and is available for Windows (32 and 64 bit), OS X and Linux. For the purposes of this guide, though, we are making the assumption that you are using the Windows OS.
First, download the appropriate file for your operating system. The zip file can be extracted to anywhere on your hard drive, as long as you remember where it went. A good idea would be to create a 'cpuminer' folder on your desktop.

Writing your script

So, how to set up cpuminer with the parameters needed for your mining pool? Well, it's usually simplest to write a one-line script (known as a 'batch file' in Windows) to launch the miner with the correct instructions.
To do this you will need the following:
  • The full path of the directory in which the mining program ("minerd.exe") is stored (eg: "C:\cpu-miner-pooler").
  • The 'stratum' URL of your mining pool server (eg: "stratum+tcp://pool.d2.cc").
  • The port number of your mining server (eg: "3333”).
  • Your mining pool username (eg: "username").
  • Your worker name or number (eg: "1”).
  • Your worker password (eg: "x").
Now, open Notepad or your preferred text editor. Do not, however, use a word processor such as MS Word. Next, enter the script using the following formula (note that this method assumes you are mining a currency that uses the scrypt algorithm):
start "path" minerd.exe - -url URL:PORT –a scrypt - - userpass USERNAME.WORKER:PASSWORD
So, using the example details above, you would have produced the following text:
start "C:\cpu-miner-pooler" minerd.exe --url stratum+tcp://pool.d2.cc:3333 -a scrypt --userpass username.1:x
Save this file with a ".bat" extension; for example: "my-mining-profile.bat".
Once the batch file is saved, double click it to activate the miner program. Your mining pool will most likely have a web-based interface and, within a few minutes, the website should show that your mining worker is active.
Now that you know how to mine with the CPU, let's have a look at using your GPU.

Setting up your GPU miner

For those that intend to mine with GPUs, or USB mining devices, cgminer is the program to use and can be downloaded from the developer's website – unless, that is, you're a Mac user, in which case you will find some unofficial binaries here.
Versions of cgminer following version 3.72 do not support scrypt mining, and support for GPUs was removed in version 3.82. Therefore, the latest version isn't necessarily the one to download. Instead, seek out the version appropriate for your needs.
Again, in this example, we are making the assumption that you are using the Windows OS. However, if you are using Linux or OS X, the command line arguments (ie: the parameters) are the same. Furthermore, the instructions below once again assume you will be mining a scrypt currency.
Extract the software into a folder that can easily be found, eg: "c:\cgminer\".
Before going any further, make sure that your graphics drivers are up to date.
Next, press the Windows key together with the "R" key, type in "cmd", and press "enter". This will open the command terminal. Use the "cd" command to change the directory to the one housing the cgminer zip file.
Then, type in "cgminer.exe –n". This will list all recognised devices on your PC. If your graphics card is detected, you should be good to go. If not, you'll have research the steps required to properly set up your specific graphics card.
You will now need your mining pool details, just as with the CPU mining section above:
  • The full path of the directory in which the mining program ("minerd.exe") is stored (eg: "C:\cpu-miner-pooler").
  • The 'stratum' URL of your mining pool server (eg: "stratum+tcp://pool.d2.cc").
  • The port number of your mining server (eg: "3333”).
  • Your mining pool username (eg: "username").
  • Your worker name or number (eg: "1”).
  • Your worker password (eg: "x").
Now we'll make a batch file again, in order to start cgminer up with the correct parameters. In this case, the command structure is:
Start "path" cgminer -- scrypt -o URL:PORT -u USERNAME.WORKER -p PASSWORD
For example,
Start "C:\cgminer\" -- scrypt –o stratum+tcp://pool.d2.cc:3333 --userpass username.1:x

Watching your miner

cpuminerNow the mining software of choice is set up, you will see various statistics scrolling across your command line terminal. If you are using cgminer, you will see more information than you would with cpuminer. In the case of the former, you will see information about the currency and the mining pool, as well as about your mining hardware. If you're running cpuminer, you will only see references to blocks that your PC has solved; although, it does, at least, show your hashing speed.

Maximising your power

Good news for miners who own PCs with dedicated graphics cards: it is possible to run both cpuminer and cgminer at the same time. To make this possible, add a "-- threads n" argument to the minerd command. Here, "n" stands for the number of CPU cores that you wish to employ for mining.
Remember to leave one or two cores free to control your GPUs, though. Setting minerd to use all CPU cores will mean that the CPU will be too busy to send data to the GPU for processing. For example, if you have a quad core CPU, try setting the "--threads" argument to "2" or "3".
Mining with both GPU and CPU concurrently reveals just how much better GPUs are at mining than the CPU. Compare the hash rates shown in the terminal windows for each of your mining programs and you should see at least a five-times difference in hashing speed.

BITCOIN MINING

BITCOIN MINING INTRODUCTION Bitcoin is a cryptocurrency made by a combination of software and network technology. Bitcoins are holded b...