> ## Documentation Index
> Fetch the complete documentation index at: https://docs.debridge.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Linking

> Create shareable swap links with your referral code—no coding required

Create custom deBridge links with pre-filled parameters and your referral code. Share them anywhere—social media, blog posts,
Discord—and earn from every swap.

## What You Can Do

* Create links with pre-selected chains and tokens
* Embed your referral code to earn [deBridge Points](/home/monetization/debridge-points)
* No coding or technical setup required

<Note>
  Your referral code only applies to **new users** who have never visited deBridge before and haven't made any transactions
  through the protocol. Existing users won't be counted as your referrals.
</Note>

## Step-by-Step Guide

<Steps>
  <Step title="Generate Your Referral Code">
    Go to [app.debridge.com/refer](https://app.debridge.com/refer)

    1. Connect your wallet
    2. Select **Polygon** (cheapest option, works for all chains)
    3. Click **Generate**
    4. Save your referral code (e.g., `7895`)
  </Step>

  <Step title="Create Your Custom Link">
    Start with the base URL and add your referral code:

    ```
    https://app.debridge.com/?r=YOUR_CODE
    ```

    Example with referral code `4850`:

    ```
    https://app.debridge.com/?r=4850
    ```
  </Step>

  <Step title="Add Optional Parameters">
    Customize the link further by pre-selecting chains and tokens.

    Example: USDC on BSC → USDT on Ethereum with referral code:

    ```
    https://app.debridge.com/?inputChain=56&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d&outputChain=1&outputCurrency=0xdac17f958d2ee523a2206206994597c13d831ec7&r=4850
    ```
  </Step>

  <Step title="Share Your Link">
    Post your custom link on Twitter, Discord, Telegram, or your website. New users who swap through your link will contribute to your points.
  </Step>
</Steps>

## URL Parameters

| Parameter        | Description               | Example                |
| ---------------- | ------------------------- | ---------------------- |
| `r`              | Your referral code        | `r=7895`               |
| `inputChain`     | Source chain ID           | `inputChain=1`         |
| `inputCurrency`  | Source token address      | `inputCurrency=0x...`  |
| `outputChain`    | Destination chain ID      | `outputChain=137`      |
| `outputCurrency` | Destination token address | `outputCurrency=0x...` |
| `amount`         | Pre-filled amount         | `amount=100`           |
| `address`        | Pre-filled recipient      | `address=0x...`        |

## Common Chain IDs

| Chain           | ID      |
| --------------- | ------- |
| Ethereum        | `1`     |
| BNB Smart Chain | `56`    |
| Polygon         | `137`   |
| Arbitrum        | `42161` |
| Avalanche       | `43114` |
| Fantom          | `250`   |
| Optimism        | `10`    |
| Base            | `8453`  |

<Tip>Find all chain IDs in the [supported chains section](/home/architecture/supported-chains).</Tip>

## Example Links

### Basic Link with Referral Code

```
https://app.debridge.com/?r=7895
```

### ETH to Polygon USDC

```
https://app.debridge.com/?inputChain=1&outputChain=137&outputCurrency=0x3c499c542cef5e3811e1192ce70d8cc03d5c3359&r=7895
```

### BSC USDC to Ethereum USDT

```
https://app.debridge.com/?inputChain=56&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d&outputChain=1&outputCurrency=0xdac17f958d2ee523a2206206994597c13d831ec7&r=7895
```

## Track Your Points

Monitor your referral activity and accumulated points:

1. Go to [app.debridge.com/statistic](https://app.debridge.com/statistic)
2. Connect the wallet you used to generate your referral code
3. View your points accumulated and referred users

## Best Practices

<CardGroup cols={2}>
  <Card title="Use Short Links">Use a URL shortener for cleaner sharing on social media</Card>
  <Card title="Match Your Audience">Pre-fill chains and tokens relevant to your community</Card>
  <Card title="Track Campaigns">Use different referral codes for different campaigns to measure performance</Card>
  <Card title="Be Transparent">Disclose that you earn from referrals—it builds trust</Card>
</CardGroup>

## Next Steps

* [Learn about deBridge Points](/home/monetization/debridge-points) and how they convert to DBR tokens
* [Build an integration](/home/monetization/affiliate-fees) to earn affiliate fees directly
* See the full [URL parameter reference](/dln-details/widget/app) for advanced options
