A Solidity smart contract is a digital asset that uses solidity as its programming language. It is designed to work…