My Blockchain Project

6Zip Coin Console Wallet Commands

Running the 6zip-cli wallet

Get Involved
6Zip Coin Console Wallet Commands

6Zip Coin Console Wallet Commands

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.

1. getinfo

Returns an object containing various information about the 6Zip node, such as version, protocol, and network details.

getinfo
Example:
{ "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": "" }

2. getblockchaininfo

Provides details about the blockchain, including the current height, difficulty, and more.

getblockchaininfo
Example:
{ "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": {...} }

3. getwalletinfo

Returns details about the wallet, including balance, unconfirmed transactions, and more.

getwalletinfo
Example:
{ "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 }

4. sendtoaddress

Sends a specified amount of 6Zip to a given address.

sendtoaddress <address> <amount> [comment] [comment-to]
Example:
sendtoaddress "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9" 1.23 "Payment for services" "John Doe"

5. listtransactions

Lists recent transactions. Can include parameters to limit the number of transactions returned.

listtransactions [account] [count] [from] [include_watchonly]
Example:
listtransactions "*" 10 0 true

6. gettransaction

Returns details about a specific transaction by its transaction ID.

gettransaction <txid>
Example:
gettransaction "5d4b7f2e6b2a7e3a5b6e9b2a6c4d1a0f4b8e9d2e3a7f8d0b6c2f0a4e8d2c5d0f1"

7. listaddressgroupings

Lists all address groupings in the wallet. Addresses are grouped by their usage in transactions.

listaddressgroupings
Example:
[ [ [ "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9", 1.23 ], [ "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9", 0.45 ] ], [ [ "Xk4Yd9nCzqvBcEtnE53i9mGz39m83U9pU9", 2.34 ] ] ]

8. getblock

Returns information about a block by block hash or block number.

getblock <blockhash> [verbosity]
Example:
getblock "00000000000000000007f2f0e1bdb000ab04001b38d8fbbf1fc25c5c50d8b9b5" 2

9. getrawtransaction

Returns the raw data of a transaction given its transaction ID.

getrawtransaction <txid> [verbose]
Example:
getrawtransaction "5d4b7f2e6b2a7e3a5b6e9b2a6c4d1a0f4b8e9d2e3a7f8d0b6c2f0a4e8d2c5d0f1" 1

10. backupwallet

Creates a backup of the wallet file to a specified location.

backupwallet <destination>
Example:
backupwallet "/home/user/zipwalletbackup.dat"

11. importprivkey

Imports a private key into the wallet.

importprivkey <privkey> [label] [rescan]
Example:
importprivkey "L5Q7y7S7H8Lxh5J3juf2yJp7Z4d8Zs9tPE7GjHV9aThH6htjx1H" "mykey" true

12. removeprunedfunds

Removes funds from the wallet that are no longer available due to pruning.

removeprunedfunds
Example:
removeprunedfunds