We'll again go with the same step of steps as before to create a time-held escrow:
- Prepare transaction: Here, we define the destination account to which money should be released, escrow release time, amount, and so on.
- Sign transaction: You need to sign the transaction cryptographically with your secret key. This proves that you own the source account.
- Submit transaction: Once you sign the transaction, you need to submit it to the Ripple network for validation. The escrow would be only created when the validators approve the transaction.
We prepare the create escrow transaction with the following code. As you can see, we've defined the destination and amount and passed the release time to "allowExecuteAfter" ...