wallet - UCHAIN-WORLD/uchain-fullnode GitHub Wiki
title: wallet
Command list
-
Generate a new wallet from this wallet.createwallet- Parameters (named)
-lor[--language]Options are 'en', 'es', 'ja', 'zh_Hans', 'zh_Hant' and 'any', defaults to 'en'.
- Parameters (positional)
WALLET_NAMEWallet name.WALLET_AUTHWallet 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" }
-
checkwalletinfoList 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_NAMEWallet name.WALLET_AUTHWallet password/authorization.LASTWORDThe 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)
-ior[--hd_index]Teh HD index for the wallet.-lor[--language]The language identifier of the dictionary of the mnemonic. Options are 'en', 'es', 'ja', 'zh_Hans', 'zh_Hant' and 'any', defaults to 'any'.-nor[--walletname]Wallet name.-por[--password]Wallet password.
- Parameters (positional)
WORDThe 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" }
-
changepasschange password of your specified wallet
- Parameters (named)
-por[--password]New password/authorization.
- Parameters (positional)
WALLET_NAMEWallet name.WALLET_AUTHWallet password/authorization.
- Example
$ uc-cli changepass -p 456789 tony4 123456 { "name" : "tony4", "status" : "changed successfully" }
-
Generate new address for this wallet.addaddress- Parameters (named)
-nor[--number]The address count.-oor[--operation]The operation[ add|del ] to the target node address, default: add.
- Parameters (positional)
WALLET_NAMEWallet name.WALLET_AUTHWallet password/authorization.
- Example
$ uc-cli addaddress tony4 456789 [ "Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48" ]
-
validate addressvalidateaddress- Parameters (positional)
PAYMENT_ADDRESSValid 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_NAMEWallet name.WALLET_AUTHWallet password/authorization.
- Example
uc-cli showaddresses tony4 456789 [ "Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48", "UVgjjVHYn9XF72dXW2mdYEFWHA1qNziyNb", "UfEUeYUPL8pNW7g8taDQKbHjuawSwFJXiX" ]
-
export wallet as fileexportkeyfile- Parameters (named)
-dor[--data]If specified, the keyfile content will be append to the report, rather than to local file specified by DESTINATION.
- Parameters (positional)
WALLET_NAMEWallet name.WALLET_AUTHWallet password/authorization. This is also used to encrypt the keyfile.LASTWORDThe last word of your master private-key phrase.DESTINATIONThe 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_NAMEWallet name.WALLET_AUTHWallet password/authorization. This is also used to decrypt the keyfile.FILEkey file path.FILECONTENTkey file content. This will omit theFILEargument if specified.
- Example
$ uc-cli importkeyfile tony4 456789 /home/tony/tony4.json { "addresses" : [ "Ud9wuztAThNroNnTRR7TFR8AiEMbWcJM48", "UfEUeYUPL8pNW7g8taDQKbHjuawSwFJXiX", "UVgjjVHYn9XF72dXW2mdYEFWHA1qNziyNb" ], "name" : "tony4" }