Solidity is an object-oriented and high-level language for writing smart contracts that are used to execute, verify and enforce …