Skip to main content
The core of the protocol relies on the HTLC contract. This contract is responsible for locking and unlocking funds based on specific conditions.

Core Functions

lock ()

User creates an HTLC on the source chain with a hashlock derived from the recoverable secret generation mechanism. This locks the user’s funds for the specified Solver.

redeem ()

Solver reveals the secret on the destination chain to claim the user’s funds. Alternatively, user reveals the secret on destination to claim their funds if needed.

redeem () - Solver

Solver reveals the secret (transmitted by the user via off-chain channels) on both source and destination chains to claim their reward and unlock the user’s funds.

refund ()

Allows the original sender to reclaim their locked funds after the timelock expires if the exchange wasn’t completed.