CLI
Faucet
Fund native tokens and mint ERC-20 tokens
Fund wallets inside a BuildBear sandbox — drop native tokens (ETH, MATIC, etc.) or mint ERC-20 tokens to any address.
[!NOTE] Faucet commands only work on live sandboxes. Run
buildbear statusfirst if you are unsure.
faucet native
Fund native tokens to a wallet address.
Arguments:
| Argument | Required | Description |
|---|---|---|
rpcUrl | No | BuildBear RPC URL. If omitted, reads from .buildbear.json |
Options:
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--address <walletAddress> | string | — | Yes | Wallet address to receive funds |
--amount <amountInEther> | string | 1 | No | Amount in ether (e.g. 10, 0.5) |
--json | flag | — | No | Output as JSON |
--quiet | flag | — | No | Suppress output except errors |
Examples:
Output:
JSON output:
faucet erc20
Mint ERC-20 tokens to a wallet address.
Arguments:
| Argument | Required | Description |
|---|---|---|
rpcUrl | No | BuildBear RPC URL. If omitted, reads from .buildbear.json |
Options:
| Flag | Type | Default | Required | Description |
|---|---|---|---|---|
--token <contractAddress> | string | — | Yes | ERC-20 token contract address |
--address <walletAddress> | string | — | Yes | Wallet address to receive tokens |
--amount <amount> | string | 1000 | No | Token amount (in token units, not wei) |
--json | flag | — | No | Output as JSON |
--quiet | flag | — | No | Suppress output except errors |
Examples:
Output:
JSON output:
How it works
Both faucet commands use BuildBear custom RPC methods that bypass the normal blockchain rules inside a sandbox:
buildbear_nativeFaucet— directly sets the native balance of an addressbuildbear_ERC20Faucet— mints ERC-20 tokens to an address without requiring the token owner's signature
These methods are only available on BuildBear sandboxes and will not work against public RPC endpoints.