**Auto-route (tokens → gas):** If the deployer holds ERC-20 (e.g. USDT, USDC, LINK) on a chain but is short on native gas, you can use the deployer gas auto-route to get swap/bridge instructions or quotes. Run from repo root: `./scripts/deployment/deployer-gas-auto-route.sh` (optional: `--dry-run`, `--chain 138`). See [DEPLOYER_GAS_AUTO_ROUTE_RUNBOOK.md](DEPLOYER_GAS_AUTO_ROUTE_RUNBOOK.md).
Chain 138 is a **private Besu QBFT network**. There is no public faucet.
| Source | How | Notes |
|--------|-----|-------|
| **Genesis alloc** | Deployer may already be pre-funded in genesis.json | Check `smom-dbis-138/config/genesis.json` alloc section. If address is listed, funds exist at chain start. If balance is 0, chain may have been redeployed or funds spent. |
| **Transfer from genesis faucet** | Use a genesis-funded account's private key | Genesis alloc addresses (examples): `0xa55A4B57A91561e9df5a883D4883Bd4b1a7C4882` (GENESIS_FAUCET_1), others in genesis.json. If you have the private key for any funded account, send ETH to deployer: `cast send DEPLOYER_ADDRESS --value 10ether --rpc-url $RPC_URL_138 --private-key $FUNDING_PRIVATE_KEY` |
| **Validator transfer** | Use validator node account | If you control a validator, transfer ETH from its account to the deployer. |
| **Pre-fund in genesis** | Add deployer to genesis alloc, redeploy chain | For new chains or re-genesis; requires operator access to Besu nodes. |
**Chain 138 RPC URLs:**
- Admin/deploy (LAN): `http://192.168.11.211:8545` or `https://rpc-core.d-bis.org`
- Public: `https://rpc-http-pub.d-bis.org`
**Required for deploy:** ~0.006 ETH minimum (5M gas × 1 gwei + 20% buffer). Recommended: 1–2 ETH for future operations.
---
### Ethereum Mainnet
| Source | How | Notes |
|--------|-----|-------|
| **Exchange** | Buy ETH on Coinbase, Binance, etc.; withdraw to deployer address | Typical 1–2 hour confirmation. |
| **Bridge from L2** | Arbitrum, Optimism, Base → Mainnet | Use official bridges. |
| **Another wallet** | Send ETH from any funded wallet | |
**Required:** ~0.025 ETH minimum; recommended 0.05–0.20 ETH for deployment + buffer.
---
### Polygon, Base, Optimism, etc.
| Source | How | Notes |
|--------|-----|-------|
| **Exchange** | Buy MATIC/ETH; withdraw to deployer | |
| **Bridge** | Bridge from Ethereum or other chains | |
| **Testnet faucets** | Sepolia, Base Sepolia, Polygon Amoy | Use chain-specific faucets (e.g. sepoliafaucet.com, faucet.quicknode.com). |
---
### Testnets (Sepolia, Base Sepolia, Polygon Amoy)
**If you see "Replacement transaction underpriced":** A stuck transaction is blocking the deployer nonce. Options: (1) wait for it to be mined, (2) send a 0-ETH tx from MetaMask to advance nonce, (3) restart Besu RPC and flush mempool from Proxmox.