SafeSwap
Open SafeSwap
  • πŸ‘‹Introduction to SafeSwap
  • Learn
    • πŸ€”How SafeSwap Works
    • πŸͺ™SHA Token
    • β›½Fee Structure
    • πŸ’°Fee Distribution
    • πŸ‘‘SafeNodes
    • πŸ“šGlossary
  • User Guides
    • πŸ”„Swap Tokens
    • πŸ“ŠToken Dashboard
  • Technical
    • βš›οΈCross-Chain Atomic Swaps
    • πŸ”HTLC
    • πŸ›‘οΈSecurity Measures
    • ⛓️Supported Blockchains
    • πŸ‘Supported Wallets
    • πŸ•΅οΈAudits
  • Builders
    • 🌍Hello World!
    • πŸ—οΈCross-Chain Use Cases
    • πŸ–₯️Token Listing
    • πŸ‘¨β€πŸ’»Whitelabel Integration
    • πŸ“–API Integration Guide
      • Prerequisites
      • What is a Swap?
      • Perform a Swap
        • Initiate a Swap
        • Send Fees
        • Create the Swap in API
        • Wait/Poll for the Swap
        • Complete the Swap
        • Cancel/Refund
      • Smart Contract Details
      • Our Swap Addresses
      • API Details
  • About
    • Safe Haven
    • SafeTech
    • Support
Powered by GitBook
On this page
  • 1. Initiate Swap
  • 2. Secure Swap
  • 3. Lock Native Tokens on Source Chain
  • 4. Unlock Native Tokens on Destination Chain
  • 5. Claim to Wallet
  1. Learn

How SafeSwap Works

The process of swapping native tokens from Wallet A on Blockchain X to Wallet B on Blockchain Y.

PreviousIntroduction to SafeSwapNextSHA Token

Last updated 1 year ago

Click to view a detailed tutorial on how to swap your tokens with SafeSwap.

1. Initiate Swap

To initiate a swap, the user must select:

  • a source and destination blockchain (both)

  • connect a source and destination wallet (both)

  • select the preferred token

  • and fill in the amount to swap

2. Secure Swap

SafeSwap’s integrated UI creates a unique secret code which delivers hash data to the contract.

3. Lock Native Tokens on Source Chain

If a swap is initiated, SafeSwap will lock all tokens received from the source wallet in the related locked token pool on the source blockchain.

4. Unlock Native Tokens on Destination Chain

SafeSwap accounts for the required tokens necessary and uses the unique code to unlock tokens from a locked token pool on the destination blockchain.

5. Claim to Wallet

The user can claim the swapped tokens and they are transferred to the connected destination wallet.

πŸ€”
here