1.0.1 • Published 3 years ago
coldwallet-cli v1.0.1
coldwallet-cli
Cold Wallet CLI For ChuiDylan
Usage
$ npm install -g coldwallet-cli
$ coldwallet-cli COMMAND
running command...
$ coldwallet-cli (-v|--version|version)
coldwallet-cli/1.0.1 darwin-x64 node-v14.15.0
$ coldwallet-cli --help [COMMAND]
USAGE
$ coldwallet-cli COMMAND
...
Commands
coldwallet-cli address:find
coldwallet-cli address:upsert
coldwallet-cli curl
coldwallet-cli ethereum:decode
coldwallet-cli ethereum:getnonce
coldwallet-cli hello
coldwallet-cli help [COMMAND]
coldwallet-cli utxo:compose
coldwallet-cli utxo:sync
coldwallet-cli utxo:verify
coldwallet-cli address:find
Get cold-wallet and hot-wallet address
USAGE
$ coldwallet-cli address:find
OPTIONS
-c, --currency=currency [default: btc] currency
-p, --platform=platform [default: global] platform of address
-s, --state=state [default: 1] address state
--address=address cold wallet address
--columns=columns specified column
--extended show extended table column
--filter=filter data filter
EXAMPLES
$ coldwallet-cli address:find
$ coldwallet-cli address:find --address 2MMWHUWrXVzSGAMKaeVS1JqdykckCEc62x
$ coldwallet-cli help address:find
See code: src/commands/address/find.js
coldwallet-cli address:upsert
Insert or update address
USAGE
$ coldwallet-cli address:upsert
OPTIONS
-a, --address=address (required) cold wallet address
-c, --currency=currency [default: btc] currency
-h, --hotAddr=hotAddr (required) hot wallet address
-p, --platform=platform [default: global] address platform
-s, --state=state [default: 1] address state
EXAMPLES
$ coldwallet-cli address:upsert -c bch -p korea -a cold-address -h hot-address
$ coldwallet-cli help address:upsert
See code: src/commands/address/upsert.js
coldwallet-cli curl
Test node url is available or not
USAGE
$ coldwallet-cli curl
OPTIONS
--url=url (required) node url
See code: src/commands/curl.js
coldwallet-cli ethereum:decode
Eth raw transaction data decode utils
USAGE
$ coldwallet-cli ethereum:decode
OPTIONS
-t, --types=types [default: ["address","uint256"]] contract function params type array(string)
--data=data (required) ETH raw tx data
EXAMPLES
$ coldwallet-cli ethereum:decode --data 0xabcdefg....
$ coldwallet-cli ethereum:decode --data 0xabcdefg.... -t '["address","uint256"]'
$ coldwallet-cli help ethereum:decode
See code: src/commands/ethereum/decode.js
coldwallet-cli ethereum:getnonce
Get address nonce
USAGE
$ coldwallet-cli ethereum:getnonce
OPTIONS
-a, --address=address (required) ethereum address
--nodeUrl=nodeUrl ethereum node url
EXAMPLES
$ coldwallet-cli ethereum:getnonce -a 0xDc76...3aD58648900D3
$ coldwallet-cli ethereum:getnonce -a 0xDc76...3aD58648900D3 --nodeUrl==http://example.com
$ coldwallet-cli help ethereum:getnonce
See code: src/commands/ethereum/getnonce.js
coldwallet-cli hello
Hello {Name} | world
USAGE
$ coldwallet-cli hello
OPTIONS
-n, --name=name name to print
See code: src/commands/hello.js
coldwallet-cli help [COMMAND]
display help for coldwallet-cli
USAGE
$ coldwallet-cli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
coldwallet-cli utxo:compose
Compose address UTXO list into file(currency.utxos)
USAGE
$ coldwallet-cli utxo:compose
OPTIONS
-a, --address=address (required) address
-c, --currency=currency [default: btc] currency
-o, --outDir=outDir utxo output dir default(Desktop/utxos)
-p, --platform=platform [default: global] address platform
-t, --counts=counts [default: 1] The counts of utxo file
--amount=amount (required) total transaction amount
--isPreSign is pre-sign or not
--minFee=minFee [default: 50000] minium tx fee
EXAMPLES
$ coldwallet-cli utxo:compose -a address --amount=0.001
$ coldwallet-cli utxo:compose -a address --amount=0.002 --isPreSign --counts 3 --minFee=10000
$ coldwallet-cli help utxo:compose
See code: src/commands/utxo/compose.js
coldwallet-cli utxo:sync
Sync currency all unspent transaction outputs
USAGE
$ coldwallet-cli utxo:sync
OPTIONS
-a, --address=address (required) address
-c, --currency=currency [default: btc] currency
-p, --platform=platform [default: global] platform of address
EXAMPLES
$ coldwallet-cli utxo:sync -a 3BBWHUWrXVzSGAMKaeVS1JqdykckCEc62C
$ coldwallet-cli utxo:sync -a 3BBWHUWrXVzSGAMKaeVS1JqdykckCEc62C -c ltc -p korea
$ coldwallet-cli help utxo:sync
See code: src/commands/utxo/sync.js
coldwallet-cli utxo:verify
UTXOs verification
USAGE
$ coldwallet-cli utxo:verify
OPTIONS
-a, --address=address extra address
-c, --currency=currency [default: btc] currency
-f, --inputDir=inputDir utxo verify dir default(Desktop/utxos)
-p, --platform=platform [default: global] address platform
--nodeUrl=nodeUrl (required) node url with auth credential
DESCRIPTION
BCH/LTC/MONA can not verify the vout have been spent or not
EXAMPLES
$ coldwallet-cli utxo:verify --currency bch --nodeUrl=xxxxx
$ coldwallet-cli utxo:verify --currency bch --inputDir=/Users/xuzhijian/Desktop/utxo2s --nodeUrl=xxxx
See code: src/commands/utxo/verify.js