> For the complete documentation index, see [llms.txt](https://docs.minterest.com/taiko-morph-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minterest.com/taiko-morph-guide/withdraw-funds.md).

# Withdraw Funds

This guide focuses on working directly with contracts on Taiko or Morph via network-specific block explorers, not via the Minterest UI.

#### Withdraw Funds From the Market

{% hint style="info" %}
To fully withdraw funds from all markets, all outstanding loans must be repaid.
{% endhint %}

> For these next steps, we'll be interacting with **Taiko**'s & **Morph**'s explorer using $**USDC**'s market address:

* **Taiko**: **`0xF89B01fa87a3E51BDA2dA67154Ea35A3F84eC373`**
* **Morph**: **`0x793ce6AC5112DA5Db9C046848af99C749e14b1A4`**

***

#### Get Your Balance for a Specific Market

{% hint style="success" %}
This part of the process won't require any transaction.
{% endhint %}

1. Locate the contract address for **the market** associated with your desired token in the smart contracts list provided in this guide.
2. Visit [Taiko](https://taikoscan.io)'s or [Morph](https://explorer.morphl2.io)'s blockchain explorer and input **the market contract address** chosen on the page's search field:<br>

   <figure><img src="https://1382635074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq54Yy8raKxdnR99SP9e1%2Fuploads%2FqexNqCc3Mmm5Kqp8rcap%2Faddress.png?alt=media&amp;token=6fb775c5-b2f6-4474-9089-988bfea5fc6b" alt=""><figcaption></figcaption></figure>
3. Go to the **Contract** section, open the **Read as Proxy** or **Read proxy** tab, then scroll down and choose the `balanceOf` function:<br>

   <figure><img src="https://1382635074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq54Yy8raKxdnR99SP9e1%2Fuploads%2FAZTDZZrupTz62kiftsaz%2Fread.proxy.png?alt=media&amp;token=8d2014d1-ab9a-4eae-ae4b-78c7b6378bd2" alt=""><figcaption></figcaption></figure>
4. Paste your wallet's public address into the `owner (address)` input field and click **Query** or **Read**:<br>

   <figure><img src="https://1382635074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq54Yy8raKxdnR99SP9e1%2Fuploads%2FoftGhXZFRdyTAcFSbxZI%2Fread.png?alt=media&amp;token=ecfe6a1a-14d8-4a90-9ca8-79e8292ac52f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The result is an integer scaled by the underlying token decimals.
{% endhint %}

***

#### Redeem Tokens From the Market Contract

1. Go back to the **Contract** section, open the **Write as Proxy** or **Write proxy** tab, then click **Connect to Web3** or **Connect wallet**:<br>

   <figure><img src="https://1382635074-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq54Yy8raKxdnR99SP9e1%2Fuploads%2FqaJIBsIuKbluGuwxM1Hf%2Fwrite.proxy.png?alt=media&amp;token=53729273-6cb2-428d-8d00-1082d7ad22d1" alt=""><figcaption></figcaption></figure>
2. Locate and choose the `redeem` function, then enter the balance you got form using the `balanceOf` function in the `redeemTokens (uint256)` input field.
3. Click **Write**, then approve the transaction in the browser pop-up displayed by your wallet.

{% hint style="info" %}
You'll get an error if you're not holding enough of your inputted asset amount.
{% endhint %}
