> For the complete documentation index, see [llms.txt](https://docs.dydx.community/dydx-chain-technical-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dydx.community/dydx-chain-technical-docs/getting-started/user-guides/how-to-use-squid-ui-for-cross-chain-deposits-to-dydx-v4.md).

# How to use Squid UI for cross-chain deposits to dYdX V4

### What is Squid?

`Squid` is a single click cross-chain transaction builder, supporting cross chain swaps in under 20 seconds. `Squid` utilizes Axelar’s decentralized interoperability infrastructure, approved by Uniswap’s bridge provider assessment. Squid provides interoperability services via an API, SDK and front end developer tools to teams across 60+ chains, and has done over $200 million in volume since its launch in January 2023. \
\
See: <https://dydx.exchange/blog/1-click-onboarding>

### How Squid works

Let’s say you have USDC on e.g. Arbitrum and you wish to deposit to DYDX via Squid. \
For any Cosmos chain, the following happens all in one click:

1. Squid routes and converts your source funds into axlUSDC
2. axlUSDC is sent to Osmosis via Axelar General Message Passing (GMP), where it is the [canonical representation](https://docs.axelar.dev/learn/axlusdc) of USDC
3. Swapped to Noble USDC on Osmosis
4. Bridged from Noble USDC to dYdX Chain from Osmosis via the Noble chain.

### Example: How to bridge using the Squid UI ( Arbitrum - dYdX)

1. Go to [https://app.squidrouter.com/](https://testnet.app.squidrouter.com/)
2. In order to bridge some USDC from Arbitrum to DYDX v4 mainnet, first connect your source wallet (e.g. Metamask). You can swap any fund from any chain that is made available through Squid. Note that you will need to pay for gas fees. Squid might make an overestimate, but the remaining fee will be refunded to you in case you used less.

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FuH4CEi1y3kUQ1FamKe6y%2Fsquid.png?alt=media&amp;token=a2a96a71-af44-4b01-9605-778ab2b5cce1" alt="" width="375"><figcaption></figcaption></figure>

3. Switch the source chain network e.g. Arbitrum

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2Fvz4kbWCCHD2GzVJj0dFN%2Fimage.png?alt=media&amp;token=d88546e9-0d4f-4b68-aed2-4247874b9d60" alt="" width="375"><figcaption></figcaption></figure>

4. Add Keplr as destination wallet, to select `dYdX` as destination and approve the `dYdX` and `Osmosis` connections in keplr. Note that you may need to approve Osmosis as well.

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FQ3QnwiwmJplpAyGYXvL0%2Fimage.png?alt=media&amp;token=7f477758-aaa5-4765-a0b7-98d1cf42cd04" alt="" width="375"><figcaption></figcaption></figure>

5. Fill in the amount to bridge. After estimations are fetched for the bridged amount, you will need to give permissions to spend this amount in your source wallet (Metamask).&#x20;

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FnxxEosZRliskJ87l8eBK%2Fsquid2.png?alt=media&amp;token=78162967-eb4b-483d-aae8-7654e7108233" alt="" width="375"><figcaption></figcaption></figure>

6. (Optional) we can use `GMP Express` to receive funds faster \~20s (if available) and use arrival gas (not needed on dYdX). Note that you will need to pay more to use GMP Express, so only use when needed.

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FMuVCyZi0dhEFqRab01pe%2Fimage.png?alt=media&amp;token=3f1318e3-2ed1-45a7-8c04-4c7045ab0de4" alt="" width="375"><figcaption></figcaption></figure>

7. Now confirm in wallet

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FGlUa0fjsaPl30edBYYM3%2Fimage.png?alt=media&amp;token=948cffac-7a4f-4bbf-8b0b-d604a99c54ec" alt="" width="375"><figcaption></figcaption></figure>

8. After the transaction is successfully submitted. This may take up to `~30min` as the transaction also needs to be finalized on the source chain e.g. Arbitrum.

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FTjjtrDmx6LPuhWjfsZHl%2Fimage.png?alt=media&amp;token=c9e9d10e-4ce6-49c7-b5f4-3dc17a7535bb" alt="" width="375"><figcaption></figcaption></figure>

9. Check your transaction. When you click view, you will be redirected to [Axelarscan](https://axelarscan.io/gmp/0x9d4c41f2862535bc40a1b3ecde55d30b40015d7384bbe9ee47219c60e13ee446:237) (example), which shows your transaction. Here you can track and trace what is happening, which is handy in case you don’t see your funds arriving within the expected time.<br>
10. If completed successful, you can check your Keplr wallet to confirm the balance has arrived.

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FeibPuvT3WPeTsoh9eTcR%2Fimage.png?alt=media&amp;token=70c715d4-8676-47b4-ad26-9e753cf3f185" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="https://2702921872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FucQvpcxkrpiVlpC8l3qi%2Fuploads%2FcNmN7CzbNeC5eeJACjPy%2Fimage.png?alt=media&amp;token=3b1ef08a-a594-4daf-b645-af8df8b4f429" alt="" width="375"><figcaption></figcaption></figure>
