https://github.com/ginmu/swtc-transaction-util
shell for wallet operation and transaction, only for Jingtum chain 命令行钱包操作和交易工具(仅针对Jingtum)
https://github.com/ginmu/swtc-transaction-util
Last synced: about 1 month ago
JSON representation
shell for wallet operation and transaction, only for Jingtum chain 命令行钱包操作和交易工具(仅针对Jingtum)
- Host: GitHub
- URL: https://github.com/ginmu/swtc-transaction-util
- Owner: GinMu
- License: mit
- Created: 2019-10-28T05:35:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-07T07:04:40.000Z (5 months ago)
- Last Synced: 2025-03-29T17:35:56.858Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swtc-transaction-util
shell for wallet operation and transaction, only for Jingtum chain
命令行钱包操作和交易工具(仅针对Jingtum)
## Shell Commander
```bash
# 生成keystore文件
secret #钱包秘钥
password #密码
node generate-keystore.js -s $secret -p $password# 创建挂单
# 0.004cnt/swt买2个swt
address #钱包地址
password #密码
counter="cny"
base="swt"
price="0.004"
amount="2"
type="buy"node create-order.js -A $address -P $password -c $counter -b $base -p $price -a $amount -t $type
# 0.006cnt/swt卖3个swt
address #钱包地址
password #密码
counter="cny"
base="swt"
price="0.006"
amount="3"
type="sell"
node create-order.js -A $address -P $password -c $counter -b $base -p $price -a $amount -t $type# 取消所有挂单
address #钱包地址
password #密码node cancel-orders.js -A $address -P $password
# 转移所有资产
# 针对转入钱包地址未激活的case, 未处理, 操作前请确保激活
address #钱包地址
password #密码
to #转入钱包地址node transfer-all-tokens.js -A $address -P $password -t $to
# 转账
address #钱包地址
password #密码
to #转入钱包地址
currency #币种名称
amount #数量node transfer.js -A $address -P $password -t $to -c $currency -a $amount
```