Stellar TimeLock for Birthday Gift

Stellar TimeLock for Birthday Gift



Say Alice wants to send Bob 100 XLM for his birthday, but she is often traveling and may not remember to carry out the Tx on the day of Bob's birthday...



Time lock just specifies when a Tx can be signed and submitted to the network.



Is there a way to sign/submit a Tx that will 'execute' itself at a specific time&date in the future?



Any ideas on how to do this with Stellar?




3 Answers
3



This capability is not on-network. Third party solution(s) exist. For example: https://galactictalk.org/d/1466-smart-stellar-timed-payments



Another solution is to have Alice create and fund a new account C and sign a timebound transaction to merge C into Bob account. Then she can share the transaction with Bob before his birthday, he has the transaction but he has to wait his birthday to submit it to the network and redeem his gift.



Alice can set the thresholds and signatures weighs of C so that Bob knows she can't move the funds out of the account before his birthday.



First Alice needs to build the merge account transaction (here n is the Contract account sequence):


n



Transaction #2


n+2



Alice would write down the transaction hash h(#2) and XDR.
To setup the Contract C, Alice would send the following transaction to the network:


h(#2)



Transaction #1


n+1


h(#2)



On the day of its birthday, Bob would sign and submit transaction #2 to receive Alice gift. Before that date, neither Bob nor Alice are able to withdraw the funds.





Is there actually a way to set things so that the merge account goes through but the account can’t send payments from it?
– Paul
Aug 31 at 14:01





Yes, let me edit the answer to expand on it
– Francesco
Aug 31 at 14:30



I'm the author of https://test.artspirit.com/ and doing timed-payments is the main service of my site. It's working already on the testnet.



Let me know if this one is what you are looking for. Any feedback
on the current version is welcome.



Thanks for contributing an answer to Stellar Stack Exchange!



But avoid



To learn more, see our tips on writing great answers.



Some of your past answers have not been well-received, and you're in danger of being blocked from answering.



Please pay close attention to the following guidance:



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)