Skip to main content
edited tags
Link
Synesso
  • 3.4k
  • 1
  • 11
  • 24
Source Link

How to setup time bounds for an escrow account?

I am trying to create 2-Party Multisignature Escrow Account with Time Lock & Recovery as in this ref:https://www.stellar.org/developers/guides/walkthroughs/stellar-smart-contracts.html

Now, I stuck at creating the time bound as in Transaction 3: Unlock and Transaction 4: Recovery

I had tried many possibilities for examples: addTimeBounds, addTime, TimeBounds, but none of them worked. I also looked here: https://stellar.github.io/java-stellar-sdk/org/stellar/sdk/TimeBounds.html And it still doesn't work.

Can anyone give me the example of code how I actually setup time bound?