Bitcoin mining is the process by which new bitcoins are created and transactions are added to the decentralized blockchain ledger.…