Cross-chain atomic swap

Hash time lock contract or HTLC is a composition of a hash lock and a time lock. The hash lock authorizes the ClaimHTLC transaction. The time lock authorizes the RefundHTLC transaction. The result of this contract is either success or refund, assuming that transactions are timely included to the blockchain. It is also named an atomic swap.

Hash lock

Hash lock is a cross-chain authorization mechanism that requires a preimage of a cryptographic hash.

Time lock

Time lock is a cross-chain authorization mechanism that requires a specified block time or height to pass.

RPC API

RPC API is not yet implemented.