Fluora Balance
Check your USDC balance on Base Mainnet for the wallet configured in Fluora.
Quick Start
Run the balance check script:
CODEBLOCK0
The script will:
- 1. Read your mainnet wallet address from INLINECODE0
- Query the USDC balance on Base Mainnet
- Display the formatted balance
Script Details
Location: INLINECODE1
What it does:
- - Reads wallet address from
~/.fluora/wallets.json (USDCBASEMAINNET.address field) - Connects to Base Mainnet via INLINECODE3
- Queries USDC contract at INLINECODE4
- Returns formatted balance in USDC
Output format:
CODEBLOCK1
JSON output: Add --json flag for programmatic parsing:
CODEBLOCK2
Dependencies
The script requires ethers (v6+) for blockchain interaction:
CODEBLOCK3
Dependencies are listed in scripts/package.json.
Troubleshooting
Error: ~/.fluora/wallets.json not found
- - Ensure Fluora is properly set up
- Run the fluora-setup skill if needed
Error: No USDCBASEMAINNET wallet address found
- - Check that
wallets.json contains a USDC_BASE_MAINNET.address field - Regenerate wallet if necessary
Network errors
- - Verify internet connection
- Base Mainnet RPC may be temporarily unavailable (retry)
技能名称: fluora-balance
Fluora 余额查询
检查 Fluora 配置钱包在 Base 主网上的 USDC 余额。
快速开始
运行余额查询脚本:
bash
cd scripts/
npm install # 仅首次运行需要
node check_balance.js
该脚本将:
- 1. 从 ~/.fluora/wallets.json 读取主网钱包地址
- 查询 Base 主网上的 USDC 余额
- 显示格式化后的余额
脚本详情
位置: scripts/check_balance.js
功能说明:
- - 从 ~/.fluora/wallets.json 读取钱包地址(USDCBASEMAINNET.address 字段)
- 通过 https://mainnet.base.org 连接 Base 主网
- 查询地址为 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 的 USDC 合约
- 返回格式化的 USDC 余额
输出格式:
正在检查 Base 主网上的 USDC 余额...
钱包地址:0x7DC445b40719ab482090...
余额:1.234567 USDC
JSON 输出: 添加 --json 参数以便程序化解析:
bash
node check_balance.js --json
依赖项
该脚本需要 ethers(v6+)进行区块链交互:
bash
cd scripts/
npm install
依赖项列在 scripts/package.json 中。
故障排除
错误:未找到 ~/.fluora/wallets.json
- - 确保 Fluora 已正确设置
- 如有需要,运行 fluora-setup 技能
错误:未找到 USDCBASEMAINNET 钱包地址
- - 检查 wallets.json 是否包含 USDCBASEMAINNET.address 字段
- 如有必要,重新生成钱包
网络错误
- - 检查网络连接
- Base 主网 RPC 可能暂时不可用(请重试)