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

# Get test tokens

> Mint the test USDC and USDT that 4Mica accepts as collateral on Base Sepolia and Ethereum Sepolia.

On the testnets, 4Mica accepts Aave's test USDC and USDT as collateral. You mint them yourself from Aave's faucet contract, for free, as often as you need.

> [!NOTE]
>
> These are not Circle's testnet USDC. Tokens from a Circle faucet have a different address, and
> core does not accept them as collateral.

## How the faucet works

Aave deploys a faucet contract next to its testnet markets. The faucet has one function you need:

```solidity theme={null}
mint(address token, address to, uint256 amount)
```

* **`token`** is the test token to mint.
* **`to`** is the address that receives it. It does not have to be the sender.
* **`amount`** is in base units. USDC and USDT have six decimals, so `10000000` is 10 tokens.

Anyone can call it. 4Mica does not run a faucet of its own.

| Network | Faucet contract | USDC | USDT |
| - | - | - | - |
| Base Sepolia | `0xD9145b5F45Ad4519c7ACcD6E0A4A82e83bB8A6Dc` | `0xba50Cd2A20f6DA35D788639E581bca8d0B5d4D5f` | `0x0a215D8ba66387DCA84B284D18c3B4ec3de6E54a` |
| Ethereum Sepolia | `0xC959483DBa39aa9E78757139af0e9a2EDEb3f42D` | `0x94a9D9AC8a22534E3FaCa9F4e7F2E2cf85d5E4C8` | `0xaA8E23Fb1079EA71e0a56F48a2aA51851D8433D0` |

On Ethereum Sepolia the faucet mints at most 10,000 tokens in one call.

## Mint with one command

These commands use `cast` from [Foundry](https://getfoundry.sh/). Each mints 10 USDC.

```bash Base Sepolia theme={null}
cast send 0xD9145b5F45Ad4519c7ACcD6E0A4A82e83bB8A6Dc "mint(address,address,uint256)" \
  0xba50Cd2A20f6DA35D788639E581bca8d0B5d4D5f <recipient address> 10000000 \
  --rpc-url https://sepolia.base.org --private-key <sender key>
```

```bash Ethereum Sepolia theme={null}
cast send 0xC959483DBa39aa9E78757139af0e9a2EDEb3f42D "mint(address,address,uint256)" \
  0x94a9D9AC8a22534E3FaCa9F4e7F2E2cf85d5E4C8 <recipient address> 10000000 \
  --rpc-url https://ethereum-sepolia-rpc.publicnode.com --private-key <sender key>
```

To mint USDT, replace the token address with the network's USDT address from the table.

You can also mint from the faucet page of the Aave app in testnet mode, which calls the same contract.

## Fund a wallet that has no ETH

The mint is a transaction, so its sender pays gas in testnet ETH. A wallet you have just created holds none.

Because `to` can be any address, send the mint from a wallet that already has testnet ETH and name the new wallet as the recipient. The new wallet then needs no ETH at all: its deposit into 4Mica is gasless through the hosted testnet facilitator.

```bash theme={null}
4mica wallets create        # prints the new wallet's address
# mint to that address from a funded wallet, as above
4mica deposit 10 --asset USDC
```

If you have no funded wallet, get testnet ETH for the sender from any public Sepolia or Base Sepolia faucet first.

## Check that it arrived

```bash CLI theme={null}
4mica status                 # shows whether the wallet holds tokens and collateral
4mica deposit 10 --asset USDC
4mica balance USDC
```

```ts TypeScript theme={null}
import { FourMica } from "@4mica/sdk";

await using client = await FourMica.connect({
  privateKey: process.env.PRIVATE_KEY,
  network: "base-sepolia",
});

await client.deposit("10 USDC");
console.log(await client.balance("USDC"));
```

A deposit fails before anything is signed when the wallet does not hold the tokens, so a wrong token address shows up here and not later.

Deposited test tokens leave the `Treasury` only through a withdrawal and its grace period. On Ethereum Sepolia that is the `Treasury` default of 22 days, so mint more instead of waiting on a withdrawal to reuse tokens.

## Mainnet

There is no faucet on Base mainnet. Collateral there is real: deposit tokens you hold, and check which ones core accepts with [`GET /core/tokens`](https://docs.4mica.io/api-reference/operator/tokens). See [supported networks](https://docs.4mica.io/getting-started/supported-networks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.