wallet - UCHAIN-WORLD/uchain-fullnode GitHub Wiki
title: wallet
Command list
-
Generate a new wallet from this wallet.createwallet
- Parameters (named)
-l
or[--language]
Options are 'en', 'es', 'ja', 'zh_Hans', 'zh_Hant' and 'any', defaults to 'en'.
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization.
- Example
$ uc-cli createwallet tony4 123456 { "addresses" : [ "UVgjjVHYn9XF72dXW2mdYEFWHA1qNziyNb" ], "mnemonic" : "replace loud gym claim final general emotion leisure kingdom solid essence wedding walnut old surge sell bachelor brother adult creek wine unfold arrow roof", "name" : "tony4" }
-
checkwalletinfo
List a brief information of the wallet.
- Parameters (positional)
- "WALLET_NAME" Wallet name.
- "WALLET_AUTH" Wallet password/authorization.
- "LASTWORD" The last word of your mnemonic words.
- Example
$ uc-cli checkwalletinfo tony4 123456 roof { "address_count" : 1, "mnemonic" : "replace loud gym claim final general emotion leisure kingdom solid essence wedding walnut old surge sell bachelor brother adult creek wine unfold arrow roof", "name" : "tony4" }
-
deletewalletdeletewallet
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization.LASTWORD
The last word of your private-key phrase.
- Example
$ ./bin/uc-cli deletewallet tony4 123456 roof { "name" : "tony4", "status" : "removed successfully" }
-
importwallet using mnemonic wordimportwallet
- Parameters (named)
-i
or[--hd_index]
Teh HD index for the wallet.-l
or[--language]
The language identifier of the dictionary of the mnemonic. Options are 'en', 'es', 'ja', 'zh_Hans', 'zh_Hant' and 'any', defaults to 'any'.-n
or[--walletname]
Wallet name.-p
or[--password]
Wallet password.
- Parameters (positional)
WORD
The set of words that that make up the mnemonic. If not specified the words are read from STDIN.
- Example
$ uc-cli importwallet -n tony4 -p 123456 -i 2 replace loud gym claim final general emotion leisure kingdom solid essence wedding walnut old surge sell bachelor brother adult creek wine unfold arrow roof { "addresses" : [ "UVgjjVHYn9XF72dXW2mdYEFWHA1qNziyNb", "UfEUeYUPL8pNW7g8taDQKbHjuawSwFJXiX" ], "mnemonic" : "replace loud gym claim final general emotion leisure kingdom solid essence wedding walnut old surge sell bachelor brother adult creek wine unfold arrow roof", "name" : "tony4" }
-
changepass
change password of your specified wallet
- Parameters (named)
-p
or[--password]
New password/authorization.
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization.
- Example
$ uc-cli changepass -p 456789 tony4 123456 { "name" : "tony4", "status" : "changed successfully" }
-
Generate new address for this wallet.addaddress
- Parameters (named)
-n
or[--number]
The address count.-o
or[--operation]
The operation[ add|del ] to the target node address, default: add.
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization.
- Example
$ uc-cli addaddress tony4 456789 [ "Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48" ]
-
validate addressvalidateaddress
- Parameters (positional)
PAYMENT_ADDRESS
Valid payment address. If not specified the address is read from STDIN.
- Example
$ uc-cli validateaddress Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48 { "address_type" : "p2kh(main-net)", "is_valid" : true, "message" : "valid address", "testnet" : false }
-
List available addresses of this wallet.showaddresses
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization.
- Example
uc-cli showaddresses tony4 456789 [ "Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48", "UVgjjVHYn9XF72dXW2mdYEFWHA1qNziyNb", "UfEUeYUPL8pNW7g8taDQKbHjuawSwFJXiX" ]
-
export wallet as fileexportkeyfile
- Parameters (named)
-d
or[--data]
If specified, the keyfile content will be append to the report, rather than to local file specified by DESTINATION.
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization. This is also used to encrypt the keyfile.LASTWORD
The last word of your master private-key phrase.DESTINATION
The keyfile storage path to.
- Example
$ uc-cli exportkeyfile tony4 456789 roof "/home/tony/tony4.json" /home/tony/tony4.json
-
import wallet from fileimportkeyfile
- Parameters (positional)
WALLET_NAME
Wallet name.WALLET_AUTH
Wallet password/authorization. This is also used to decrypt the keyfile.FILE
key file path.FILECONTENT
key file content. This will omit theFILE
argument if specified.
- Example
$ uc-cli importkeyfile tony4 456789 /home/tony/tony4.json { "addresses" : [ "Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48", "UfEUeYUPL8pNW7g8taDQKbHjuawSwFJXiX", "UVgjjVHYn9XF72dXW2mdYEFWHA1qNziyNb" ], "name" : "tony4" }