Is it possible to write a smart contract in cardano - without off-chain solutions - that would hold funds until a specified date (or block height), and if I didn't interact with that smart contract until that date/block it would send the funds to other wallets, that would be hard-coded into the SC?
If so, how? And is it possible to stake funds that are locked in a smart contract?
My guess is that it's not possible to make the smart contract know the tip of the chain, so a SC like that wouldn't be doable without an off-chain companion. Am I right? And is it also true for other chains and languages?