Execution of a smart contract function at a defined time