> ## Documentation Index
> Fetch the complete documentation index at: https://developers.circle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How-to: Withdraw your balance

> Withdraw remaining USDC from your Gateway balance back to your agent wallet.

Withdraw remaining USDC from your Gateway balance back to your agent wallet on
the same blockchain. Useful when you're done making nanopayments and want to
recover unused funds.

## Prerequisites

Before you begin, ensure you have:

* Installed [Node.js v20.18.2 or later](https://nodejs.org/).

* Installed Circle CLI:

  ```bash theme={null}
  npm install -g @circle-fin/cli
  ```

* Completed the
  [Agent Wallets quickstart](/agent-stack/agent-wallets/quickstart)
  (authenticates and funds your wallet).

<Note>
  USDC is minted on the same blockchain as your Gateway balance. Crosschain
  withdrawals aren't supported.
</Note>

## Steps

<Steps>
  <Step title="Withdraw from Gateway">
    Run `circle gateway withdraw` with the amount, your wallet address, and
    the blockchain where your Gateway balance lives:

    ```bash theme={null}
    circle gateway withdraw --amount 1 --address 0xYourWalletAddress --chain BASE
    ```

    To send the withdrawn USDC to a different address, add `--recipient`:

    ```bash theme={null}
    circle gateway withdraw --amount 1 --address 0xYourWalletAddress --chain BASE --recipient 0xOtherAddress
    ```

    <Tip>
      Not sure which blockchain your balance lives on? Run
      `circle gateway balance --all` to see all blockchains.
    </Tip>
  </Step>

  <Step title="Confirm the withdrawal">
    Check that your Gateway balance decreased:

    ```bash theme={null}
    circle gateway balance --address 0xYourWalletAddress --chain BASE
    ```

    Then check that your wallet balance increased:

    ```bash theme={null}
    circle wallet balance --address 0xYourWalletAddress --chain BASE
    ```
  </Step>
</Steps>

See the [CLI command reference](/agent-stack/circle-cli/command-reference) for
full syntax and options.
