Mining is the process of adding transaction records to a public ledger of past transactions. This ledger of past transactions…