> For the complete documentation index, see [llms.txt](https://autofarm.gitbook.io/autofarm-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://autofarm.gitbook.io/autofarm-network/dutch/how-tos/autofarm/withdraw-from-autofarm-vaults-using-bscscan.com.md).

# Withdraw from Autofarm vaults using bscscan.com

In the unlikely event of an user interface (UI) outage/downtime,  it is also possible to communicate and trigger Autofarm smart contracts with use of the Binance Smart Chain (BSC) block explorer: <https://www.bscscan.com>. An walkthrough on how to do this is presented here, aspects needed for these actions: desktop browser (preferably Chrome) and the MetaMask plugin.

1\) [Get Metamask](https://metamask.io/) at [https://www.metamask.io](https://metamask.io/) and import your seed if needed.

2\) Get the PID of your funds. The PID refers to Pool ID and its the value that is assigned to each pool from the deployer contract. To get the PID of your funds there are at least two ways to search for it.&#x20;

{% hint style="warning" %}
This step is important because it’s the only way for interaction with bscscan and the smart contracts.
{% endhint %}

#### Autofarm Vault PoolID (PID) list:

```
 "1": "WBNB", "Venus OLD",
 "2": "BUSD", "Venus OLD",
 "3": "BTCB", "Venus OLD",
 "4": "ETH", "Venus OLD",
 "5": "LINK", "Venus OLD",
 "6": "WBNB-AUTO LP",
 "7": "CAKE",
 "8": "WBNB-CAKE LP",
 "9": "sBDO-BUSD LP",
 "10": "WBNB-BUSD LP",
 "11": "WBNB-BTCB LP",
 "12": "BDO-BUSD LP",
 "13": "WBNB-BDO LP",
 "14": "KEBAB-BUSD LP",
 "15": "WBNB-BUSD LP",
 "16": "USDT", "Venus OLD",
 "17": "USDC", "Venus OLD",
 "18": "DOT", "Venus OLD",
 "19": "WBNB-ETH LP",
 "21": "BUSD-USDT LP",
 "22": "BUSD-VAI LP",
 "23": "WBNB-LINK LP",
 "25": "WBNB-UNI LP",
 "26": "WBNB-BAND LP",
 "27": "WBNB-TWT LP",
 "28": "WBNB-SXP LP",
 "29": "WBNB-XVS LP",
 "30": "WBNB-ALPHA LP",
 "32": "BUSD-UST LP",
 "33": "WBNB-BTCST LP",
 "34": "WBNB-wSOTE LP",
 "35": "WBNB-FRONT LP",
 "36": "WBNB-HELMET LP",
 "37": "WBNB-EGLD LP",
 "38": "WBNB-INJ LP",
 "39": "KEBAB",
 "40": "KEBAB-WBNB LP",
 "41": "BTCB-BUSD LP",
 "42": "USDT-BUSD LP",
 "43": "DOT-BUSD LP",
 "44": "ETH-BETH LP",
 "45": "ETH-COMP LP",
 "46": "WBNB-YFI LP",
 "47": "WBNB-XRP LP",
 "48": "WBNB-ADA LP",
 "49": "WBNB-EOS LP",
 "50": "WBNB-SFP LP",
 "51": "UST-MAMZN LP",
 "52": "UST-MGOOGL LP",
 "53": "UST-MNFLX LP",
 "54": "UST-MTSLA LP",
 "55": "WBNB-REEF LP",
 "56": "WBNB-HARD LP",
 "57": "WBNB-BSCX LP",
 "58": "WBNB-LIT LP",
 "59": "WBNB-UNFI LP",
 "60": "WBNB-BCH LP",
 "61": "WBNB-DITTO LP",
 "62": "WBNB-CTK LP",
 "63": "WBNB-HGET LP",
 "64": "BUSD-LINA LP",
 "65": "WBNB-ATOM LP",
 "66": "WBNB-XTZ LP",
 "67": "WBNB-bALBT LP",
 "68": "WBNB-ZEE LP",
 "69": "WBNB-BRY LP",
 "70": "WBNB-SWINGBY LP",
 "71": "WBNB-TEN LP",
 "72": "WBNB-SWGb LP",
 "73": "EGG-BUSD LP",
 "74": "EGG-WBNB LP",
 "79": "VIKING-BUSD LP",
 "80": "VIKING-WBNB LP",
 "81": "WBNB-DOT LP",
 "82": "WBNB-DODO LP",
 "83": "WBNB-bOPEN LP"
 "84": "WBNB", "Venus NEW",
 "85": "BUSD", "Venus NEW",
 "86": "USDT", "Venus NEW",
 "87": "USDC", "Venus NEW",
 "89": "BTCB", "Venus NEW",
 "90": "ETH", "Venus NEW", 
 "91": "DOT", "Venus NEW", 
 "92": "LINK", "Venus NEW", 
 "93": "SXP", "Venus NEW", 
 "94": "ADA", "Venus NEW", 
 "95": "WBNB-BELT LP",
 "96": "WBNB-AUTO LP (Bakery)", 
 "97": "WBNB-BAKE LP", "Bakery", 
 "98": "WBNB-BTCB LP", "Bakery", 
 "99": "WBNB-pCWS LP (Bakery)", 
 "100": "WBNB-BOR LP", 
 "101": "WBNB-BMXX LP", 
 "102": "WBNB-WATCH LP", 
 "103": "WBNB-BEL LP",
 "104": "WBNB-BUX LP", 
 "105": "WBNB-ALICE LP", 
 "106": "WBNB-COS LP",
 "107": "WBNB-DUSK LP", 
 "108": "WBNB-TRADE LP",
 "109": "WBNB-LTO LP", 
 "110": "WBNB-pCWS LP (PCS)", 
 "111": "WBNB-ZIL LP", 
 "112": "WBNB-LIEN LP", 
 "113": "WBNB-SWTH LP", 
 "114": "WBNB-DFT LP", 
 "115": "WBNB-PBTC LP", 
 "116": "WBNB-GUM LP", 
 "117": "WBNB-DEGO LP", 
 "118": "BUSD-IOTX LP", 
 "119": "BUSD-XMARK LP", 
 "120": "BUSD-TPT LP", 
 "121": "BUSD-DEXE LP", 
 "122": "BUSD-RAMP LP", 
 "123": "BUSD-NULS LP", 
 "124": "BUSD-FOR LP", 
 "125": "BUSD-TXL LP", 
 "127": "WBNB-MDX LP",
 "128": "USDT-MDX LP",
 "129": "USDT-BTCB LP", 
 "130": "USDT-ETH LP", 
 "131": "USDT-USDC LP", 
 "132": "USDT-BUSD LP", 
 "133": "BTCB-ETH LP",
 "134": "BUSD-MDX LP", 
 "137": "iBNB", 
 "138": "iBUSD", 
 "139": "iUSDT",
 "140": "iBTC", 
 "141": "iETH", 
 "142": "iLINK", 
 "143": "WBNB-BGOV LP", 
 "144": "WBNB-USDT LP", 
 "145": "WBNB-BUSD LP", 
 "146": "WBNB-BTCB LP", 
 "147": "WBNB-ETH LP",
 "148": "USDT-FIL LP",
 "149": "USDT-ADA LP",
 "150": "USDT-DAI LP",
 "151": "USDT-DOT LP",
 "152": "USDT-XRP LP",
 "153": "USDT-LTC LP",
 "154": "BUSD-BTCB LP",
 "155": "BUSD-ETH LP",
 "156": "BUSD-BCH LP",
 "157": "ETH-BETH LP"
```

