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

# Gateway

> Learn how to manage crosschain USDC using the Gateway feature

<Note>
  In a nutshell<br />
  Gateway enables unified USDC management across multiple blockchains—deposit from any chain, withdraw to any chain, all from a single chain-abstracted balance. No manual bridging or liquidity fragmentation.
</Note>

<iframe className="w-full h-[500px]" height="315" src="https://www.youtube.com/embed/2zlnvIArI_s?si=Q_jg2-xR4d783w3g" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen />

## Prerequisites

Before using the Gateway API, ensure you have:

<Steps>
  <Step title="API Key">
    Get your API key from the [Blockradar Dashboard](https://dashboard.blockradar.co). Navigate to **Developers** to generate one.
  </Step>

  <Step title="Supported Wallet">
    Create a master wallet on a Gateway-supported chain (Ethereum, Base, Polygon, Arbitrum, Optimism, or Avalanche). Use the [Create Wallet API](/en/api-reference/wallets/create-wallet) or dashboard.
  </Step>

  <Step title="USDC Balance">
    Ensure your wallet has USDC to deposit into Gateway. Gateway only supports USDC for cross-chain operations.
  </Step>

  <Step title="Native Token for Gas">
    Fund your wallet with native tokens (ETH, MATIC, AVAX) to cover network fees for deposit and withdrawal operations.
  </Step>
</Steps>

<Warning>
  Do NOT send USDC directly to Gateway Wallet contract using a standard token transfer—this will result in permanent loss of funds. Only use the official API methods for deposits.
</Warning>

## How It Works

Gateway lets you seamlessly manage USDC across all supported blockchains. It eliminates manual bridging, rebalancing, and liquidity fragmentation—letting you move, deposit, and withdraw USDC instantly, from any chain to any chain.

### Supported actions:

* Deposit USDC from any supported blockchain into your unified Gateway balance.

* Instantly withdraw (mint) USDC on any other supported blockchain.

* View wallets, transactions, and balances via API.

## API Reference

### **Endpoints**

Below are the core API endpoints for Gateway operations:

#### **Master Wallet Gateway Endpoints**

* [POST /gateway/deposit](/en/api-reference/gateway/master-wallet-deposit) – Deposit USDC to Gateway balance

* [POST /gateway/withdraw](/en/api-reference/gateway/master-wallet-withdraw) – Withdraw USDC from Gateway balance to any supported chain

* [GET /gateway/wallets](/en/api-reference/gateway/get-supported-master-wallets) – List Gateway wallets

* [GET /gateway/transactions](/en/api-reference/gateway/master-wallet-transactions) – Review all Gateway-related transactions

* [GET /gateway/balance](/en/api-reference/gateway/master-wallet-get-balance) – Query unified USDC balance

* [POST /gateway/deposit-network-fee](/en/api-reference/gateway/master-wallet-deposit-network-fee) – Get deposit network fee estimate

* [POST /gateway/withdraw-network-fee](/en/api-reference/gateway/master-wallet-withdraw-network-fee) – Get withdrawal network fee estimate

#### **Child Address Gateway Endpoints**

You can access Gateway features directly from the child address page in the dashboard:

<img className="gateway-child-address" src="https://mintcdn.com/blockradar/Q4zdBTyprhDmz_Ni/images/child-address-gateway.png?fit=max&auto=format&n=Q4zdBTyprhDmz_Ni&q=85&s=e196861c718f20b6696f78ac6064eb17" alt="Child Address Gateway" width="3444" height="1908" data-path="images/child-address-gateway.png" />

* [POST /addresses/{addressId}/gateway/deposit/{walletId}](/en/api-reference/gateway/child-address-deposit) – Deposit USDC to Gateway balance for a child address

* [POST /addresses/{addressId}/gateway/withdraw](/en/api-reference/gateway/child-address-withdraw) – Withdraw USDC from Gateway balance for a child address to any supported chain

* [GET /addresses/{addressId}/gateway/transactions](/en/api-reference/gateway/child-address-transactions) – Review all Gateway-related transactions for a child address

* [GET /addresses/{addressId}/gateway/balance](/en/api-reference/gateway/child-address-get-balance) – Query unified USDC balance for child address

* [POST /addresses/{addressId}/gateway/deposit/{walletId} /network-fee](/en/api-reference/gateway/child-address-deposit-network-fee) – Get deposit network fee estimate for child address

* [POST /addresses/{addressId}/gateway/withdraw/network-fee](/en/api-reference/gateway/child-address-withdraw-network-fee) – Get withdrawal network fee estimate for child address

<Note>
  {" "}

  Do NOT send USDC directly to Gateway Wallet contract using a standard token transfer—this
  will result in permanent loss of funds. Only use the official API methods for deposits.{" "}
</Note>

<Note>
  {" "}

  * Gateway displays network fees prior to deposit or withdrawal; fees are deducted
    from your master wallet balance.{" "}
</Note>

***

## Dashboard Overview

The Gateway dashboard provides an intuitive UI for managing your unified USDC balance. You can create rules, monitor balances, and configure settlement preferences without touching the API.

<img className="gateway-dashboard" src="https://mintcdn.com/blockradar/fWg7SGpNBqmitg8P/images/gateway-dashboard1.png?fit=max&auto=format&n=fWg7SGpNBqmitg8P&q=85&s=7532a0c2409bd1295d61b2fc33a436ac" alt="Gateway Dashboard" width="1440" height="1045" data-path="images/gateway-dashboard1.png" />

### Key dashboard sections:

* **Wallets** – View all linked wallets and their unified balances
* **Transactions** – Track deposits, withdrawals, and settlement activity.
* **Gateway Rules** – Configure auto-settlement rules for incoming deposits.

***

## Auto Settlement Configuration

Auto Settlement rules allow deposits to be automatically converted into a unified USDC balance on your chosen destination chain (e.g., Base). This removes the need to manually swap or bridge assets.
autosettlement-gateway1.png

<img className="gateway-autosettlement1" src="https://mintcdn.com/blockradar/fWg7SGpNBqmitg8P/images/autosettlement-gateway.png?fit=max&auto=format&n=fWg7SGpNBqmitg8P&q=85&s=182a6bb9fedd570c2bc5356ba2a595a3" alt="Autosettlement Config" width="1440" height="1045" data-path="images/autosettlement-gateway.png" />

### Why Auto Settlement Matters

* **Reduces fragmentation** – All incoming stablecoins are normalized into USDC.
* **Saves time** – No need to manually monitor or convert deposits.
* **Risk management** – Apply slippage tolerance and rules to protect against bad executions.
* **Operational efficiency** – Ensures your treasury always sits in a single, chain-abstracted balance.

***

## Creating a Settlement Rule

Each rule lets you define how and when incoming deposits are settled:

<img className="gateway-autosettlement3" src="https://mintcdn.com/blockradar/fWg7SGpNBqmitg8P/images/autosettlement-gateway3.png?fit=max&auto=format&n=fWg7SGpNBqmitg8P&q=85&s=a00263fbcdc6276dc8f87bcbfa6fa452" alt="Autosettlement Config2" width="1440" height="1045" data-path="images/autosettlement-gateway3.png" />

* **Rule Name** – Give your settlement rule a descriptive name.
* **Min/Max Amount** – Control the size of deposits that trigger settlement.
* **Slippage Tolerance** – Protects against high volatility or poor execution.
* **Source Asset** – Choose which assets to auto-settle (e.g., USDT, DAI).
* **Destination Asset** – Typically USDC, unified in Gateway.
* **Destination Chain** – Select your target chain (e.g., Base).
* **Settlement Preference** – Optimize for *Fastest*, *Cheapest*, or *Safest* execution.

<img className="gateway-autosettlement5" src="https://mintcdn.com/blockradar/fWg7SGpNBqmitg8P/images/autosettlement-gateway5.png?fit=max&auto=format&n=fWg7SGpNBqmitg8P&q=85&s=cd8c46aad05819eee00312e580b3d2f2" alt="Autosettlement Config2" width="1440" height="1045" data-path="images/autosettlement-gateway5.png" />

Once saved, rules are automatically applied to deposits matching your criteria.

***

## Deposit Finality

When depositing into Gateway, funds are credited to your unified balance only after the transaction reaches **finality** on the source chain.\
Finality depends on each chain’s consensus rules and required block confirmations.

***

### Testnet

| Chain                | Source         | Destination    |
| -------------------- | -------------- | -------------- |
| **Avalanche Fuji**   | <span>✔</span> | <span>✔</span> |
| **Base Sepolia**     | <span>✔</span> | <span>✔</span> |
| **Ethereum Sepolia** | <span>✔</span> | <span>✔</span> |

<Note>
  You can get test assets on the test environments listed out
  [here](/en/essentials/wallets#test-environment)
</Note>

### Mainnet

| Chain         | Source         | Destination    |
| ------------- | -------------- | -------------- |
| **Arbitrum**  | <span>✔</span> | <span>✔</span> |
| **Avalanche** | <span>✔</span> | <span>✔</span> |
| **Base**      | <span>✔</span> | <span>✔</span> |
| **Ethereum**  | <span>✔</span> | <span>✔</span> |
| **Optimism**  | <span>✔</span> | <span>✔</span> |
| **Polygon**   | <span>✔</span> | <span>✔</span> |

***

### Required Confirmations & Finality Times

| Chain         | Confirmations   | Approx. Time to Finality |
| ------------- | --------------- | ------------------------ |
| **Arbitrum**  | \~65 ETH blocks | \~13 to 19 minutes       |
| **Avalanche** | 1               | \~8 seconds              |
| **Base**      | \~65 ETH blocks | \~13 to 19 minutes       |
| **Ethereum**  | \~65            | \~13–19 minutes          |
| **Optimism**  | \~65 ETH blocks | \~13 to 19 minutes       |
| **Polygon**   | \~2-3           | \~8 seconds              |

***

<Note>
  Gateway only credits your balance **after finality is reached**. Make sure to
  account for these confirmation times when designing user-facing flows,
  especially if supporting both testnet and mainnet.
</Note>

<br /> Happy hacking! ❤️
