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

# Unlimited Faucet

> Fund any account with arbitrary native and ERC-20 token balances on a Virtual Environment, from the dashboard or via Admin RPC methods.

Virtual Environments come with an unlimited faucet which you can use to fund or set an arbitrary amount of native and ERC-20 tokens to any account. Since there is no mining of tokens, funds will be instantly added to the account and available for you to use.

Accounts can be funded from the Dashboard or using custom JSON-RPC methods.

## Dashboard unlimited faucet

[Watch on Loom →](https://www.loom.com/embed/2b899ce09b694a6a8c8d2ea30ee273eb?sid=1965eae5-ff0c-49fd-9b84-75601dac1611)

From the Virtual Environment dashboard, go to **Faucet**.

1. Paste an address or addresses (1 address per line)
2. Enter the desired amount **in the nominal currency** (not WEI)
3. Pick the currency. It can be one of:
   * Network's native token
   * An existing ERC-20 token
   * Select **use custom token address** and paste the token's address
4. Click **Fund**.

## RPC unlimited faucet

You must use the **Admin RPC** URL to get access to the following RPC methods for manipulating account balances:

* [`tenderly_addBalance`](/virtual-environments/admin-rpc#tenderly_setbalance): Adds the balance to the provided account or accounts.
* [`tenderly_setBalance`](/virtual-environments/admin-rpc#tenderly_setbalance): Modifies the balance of an account or accounts.
* [`tenderly_setErc20Balance`](/virtual-environments/admin-rpc#tenderly_seterc20balance): Sets the token balance for the wallet on the provided erc20 contract. Does not emit a `Transfer` event.
* [`tenderly_addErc20Balance`](/virtual-environments/admin-rpc#tenderly_adderc20balance): Adds tokens to one or more wallets and emits a synthetic ERC-20 `Transfer` event for each funded account, use this when indexers or log-based tooling need to pick up the balance change.
* [`tenderly_setMaxErc20Balance`](/virtual-environments/admin-rpc#tenderly_setmaxerc20balance): Sets the maximum token balance for the wallet on the provided erc20 contract. Does not emit a `Transfer` event.

## Fund ERC-20 balance

To fund DAI tokens (`0x6B175474E89094C44Da98b954EedeAC495271d0F`) to accounts `["0x40BdB4497614bAe1A67061EE20AAdE3c2067AC9e", "0xBd8DaA414Fda8a8A129F7035e7496759C5aF8570"]`
with the value of `0xDE0B6B3A7640000`, run the following script that uses [`tenderly_setErc20Balance`](/virtual-environments/admin-rpc#tenderly_seterc20balance).

```bash showLineNumbers theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl $TENDERLY_VIRTUAL_TESTNET_RPC \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
        "jsonrpc": "2.0",
        "method": "tenderly_setErc20Balance",
        "params": [
        "0x6B175474E89094C44Da98b954EedeAC495271d0F",
        [
          "0x40BdB4497614bAe1A67061EE20AAdE3c2067AC9e",
          "0xBd8DaA414Fda8a8A129F7035e7496759C5aF8570"
        ],
        "0xDE0B6B3A7640000"
        ],
        "id": "1234"
    }'
```

## Fund native balance

You can fund the account `0xE58b9ee93700A616b50509C8292977FA7a0f8ce1` to value of `0xDE0B6B3A7640000` by running the following script that uses [`tenderly_setBalance`](/virtual-environments/admin-rpc#tenderly_setbalance).

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl $TENDERLY_VIRTUAL_TESTNET_RPC \
-X POST \
-H "Content-Type: application/json" \
-d '{
    "jsonrpc": "2.0",
    "method": "tenderly_setBalance",
    "params": [
      [
        "0xE58b9ee93700A616b50509C8292977FA7a0f8ce1",
        "0xBd8DaA414Fda8a8A129F7035e7496759C5aF8570"
        ],
      "0xDE0B6B3A7640000"
      ],
    "id": "1234"
}'
```

## Fund yield tokens

You can also fund staking tokens like stETH `0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84` on wallet address `0xb5f45E52649123117C175B2016Ed3fCd26f9bE06` by running the following script that uses [`tenderly_setMaxErc20Balance`](/virtual-environments/admin-rpc#tenderly_setmaxerc20balance).
The value will be set to the maximum possible uint256 value that the method algorithm calculates. At the moment it is not possible to predetermine the exact value.

```bash theme={"theme":{"light":"catppuccin-latte","dark":"catppuccin-mocha"}}
curl $TENDERLY_VIRTUAL_TESTNET_RPC \
-X POST \
-H "Content-Type: application/json" \
-d '{
  "id": 0,
  "jsonrpc": "2.0",
  "method": "tenderly_setMaxErc20Balance",
  "params": [
    "0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84",
    "0xb5f45E52649123117C175B2016Ed3fCd26f9bE06"
  ]
}'
```
