> ## 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.

# Quickstart: Make a nanopayment

> Deposit USDC into Gateway, find an x402-compatible service, and pay for it with your agent wallet.

By the end of this quickstart, your agent will have made a nanopayment to an
x402-compatible service.

## 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).

## Steps

<Steps>
  <Step title="Deposit USDC into your nanopayments balance">
    Deposit 5 USDC from your wallet on Base:

    ```bash theme={null}
    circle gateway deposit --amount 5 --address 0xYourWalletAddress --chain BASE --method direct
    ```
  </Step>

  <Step title="Find an x402-compatible service">
    Search the Circle Agent Marketplace for available services:

    ```bash theme={null}
    circle services search "weather"
    ```

    Pick a service and inspect its payment requirements:

    ```bash theme={null}
    circle services inspect https://api.example.com/weather
    ```
  </Step>

  <Step title="Pay for the service">
    Pay with your Gateway balance on Base. Replace `0xYourWalletAddress` with
    your wallet address:

    ```bash theme={null}
    circle services pay https://api.example.com/weather \
      --address 0xYourWalletAddress \
      --chain BASE \
      --max-amount 0.01
    ```

    The CLI prints the service's response body. The payment settles against
    your Gateway balance.
  </Step>

  <Step title="Check your balance">
    Confirm your remaining Gateway balance:

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

## Next steps

* [Pay for more services](/agent-stack/agent-nanopayments/operations/pay-for-service)
  using your remaining balance.
* [Withdraw your balance](/agent-stack/agent-nanopayments/operations/withdraw)
  back to your wallet when you're done.
