Below is a list of common commands for the 6Zip coin console wallet. Each command includes a brief description and an example of how it can be used.
getinfo
Returns an object containing various information about the 6Zip node, such as version, protocol, and network details.
getinfo
{ "version": 160200, "protocolversion": 70015, "walletversion": 160000, "blocks": 100000, "timeoffset": 0, "connections": 8, "proxy": "", "difficulty": 1.234, "testnet": false, "keypoololdest": 1622521568, "keypoolsize": 101, "paytxfee": 0.0001, "relayfee": 0.00001, "errors": "" }
getblockchaininfo
Provides details about the blockchain, including the current height, difficulty, and more.
getblockchaininfo
{ "chain": "main", "blocks": 100000, "headers": 100000, "bestblockhash": "00000000000000000007f2f0e1bdb000ab04001b38d8fbbf1fc25c5c50d8b9b5", "difficulty": 1.234, "mediantime": 1622524560, "verificationprogress": 1.000, "initialblockdownload": false, "chainwork": "00000000000000000000000000000000000000000000000000000000000f6c0", "size_on_disk": 300000000000, "pruned": false, "softforks": {...}, "bip9_softforks": {...} }
getwalletinfo
Returns details about the wallet, including balance, unconfirmed transactions, and more.
getwalletinfo
{ "walletversion": 160000, "balance": 123.456, "unconfirmed_balance": 0.789, "immature_balance": 0.000, "txcount": 1000, "keypoololdest": 1622521568, "keypoolsize": 101, "paytxfee": 0.0001, "relayfee": 0.00001, "total_received": 150.000, "total_sent": 50.000 }
sendtoaddress
Sends a specified amount of 6Zip to a given address.
sendtoaddress <address> <amount> [comment] [comment-to]
sendtoaddress "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9" 1.23 "Payment for services" "John Doe"
listtransactions
Lists recent transactions. Can include parameters to limit the number of transactions returned.
listtransactions [account] [count] [from] [include_watchonly]
listtransactions "*" 10 0 true
gettransaction
Returns details about a specific transaction by its transaction ID.
gettransaction <txid>
gettransaction "5d4b7f2e6b2a7e3a5b6e9b2a6c4d1a0f4b8e9d2e3a7f8d0b6c2f0a4e8d2c5d0f1"
listaddressgroupings
Lists all address groupings in the wallet. Addresses are grouped by their usage in transactions.
listaddressgroupings
[ [ [ "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9", 1.23 ], [ "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9", 0.45 ] ], [ [ "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9", 2.34 ] ] ]
getblock
Returns information about a block by block hash or block number.
getblock <blockhash> [verbosity]
getblock "00000000000000000007f2f0e1bdb000ab04001b38d8fbbf1fc25c5c50d8b9b5" 2
getrawtransaction
Returns the raw data of a transaction given its transaction ID.
getrawtransaction <txid> [verbose]
getrawtransaction "5d4b7f2e6b2a7e3a5b6e9b2a6c4d1a0f4b8e9d2e3a7f8d0b6c2f0a4e8d2c5d0f1" 1
backupwallet
Creates a backup of the wallet file to a specified location.
backupwallet <destination>
backupwallet "/home/user/zipwalletbackup.dat"
importprivkey
Imports a private key into the wallet.
importprivkey <privkey> [label] [rescan]
importprivkey "L5Q7y7S7H8Lxh5J3juf2yJp7Z4d8Zs9tPE7GjHV9aThH6htjx1H" "mykey" true
removeprunedfunds
Removes funds from the wallet that are no longer available due to pruning.
removeprunedfunds
removeprunedfunds