> For the complete documentation index, see [llms.txt](https://xpansionchain-1.gitbook.io/xpansionchain/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xpansionchain-1.gitbook.io/xpansionchain/advanced-guides/withdraw-payouts.md).

# Withdraw payouts

## Withdraw payouts

To withdraw your funds from XpansionChain (Layer 2), you can do so via the API orXpansionChain Marketplace.

### Steps to Withdraw via XpansionChain Marketplace[​](https://docs.x.immutable.com/docs/x/withdrawing-payouts#steps-to-withdraw-via-immutable-marketplace) <a href="#steps-to-withdraw-via-immutable-marketplace" id="steps-to-withdraw-via-immutable-marketplace"></a>

1. Go to the XpansionChain <mark style="color:blue;">Marketplace.</mark>
2. Connect wallet on Ethereum mainnet.

<img src="https://docs.x.immutable.com/assets/images/connect-to-ethereum-c92593a5720451005bba231828f0a656.png" alt="Connect to Ethereum Mainnet" height="602" width="357">

<figure><img src="https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2FBSAdRMtaCIS4ZZsWcaSN%2F1.png?alt=media&amp;token=21209595-e0a2-4060-93b1-93e8e3c0d8d7" alt=""><figcaption><p>Connect Wallet</p></figcaption></figure>

3. Go to your inventory page.

<figure><img src="https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2F7a1R8vtO1g0VCbFOWFV4%2F2.png?alt=media&amp;token=415cd0bd-4c20-4890-8c01-cd33ad599e10" alt=""><figcaption><p>Inventory</p></figcaption></figure>

4. Click on "XpansionChain" balance next to the deposit button on the far right.

<figure><img src="https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2FuRZ1ICidgmQyktjxBkOs%2F3.png?alt=media&amp;token=1bb468c4-9fab-4ade-9dba-7de92c3051c8" alt=""><figcaption><p>Click on XpansionChain</p></figcaption></figure>

5. Select either ETH or the ERC-20 token you would like to withdraw.
6. Specify the amount and hit continue to follow the link process to sign the transaction. This will prepare your withdrawal from Layer 2 to Layer 1.

<figure><img src="https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2F1AR30MZ8d6PBQtUAyec1%2F4.png?alt=media&amp;token=b62dbb85-adeb-4379-b88c-6e1467d1d017" alt=""><figcaption><p>Confirm Prepare Withdrawal</p></figcaption></figure>

<figure><img src="https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2Fwetmtjl2poKKTFi9SX5K%2F5.png?alt=media&amp;token=71b17cb2-f1ae-4244-98e0-1850aa209465" alt=""><figcaption><p>Preparing withdrawal</p></figcaption></figure>

7. After some time (currently around 12 hours), your withdrawal should be ready to be taken onto Layer 1. At this point if you go back into the XpansionChain Marketplace, you should see "preparing withdrawal" change to "withdrawal ready".

![Withdrawal Ready](https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2FbQTjAHSbfyiT1jucCePc%2F6.png?alt=media\&token=9f78749c-f040-44d7-9750-889369a45d57)

8. Click on "withdrawal ready" and select ETH or the ERC-20 token you would like to withdraw to Layer 1.

<img src="https://docs.x.immutable.com/assets/images/withdraw-ready-8a1e7cf55adebfd7cf6fbc30ae5b9088.jpg" alt="Withdraw Ready" height="374" width="577">

9. Follow the confirmation process in Link.

![Confirmation](https://3017072639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7a6afyDwSEkvWtt1UhmH%2Fuploads%2FrS4iDrYuV1T4qoKIvrDC%2F7.png?alt=media\&token=2898a148-6f24-43b5-b814-518e770f88ed)

10. Your balance should show in your Layer 1 wallet soon (currently around 12 hours). There is a delay because we batch transactions and send a single proof on-chain to reduce gas costs.
