# Swap API

Interact with Decentralised Exchanges (DEX) with integrated crypto/web3 wallet provider and allow users to access swap feature in multi-chain.&#x20;

We allow developers to customize some parameters for DEX swap, such as slippage fees and confirmation redirects URLs with a ThirdFi user account.

Currently, API returns the hosted webview page from ThirdFi and redirects the user to proceed with the blockchain transaction. After completing the transaction, the user will receive the confirmation notification through different approaches (Slack, Telegram, Discord, or Email) from ThirdFi.

### Supported blockchain networks:&#x20;

* Ethereum
* BNB Chain
* Avalanche
* Polygon
* Arbitrum
* Optimism
* OKExchain
* KuCoin Community Chain
* Cronos
* Conflux Network (eSpace)
* Nautilus Testnet (Triton)

### Supported wallet providers:

* Metamask
* WalletConnect
* KuCoin Wallet
* OKX Wallet
* Fluent Wallet

### Supported Decentralised Exchange (DEX):

* [Uniswap](https://uniswap.org/)
* [SushiSwap](https://www.sushi.com/)
* [PancakeSwap](https://pancakeswap.finance/)
* [QuickSwap](https://quickswap.exchange/#/)
* [TraderJoe](https://traderjoexyz.com/home#/)
* [Velodrome](https://app.velodrome.finance/)
* [OKCSwap](https://www.okx.com/okc/swap)
* [KuSwap](https://kuswap.finance/#/swap)
* [VVS](https://vvs.finance/)
* [Swappi](https://app.swappi.io/)&#x20;
* [PoseiSwap](https://www.poseiswap.xyz/?chain=triton)

### How to use Swap API?

1. You need to register an account from the ThirdFi app.
2. Log in to a registered account, and generate the API key.
3. Create customers through the Customer API.
4. Use the customer email address to create the transaction session via Session API, and redirect the user to the webview.
5. Users can do the transaction by connecting web3 wallet and confirming the transaction.&#x20;
6. ThirdFi sends the webhook event to the developer's backend server after configuring the webhook setting.&#x20;

Visit here to try Swap API for free!

{% embed url="<https://thirdfi.readme.io/reference/create-swap-session>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thirdfi.gitbook.io/thirdfi.org/product/swap-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
