Cryptocurrency mining is a process of verifying and adding transactions to a ledger, known as the blockchain. In return, miners…