Blockchain is a type of distributed ledger which is used to record and verify transactions in a tran…