A blockchain is a decentralized and public data record introduced to solve the long-term problem of…