Skip to content

Commit

Permalink
GitBook: [#164] Custom link page
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Smirnov authored and gitbook-bot committed May 9, 2022
1 parent 5db5bca commit f861ceb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

* [API Quick Start Guide](deswap/api-quick-start-guide.md)
* [Cross-Chain Swaps Liquidity](deswap/cross-chain-swaps-liquidity.md)
* [Custom linking](deswap/custom-linking.md)

## Contracts

Expand Down
41 changes: 41 additions & 0 deletions docs/deswap/custom-linking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Custom linking

The deBridge web application allows users to create custom links with a pre-defined set of parameters using URL query parameters. Users and developers can use their own prefilled settings for deSwap exchange or dePort.​

| Parameter | Description |
| -------------- | -------------------------------------------------------- |
| inputChain | Id of the chain where deSwap is initiated. |
| inputCurrency | Input currency that will be swapped for output currency. |
| outputChain | Id of the receiving chain |
| outputCurrency | Output currency that input currency will be swapped for. |
| r | Referral id |
| address | Recipient address |

## Example <a href="#example" id="example"></a>

> https://app.debridge.finance/deswap?inputChain=\&inputCurrency=\&outputChain=\&outputCurrency=\&r=\&address=
deSwap

> BSC(USDC) - ETHEREUM (USDT)
>
> [https://app.debridge.finance/deswap?inputChain=56\&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d\&outputChain=1\&outputCurrency=0xdac17f958d2ee523a2206206994597c13d831ec7\&r=111\&address=0x64023dEcf09f20bA403305F5A2946b5b33d1933B](https://app.debridge.finance/deswap?inputChain=56\&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d\&outputChain=1\&outputCurrency=0xdac17f958d2ee523a2206206994597c13d831ec7\&r=111\&address=0x64023dEcf09f20bA403305F5A2946b5b33d1933B)
dePort

> BSC(USDC) - deUsdc
>
> [https://app.debridge.finance/deport?inputChain=56\&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d\&r=111](https://app.debridge.finance/deport?inputChain=56\&inputCurrency=0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d\&r=111)
## Chains and Tokens ID <a href="#chains-and-tokens-id" id="chains-and-tokens-id"></a>

Chain IDs of all chains can be found at [https://chainlist.org/](https://chainlist.org) or in the spreadsheet below

| ID | Chain | Token request |
| :---: | ------------------- | -------------------------------------- |
| 1 | Ethereum | GET https://tokens.1inch.io/v1.1/1 |
| 56 | Binance Smart Chain | GET https://tokens.1inch.io/v1.1/56 |
| 128 | Heco | GET https://tokens.1inch.io/v1.1/128 |
| 137 | Polygon | GET https://tokens.1inch.io/v1.1/137 |
| 42161 | Arbitrum | GET https://tokens.1inch.io/v1.1/42161 |
| 43114 | Avalanche | GET https://tokens.1inch.io/v1.1/43114 |

0 comments on commit f861ceb

Please sign in to comment.