Securely swap assets between Ethereum and Arbitrum with atomic swaps
Take Alice exchanging ETH on Ethereum for Bob's SOL on Solana as an example.
Both parties negotiate parameters:
When Alice clicks the "Generate Secret" button, the system will automatically generate the Secret and Secret Hash.
Alice create an HTLC contract, locking 1 ETH on Ethereum, specifying:
Alice sends Secret Hash to Bob through the information channel. Note that Bob can only claim the ETH if he obtains Secret, so as long as Alice does not send Secret to Bob, Alice's funds remain secure.
After receiving Secret Hash, Bob checks whether Alice has locked 1 ETH and whether all parameter settings are correct. If any discrepancies are found, Bob can choose to take no action to abort the transaction. If everything is confirmed to be correct, Bob can proceed to the next step.
Bob create an HTLC contract, locking 10 SOL on Solana, specifying:
Alice claim SOL on Solana
Bob claim ETH on Ethereum