|
|
@@ -24,21 +24,19 @@
|
|
|
# 使用自定义手续费
|
|
|
./quick_consolidate.sh --fee 2
|
|
|
|
|
|
-# 归集到指定地址
|
|
|
+# 归集到指定地址(归集同时转帐)
|
|
|
./quick_consolidate.sh --recipient "33zmSubiizyAVzeSfKbVtLMKifm5u6VaTt9wae5K4CT6h5PLXovecjYwxwDXuzfKVsuefe1wh2VJVHAh4nbA53zBiXKf2Nc3fN3sVmZpmPWneUYGbWcXKzhmN714DVbzaS9U"
|
|
|
|
|
|
-# 使用自定义主公钥
|
|
|
-./quick_consolidate.sh --master-pubkey "YOUR_MASTER_PUBKEY"
|
|
|
+
|
|
|
```
|
|
|
|
|
|
## 工作原理
|
|
|
|
|
|
### 归集流程
|
|
|
|
|
|
-1. **扫描余额**: 使用 `nockchain-wallet scan` 更新本地UTXO余额
|
|
|
-2. **获取notes**: 使用 `nockchain-wallet list-notes` 获取所有可用notes
|
|
|
-3. **计算参数**: 解析notes信息,计算总余额和手续费
|
|
|
-4. **创建交易**: 使用 `nockchain-wallet create-tx` 创建归集交易
|
|
|
+1. **获取notes**: 使用 `nockchain-wallet list-notes` 获取所有可用notes
|
|
|
+2. **计算参数**: 解析notes信息,计算总余额和手续费
|
|
|
+3. **创建交易**: 使用 `nockchain-wallet create-tx` 创建归集交易
|
|
|
|
|
|
### 手续费处理
|
|
|
|
|
|
@@ -87,3 +85,12 @@
|
|
|
[INFO] 手续费: 1 nicks
|
|
|
[SUCCESS] 归集完成!归集了 2 个notes,总金额: 944809 nicks
|
|
|
```
|
|
|
+
|
|
|
+## 签名交易
|
|
|
+
|
|
|
+归集完成后会在当前文件夹生成txs目录,目录内有生成的.tx文件。
|
|
|
+
|
|
|
+将交易广播到链上需要运行命令
|
|
|
+
|
|
|
+`nockchain-wallet send-tx txs/xxxxxxxxxxxxxx.tx`
|
|
|
+
|