mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-17 01:14:40 +08:00
feat(docs): add Hyperliquid Agent Wallet tutorial for all languages (#935)
- Add comprehensive Hyperliquid Agent Wallet setup guide with referral link - Update all 5 language versions (EN, ZH, JA, RU, UK) - Remove "Alternative" prefix from Hyperliquid and Aster DEX section titles - Remove direct wallet method, only recommend secure Agent Wallet approach - Include step-by-step registration, funding, and agent wallet creation - Add security warnings and best practices for all languages 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: tinkle <tinkle@tinkle.community> Co-authored-by: tinkle-community <tinklefund@gmail.com>
This commit is contained in:
@@ -482,18 +482,82 @@ cp config.json.example config.json
|
||||
|
||||
---
|
||||
|
||||
#### 🔷 备选:使用Hyperliquid交易所
|
||||
#### 🔷 使用Hyperliquid交易所
|
||||
|
||||
**NOFX也支持Hyperliquid** - 去中心化永续期货交易所。使用Hyperliquid而非Binance:
|
||||
### 📝 注册与设置指南
|
||||
|
||||
**步骤1**:获取以太坊私钥(用于Hyperliquid身份验证)
|
||||
**步骤1:注册Hyperliquid账户**
|
||||
|
||||
1. 打开**MetaMask**(或任何以太坊钱包)
|
||||
2. 导出你的私钥
|
||||
3. **去掉`0x`前缀**
|
||||
4. 在[Hyperliquid](https://hyperliquid.xyz)上为钱包充值
|
||||
1. **通过邀请链接访问Hyperliquid**(享受优惠!):
|
||||
|
||||
~~**步骤2**:为Hyperliquid配置`config.json`~~ *通过Web界面配置*
|
||||
**🎁 [注册Hyperliquid - 加入AITRADING](https://app.hyperliquid.xyz/join/AITRADING)**
|
||||
|
||||
2. **连接你的钱包**:
|
||||
- 点击右上角"Connect Wallet"
|
||||
- 选择MetaMask、WalletConnect或其他Web3钱包
|
||||
- 批准连接
|
||||
|
||||
3. **启用交易**:
|
||||
- 首次连接会提示你签名消息
|
||||
- 这会授权你的钱包进行交易(无gas费)
|
||||
- 你将看到钱包地址显示出来
|
||||
|
||||
**步骤2:为钱包充值**
|
||||
|
||||
1. **将资产桥接到Arbitrum**:
|
||||
- Hyperliquid运行在Arbitrum L2上
|
||||
- 从以太坊主网或其他链桥接USDC
|
||||
- 或者直接从交易所提现USDC到Arbitrum
|
||||
|
||||
2. **充值到Hyperliquid**:
|
||||
- 在Hyperliquid界面点击"Deposit"
|
||||
- 选择要充值的USDC数量
|
||||
- 确认交易(Arbitrum上的小额gas费)
|
||||
- 资金会在几秒内到达你的Hyperliquid账户
|
||||
|
||||
**步骤3:设置代理钱包(推荐)**
|
||||
|
||||
Hyperliquid支持**代理钱包**功能 - 专门用于交易自动化的安全子钱包!
|
||||
|
||||
⚠️ **为什么使用代理钱包:**
|
||||
- ✅ **更安全**:永远不暴露主钱包私钥
|
||||
- ✅ **权限受限**:代理钱包只有交易权限
|
||||
- ✅ **可随时撤销**:可从Hyperliquid界面随时禁用
|
||||
- ✅ **资金隔离**:保持主要资产安全
|
||||
|
||||
**如何创建代理钱包:**
|
||||
|
||||
1. **登录Hyperliquid**,使用你的主钱包
|
||||
- 访问 [https://app.hyperliquid.xyz](https://app.hyperliquid.xyz)
|
||||
- 连接你注册时使用的钱包(来自邀请链接)
|
||||
|
||||
2. **进入代理设置**:
|
||||
- 点击钱包地址(右上角)
|
||||
- 进入"Settings" → "API & Agents"
|
||||
- 或直接访问:[https://app.hyperliquid.xyz/agents](https://app.hyperliquid.xyz/agents)
|
||||
|
||||
3. **创建新代理**:
|
||||
- 点击"Create Agent"或"Add Agent"
|
||||
- 系统会自动生成新的代理钱包
|
||||
- **保存代理钱包地址**(以`0x`开头)
|
||||
- **保存代理私钥**(仅显示一次!)
|
||||
|
||||
4. **代理钱包详情**:
|
||||
- 主钱包:你连接的钱包(持有资金)
|
||||
- 代理钱包:用于交易的子钱包(NOFX将使用此钱包)
|
||||
- 私钥:仅用于NOFX配置
|
||||
|
||||
5. **为代理充值**(可选):
|
||||
- 从主钱包转账USDC到代理钱包
|
||||
- 或保持资金在主钱包(代理可以从主钱包交易)
|
||||
|
||||
6. **保存NOFX配置凭据**:
|
||||
- 主钱包地址:`0xYourMainWalletAddress`(保留`0x`前缀)
|
||||
- 代理私钥:`YourAgentPrivateKeyWithout0x`(去掉`0x`前缀)
|
||||
|
||||
---
|
||||
|
||||
~~**配置`config.json`**~~ *通过Web界面配置*
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -504,8 +568,8 @@ cp config.json.example config.json
|
||||
"enabled": true,
|
||||
"ai_model": "deepseek",
|
||||
"exchange": "hyperliquid",
|
||||
"hyperliquid_private_key": "your_private_key_without_0x",
|
||||
"hyperliquid_wallet_addr": "your_ethereum_address",
|
||||
"hyperliquid_private_key": "your_agent_private_key_without_0x",
|
||||
"hyperliquid_wallet_addr": "0xYourMainWalletAddress",
|
||||
"hyperliquid_testnet": false,
|
||||
"deepseek_key": "sk-xxxxxxxxxxxxx",
|
||||
"initial_balance": 1000.0,
|
||||
@@ -517,18 +581,23 @@ cp config.json.example config.json
|
||||
}
|
||||
```
|
||||
|
||||
**与Binance配置的关键区别:**
|
||||
- 用`hyperliquid_private_key`替换`binance_api_key` + `binance_secret_key`
|
||||
- 添加`"exchange": "hyperliquid"`字段
|
||||
- 设置`hyperliquid_testnet: false`用于主网(或`true`用于测试网)
|
||||
**关键配置字段:**
|
||||
- `"exchange": "hyperliquid"` - 设置交易所为Hyperliquid
|
||||
- `hyperliquid_private_key` - 代理钱包私钥(去掉`0x`前缀)
|
||||
- `hyperliquid_wallet_addr` - 主钱包地址(保留`0x`前缀)
|
||||
- `hyperliquid_testnet: false` - 使用主网(设为`true`使用测试网)
|
||||
|
||||
**⚠️ 安全警告**:切勿分享你的私钥!使用专门的钱包进行交易,而非主钱包。
|
||||
**⚠️ 安全提示**:
|
||||
- 优先使用代理钱包而非主钱包私钥
|
||||
- 切勿分享你的私钥
|
||||
- 可以随时从Hyperliquid界面撤销代理权限
|
||||
- 定期检查代理钱包活动
|
||||
|
||||
---
|
||||
|
||||
#### 🔶 备选:使用Aster DEX交易所
|
||||
#### 🔶 使用Aster DEX交易所
|
||||
|
||||
**NOFX也支持Aster DEX** - 兼容Binance的去中心化永续期货交易所!
|
||||
**NOFX支持Aster DEX** - 兼容Binance的去中心化永续期货交易所!
|
||||
|
||||
**为什么选择Aster?**
|
||||
- 🎯 兼容Binance API(轻松迁移)
|
||||
|
||||
Reference in New Issue
Block a user