<p>No, because there is no mechanism to build and submit transactions on-chain.</p>
<p>The closest option to what you want would be to create a simple timelocking script and send funds to the script's address. However, to unlock the funds, a transaction will need to be constructed off-chain and submitted once the slot boundary has passed.</p>

CC BY-SA 4.0
2023-07-14T14:59:56.630Z
Thanks. Do you know if this would be feasible in other networks? Is it a Cardano limitation, or something common to every blockchain?
Alfredo Casanova
CC BY-SA 4.0
2023-07-14T14:22:04.277Z
2023-07-14T14:22:04.277Z
james
<p>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?</p>
<p>If so, how? And is it possible to stake funds that are locked in a smart contract?</p>
<p>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?</p>

<plutus><cardano-address>
Transfer funds to "heir" - Possible?
# Transfer funds to "heir" - Possible?

(Asked by: username_0 on 2023-07-14)

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?

**Tags:** plutus, cardano-address

---

## 1 answers

### Answer by username_1 on 2023-07-14. Score: 2

No, because there is no mechanism to build and submit transactions on-chain.

The closest option to what you want would be to create a simple timelocking script and send funds to the script's address. However, to unlock the funds, a transaction will need to be constructed off-chain and submitted once the slot boundary has passed.

> **Comments:**
> **username_0**: Thanks. Do you know if this would be feasible in other networks? Is it a Cardano limitation, or something common to every blockchain?  

---

