1
2
Monitor the destination chain
- Watch for the
TokenLockedevent or use theIdon the destination chain by callinggetDetails(). - Verify that the
hashlockof theHTLCon the destination chain provides sufficient time to act, ensuring it is at least . - Once detected, capture the
hashlockvalue.
The state of the destination chain should be read from a Light Client if one exists; if not, it should be read from multiple RPC providers.
3
4
(signature flow) Sign a message instead of adding a lock
This step can be used instead of step 3: the user signs a message (addLockSig) containing the
Id, hashlock, and timelock, which an authorized party can submit to finalize the lock.