> For the complete documentation index, see [llms.txt](https://bot.3gm.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bot.3gm.dev/3gm-minting-services/3gm-contract-minting/withdrawal-functions.md).

# Withdrawal functions

### function withdraw721

* Parameters
  * NFT contract (address)
  * NFT recipient (address)
  * Starting contract index (uint256)
  * Amount of contracts (uint256)
  * First token ID (uint256)
  * Amount of tokens per contract (uint256)
  * Transfer Type (uint256)
* Usage
  * Withdraw erc721 tokens which ID's are in numerical order and in same amounts per Contracts

### function withdraw721Advanced

* Parameters
  * NFT contract (address)
  * NFT recipient (address)
  * Array of contract indexes (uint256)
  * Nested array token IDs (uint256\[]\[])
  * Transfer Type (uint256)
* Usage
  * Withdraw erc721 tokens which need custom setting for their location, IDs or amounts per Contract

### function withdraw1155

* Parameters
  * NFT contract (address)
  * NFT recipient (address)
  * Starting contract index (uint256)
  * Amount of contracts (uint256)
  * token ID (uint256)
  * Amount per contract (uint256)
* Usage
  * Withdraw a single ID of erc1155 tokens

### function withdrawBatch1155

* Parameters
  * NFT contract (address)
  * NFT recipient (address)
  * Starting contract index (uint256)
  * Amount of contracts (uint256)
  * Array of token IDs (uint256\[])
  * Array of amounts per token ID (uint256\[])
* Usage
  * Withdraw multiple IDs of erc1155 tokens

### function withdrawEth

* Parameters
  * Recipient (address)
  * Starting contract index (uint256)
  * Amount of contracts (uint256)
  * Amount to withdraw from contract(uint256)
* Usage
  * Withdraw all eth present on the specified contracts

### function withdrawERC20

* Parameters
  * ERC20 token(address)
  * Recipient (address)
  * Amount of contracts (uint256)
  * Starting contract index (uint256)
* Usage
  * Withdraw ERC20 token present on the specified contracts


---

# 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://bot.3gm.dev/3gm-minting-services/3gm-contract-minting/withdrawal-functions.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.
