> For the complete documentation index, see [llms.txt](https://docs.nullmask.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nullmask.io/user-guide/withdrawing.md).

# Withdrawing

Withdrawals move funds from your shielded balance to any Ethereum address on the base chain.

## Steps

1. Navigate to the **Unshield** tab on the Shield screen
2. Select the token
3. Enter the amount
4. Enter the destination address (or click "Use My Wallet" for your own address)
5. Confirm the transaction in your wallet

## What Happens

1. The wallet signs a transfer to the destination address
2. The proxy detects the recipient has no registered receiving key → withdrawal
3. A ZK proof is generated
4. The relayer submits the proof to the contract
5. The contract verifies the proof and sends funds directly to the destination address

## Key Differences from Sending

| Aspect                     | Send                           | Withdraw                    |
| -------------------------- | ------------------------------ | --------------------------- |
| Recipient                  | Must be registered on Nullmask | Any Ethereum address        |
| Funds remain in pool       | Yes (as encrypted notes)       | No (transferred to address) |
| Recipient address on-chain | Hidden                         | Visible                     |
| Transfer amount on-chain   | Hidden                         | Visible                     |

## Privacy Considerations

* The withdrawal recipient address and amount are **public** on-chain
* Use a fresh, unlinkable address for withdrawals to maximize privacy
* You cannot withdraw to addresses that are registered on Nullmask (this is by design — use Send instead)

## Output Notes

A withdrawal creates 2 notes (for your change):

| Note            | Contains                      |
| --------------- | ----------------------------- |
| Change note     | Leftover action-asset balance |
| Fee change note | Leftover fee-asset balance    |

Plus a direct transfer of the withdrawal amount to the destination address.

## ETH vs ERC-20 Withdrawals

* **ETH**: Sent via low-level `call{value: amount}("")`
* **ERC-20**: Sent via `safeTransfer` from the contract's token balance


---

# 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://docs.nullmask.io/user-guide/withdrawing.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.