{% hint style="warning" %}
Please always check if above list is up to date: retrieve the list with PIDs from the Autofarm API: [https://static.autofarm.network/bsc/farm\_data.json ](<https://static.autofarm.network/bsc/farm_data.json >)\
\&#xNAN;*(past the output in* [*https://jsonlint.com/*](https://jsonlint.com/) *and paste it there. Then you can click Validate JSON and go to the last section to find a list with all the available pools.)*
{% endhint %}

![](/files/-MY9539R1qCC23v9pwna)

{% hint style="success" %}
Another way to get a vault PID it's going to [bscscan.com](https://www.bscscan.com), and search up the deposit transaction hash of you wallet. Then in the details of the transaction (txn), you can click on *show more* > *input data*  > *decode* data. This will give you the actual PID of the vault where you deposited.
{% endhint %}

![](/files/-MY94kEWypz9LTSXlQri)

3\) Go to Autofarm deployer contract. Search the contract in [bscscan.com](https://www.bscscan.com) (Address: 0x0895196562C7868C5Be92459FaE7f877ED450452)

```
https://www.bscscan.com/address/0x0895196562c7868c5be92459fae7f877ed450452#writeContract 
```

4\) Connect to BSCscan via web3

![](/files/-MY95OcjBHU79RCfutDc)

5\) Click on \[Write Contract]&#x20;

![](/files/-MY961yiSvfCtFY4UsMy)

![](/files/-MY96GzG_Jj4Qy4bJUgO)

6\) You can either withdraw your entire deposit or choose to only harvest the $AUTO rewards, both can also be done by using **section 11: ”11. withdraw”.**

![](https://lh4.googleusercontent.com/XlOpfCoGhX60ROdHGPrUdyRK0GS04ghR1cO_5tyihKmRFkkNp1rh5hM4pIp4mkqeYtbLcUiLTHvZySB3tYtD3FS-FkLMZ-hDv-OxjmrSYnBGmKUUwel_rpowCwwc-iXLTcNnvZEm)

**To harvest your $AUTO rewards:**

* Enter your PID in \_pid
* Enter 0 in \_wantAmt
* Click on Write and approve the transaction.

**To withdraw your deposited funds partially or fully:**

* Enter your PID in \_pid
* Enter the quantity to withdraw, on uint256 format , in \_wantAmt&#x20;

7\) After you filled in the PID, click on \[Write Contract] and Metamask will prompt a window to approve the transaction. Once the transaction is executed, all your funds will be withdrawn from the Autofarm vault to your wallet.

{% hint style="success" %}
To convert a decimal value to uint256 format, please go to <https://www.rapidtables.com/convert/number/hex-to-decimal.html>
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://autofarm.gitbook.io/autofarm-network/dutch/how-tos/autofarm/withdraw-from-autofarm-vaults-using-bscscan.com.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
