BNBChain - Berachain Cross Chain Atomic Swap

Securely swap assets between BNBChain and Berachain with atomic swaps

← Back to Home
BNB Logo

BNB Chain (BNB)

Berachain Logo

Berachain (BERA)

Swap Instructions

Take Alice exchanging ETH on Ethereum for Bob's SOL on Solana as an example.

Step 1: Preparation Phase

Both parties negotiate parameters:

When Alice clicks the "Generate Secret" button, the system will automatically generate the Secret and Secret Hash.

Step 2: Create HTLC Transaction

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:

Step 3: Execute Atomic Swap

Alice claim SOL on Solana

Bob claim ETH on Ethereum