Executing the smart contract