apow-cli 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard.js +1 -1
- package/package.json +1 -1
- package/skill.md +8 -8
package/dist/dashboard.js
CHANGED
|
@@ -50,7 +50,7 @@ const AgentCoinAbi = AgentCoin_json_1.default;
|
|
|
50
50
|
const MiningAgentAbi = MiningAgent_json_1.default;
|
|
51
51
|
const RARITY_LABELS = ["Common", "Uncommon", "Rare", "Epic", "Mythic"];
|
|
52
52
|
const ADDR_RE = /^0x[0-9a-fA-F]{40}$/;
|
|
53
|
-
const DEFAULT_RPC = ""; // No default public RPC —
|
|
53
|
+
const DEFAULT_RPC = ""; // No default public RPC — user must set RPC_URL or USE_X402
|
|
54
54
|
const FLEETS_PATH = (0, node_path_1.join)(process.env.HOME ?? "", ".apow", "fleets.json");
|
|
55
55
|
// --- Wallet / Fleet loading ---
|
|
56
56
|
function isAddress(s) {
|
package/package.json
CHANGED
package/skill.md
CHANGED
|
@@ -60,10 +60,10 @@ npx apow-cli wallet new
|
|
|
60
60
|
# 2. Write .env directly (no interactive prompts needed)
|
|
61
61
|
# LLM config is only needed for minting (one-time); mining uses algorithmic SMHL.
|
|
62
62
|
# IMPORTANT: Use an API-based provider for minting (openai/anthropic/gemini/deepseek/qwen).
|
|
63
|
-
#
|
|
63
|
+
# RPC: set RPC_URL (free from Alchemy) or USE_X402=true (auto-pay $10 USDC via QuickNode).
|
|
64
64
|
cat > .env << 'EOF'
|
|
65
65
|
PRIVATE_KEY=0x<from step 1>
|
|
66
|
-
RPC_URL=https://mainnet.
|
|
66
|
+
RPC_URL=https://base-mainnet.g.alchemy.com/v2/YOUR_KEY # Free from alchemy.com (recommended)
|
|
67
67
|
LLM_PROVIDER=openai # Required for minting only
|
|
68
68
|
LLM_MODEL=gpt-4o-mini # Required for minting only
|
|
69
69
|
LLM_API_KEY=<your key> # Required for minting only
|
|
@@ -244,9 +244,9 @@ LLM_MODEL=gpt-4o-mini
|
|
|
244
244
|
|
|
245
245
|
# === Network ===
|
|
246
246
|
|
|
247
|
-
# Base RPC endpoint.
|
|
248
|
-
#
|
|
249
|
-
RPC_URL=https://mainnet.
|
|
247
|
+
# Base RPC endpoint (required). Get a free URL from alchemy.com (no credit card).
|
|
248
|
+
# Or set USE_X402=true instead for auto-pay via QuickNode ($10 USDC for ~1M calls).
|
|
249
|
+
RPC_URL=https://base-mainnet.g.alchemy.com/v2/YOUR_KEY
|
|
250
250
|
|
|
251
251
|
# Chain: "base" | "baseSepolia" (auto-detected from RPC_URL if omitted)
|
|
252
252
|
CHAIN=base
|
|
@@ -286,7 +286,7 @@ CHAIN=base
|
|
|
286
286
|
|
|
287
287
|
### RPC Recommendations
|
|
288
288
|
|
|
289
|
-
The
|
|
289
|
+
You need a dedicated RPC endpoint. The public `https://mainnet.base.org` has aggressive rate limits and **will** fail during sustained mining. All providers below offer a **free tier** that is more than sufficient for mining. Alternatively, set `USE_X402=true` for zero-setup auto-pay via QuickNode ($10 USDC for ~1M calls).
|
|
290
290
|
|
|
291
291
|
#### Option 1: Alchemy (Recommended)
|
|
292
292
|
|
|
@@ -517,7 +517,7 @@ pm2 logs
|
|
|
517
517
|
|
|
518
518
|
**Economics of multi-wallet mining:** Failed `mine()` calls still cost gas (~0.001 ETH). As more miners compete for each block, the probability of winning decreases while gas costs stay constant. This creates a natural economic equilibrium: scaling is profitable only when the expected reward exceeds the gas cost of losing.
|
|
519
519
|
|
|
520
|
-
**RPC rate limits:** For 3+ concurrent miners, use a dedicated RPC endpoint (Alchemy, Infura, QuickNode)
|
|
520
|
+
**RPC rate limits:** For 3+ concurrent miners, use a dedicated RPC endpoint (Alchemy, Infura, QuickNode). Free public RPCs will not handle the load.
|
|
521
521
|
|
|
522
522
|
**Want more hash power?** The nonce grinder scales linearly with CPU cores. Rent a high-core-count machine on [vast.ai](https://vast.ai/) to increase throughput. Not required, but effective for competitive mining.
|
|
523
523
|
|
|
@@ -620,7 +620,7 @@ The CLI contains no analytics, no error reporting, and no phone-home behavior of
|
|
|
620
620
|
|
|
621
621
|
The CLI makes only these network calls:
|
|
622
622
|
|
|
623
|
-
1. **Blockchain RPC** (to user-configured RPC URL
|
|
623
|
+
1. **Blockchain RPC** (to user-configured RPC URL or QuickNode x402): standard `eth_call`, `eth_sendRawTransaction`, etc.
|
|
624
624
|
2. **LLM API** (to user-configured provider): sends only word-puzzle prompts for SMHL solving, never wallet data
|
|
625
625
|
3. **Bridge APIs** (only when using `apow fund`):
|
|
626
626
|
- **CoinGecko** (`api.coingecko.com`): SOL/ETH price quotes
|