Layerswap Deposit API Tutorial

Interactive guide to integrate cross-chain deposits into your wallet or application

Accept Deposits from Any Chain, Instantly

Give users a single deposit address. They send from any chain - funds automatically bridge and arrive to your destination. That's it.

70+ Networks
<10s Processing
$1B+ Volume

Integration Flow

1
Set Your Destination
Configure your wallet address and specify which network and token you want to receive (e.g., USDC on Base, ETH on Arbitrum)
2
Fetch Available Sources
Call GET /sources endpoint - returns all networks and tokens your users can send from to reach your destination (70+ options)
3
User Selects Source
Display the available options to your user and let them choose which network and token they have (e.g., USDT on BSC, ETH on Polygon)
4
Generate Deposit Address
Call POST /swaps with the selected route - API creates a unique deposit address for this specific transfer and handles all bridging logic
5
Display to User
Show the deposit address to your user with clear instructions to send their tokens from the source network they selected
6
Receive Funds
User sends tokens → Layerswap detects deposit → automatically converts and bridges → delivers to your wallet on destination network (usually ~10s)
No Wallet Connections Required
Just a simple deposit address - no WalletConnect, no browser extensions, no popups. Users can send from ANY wallet app (MetaMask, Trust Wallet, Exchange wallets, Hardware wallets) using their preferred method. Perfect for mobile users.

Configuration

Set up your API credentials to get started.

No API key needed for basic usage. Get one at layerswap.io/dashboard for higher rate limits and analytics.
Step 1:

Setup Destination

Configure your destination wallet and select the appropriate integration mode for your use case.

Step 2:

Select Source

Select which networks can send tokens to receive your token on your network.

The has_deposit_address=true parameter ensures we only show sources that support generating deposit addresses, which is essential for the deposit flow.
Step 3:

Get Quote (Optional)

Get a detailed quote for bridging from your selected network to BASE MAINNET (ETH).

Note: Getting a quote is optional for creating a swap, but recommended to show users the exact fees, limits, and estimated processing time before they deposit.

Step 4:

Create Swap

Create a swap to get your unique deposit address.

Step 5:

Check Status

Monitor your transaction status in real-time.

Need Help with Integration?

For partnership inquiries and integration support, our team is here to help.

[email protected] Join Dev Community