Bitcoin/bitcoind

bitcoind
Download Bitcoin Client:
 * Download - Bitcoin - http://bitcoin.org/en/download

Full Client: "Do you have a computer that you keep switched on all the time, that's connected to the Internet? You can help the community by simply running the full Bitcoin client on it. The full client is more resource intensive and will take a complete day to synchronize. After that your computer will contribute to the network by checking and relaying transactions." 

Linux Client
Users Guide:
 * Bitcoind - Bitcoin - https://en.bitcoin.it/wiki/Bitcoind
 * Original Bitcoin client/API calls list - Bitcoin - https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list

Installation: wget https://bitcoin.org/bin/0.9.2.1/bitcoin-0.9.2.1-linux.tar.gz tar -zvxf bitcoin-0.9.2.1-linux.tar.gz cd bitcoin-0.9.2.1-linux/bin/64 ./bitcoind

Source Installation:

yum install gcc make gcc-c++ autoconf automake libtool db4-devel git clone https://github.com/bitcoin/bitcoin cd bitcoin ./autogen.sh ./configure  # NEED DB 4.8 make
 * 1) sample from CentOS 6 - missing DB 4.8


 * 1) sample from RaspberryPi
 * 2) sudo apt-get install [from cgminer files??]
 * 3) sudo apt-get install libdb4.8-dev
 * 4) package not found

Linux Initialize
$ ./bitcoind Error: To use the "-server" option, you must set a rpcpassword in the configuration file: /home/kenneth/.bitcoin/bitcoin.conf It is recommended you use the following random password: rpcuser=bitcoinrpc rpcpassword=8zmDjpCP13wcRYaZYkgJfeREKGFfzxAG9ry59ZiRNKmT (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %s | mail -s "Bitcoin Alert" admin@foo.com

Initialize bitcoin.conf and set as server/daemon: $ cat > /home/kenneth/.bitcoin/bitcoin.conf << EOF server=1 daemon=1 listen=1 rpcuser=bitcoinrpc rpcpassword=8zmDjpCP13wcRYaZYkgJfeREKGFfzxAG9ry59ZiRNKmT EOF

Windows Client
Download:
 * latest: http://sourceforge.net/projects/bitcoin/files/latest/download?source=files
 * 0.9.1: http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.9.1/bitcoin-0.9.1-win32-setup.exe/download

Windows Initialize
C:\>bitcoind Error: To use bitcoind, you must set a rpcpassword in the configuration file: C:\Users\kenneth\AppData\Roaming\Bitcoin\bitcoin.conf It is recommended you use the following random password: rpcuser=bitcoinrpc rpcpassword=nLgJ84aqoDVX1e5xCGEAUGiLaMV9Zg7PQRwxsaoV1H8 (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions.

It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %s | mail -s "Bitcoin Alert" admin@foo.com

echo rpcuser=bitcoinrpc > C:\Users\kenneth\AppData\Roaming\Bitcoin\bitcoin.conf echo rpcpassword=nLgJ84aqoDVX1e5xCGEAUGiLaMV9Zg7PQRwxsaoV1H8 >> C:\Users\kenneth\AppData\Roaming\Bitcoin\bitcoin.conf echo # JSON-RPC options (for controlling a running Bitcoin/bitcoind process) >> C:\Users\kenneth\AppData\Roaming\Bitcoin\bitcoin.conf echo # server=1 tells Bitcoin-QT to accept JSON-RPC commands. >> C:\Users\kenneth\AppData\Roaming\Bitcoin\bitcoin.conf echo server=1 >> C:\Users\kenneth\AppData\Roaming\Bitcoin\bitcoin.conf

Windows Service
json rpc - How to open bitcoind -daemon using command line in Windows? - Bitcoin Stack Exchange - http://bitcoin.stackexchange.com/questions/11728/how-to-open-bitcoind-daemon-using-command-line-in-windows "As far as i know, you are running the bitcoind client as it should be run. You need to explicitly say that you want your bitcoind to be run as a daemon. try changing your server=1 configuration lines to this (your comment may have inadvertently messed with bitcoin... but i don't know that for any fact, just a hypothesis) here's your example modified


 * 1) JSON-RPC options (for controlling a running Bitcoin/bitcoind process)


 * 1) server=1 tells Bitcoin-QT to accept JSON-RPC commands.

server=1

Also, when in doubt run bitcoind in one cmd window and bring up a second one. Recurse in to the directory containing bitcoind (inside that second cmd window). Then try to run a simple command (try bitcoind getblockcount) if you get a result then you know bitcoind is working, but it is not starting as a background service.

If you are using the bitcoin-qt client, don't edit anything in the config file. Configure the Bitcoin client to start automatically.

" GUI-Settings: Settings -> Options then mark the checkbox titled: [X] Start Bitcoin on system startup " Source: https://en.bitcoin.it/wiki/Running_Bitcoin

Also, if your reason for using bitcoind over bitcoin-qt is due to the ability to pass text commands to bitcoin: the console is accessible from the Help menu (Help->Debug->console)

I am not going to claim i know everything, and im sure some of this is not perfect information, but i will update it and gladly work through issues with anyone i can help. Just be kind ;)"

Control Server
Start server: (does not run in background on windows!) bitcoind bitcoind -daemon # or daemon=1 in bitcoin.conf

Stop server: bitcoind stop

stop
Bitcoin server stopping
 * bitcoind stop: Stop Bitcoin server.
 * 1) bitcoind stop

Note: Works only for addresses in the local wallet, external addresses will always show 0.00000000.

getbalance
0.00000000
 * bitcoind getbalance [account] [minconf=1]: If [account] is not specified, returns the server's total available balance. If [account] is specified, returns the balance in the account.
 * 1) bitcoind getbalance

Note: Works only for addresses in the local wallet, external addresses will always show 0.00000000.

help
getbalance ( "account" minconf )
 * bitcoind help [command]: List all commands, or get help for a specified command.
 * 1) bitcoind help getbalance

If account is not specified, returns the server's total available balance. ...

getinfo
{   "version" : 90201, "protocolversion" : 70002, "walletversion" : 60000, "balance" : 0.03300000, "blocks" : 98839, "timeoffset" : 2, "connections" : 8, "proxy" : "", "difficulty" : 14484.16236123, "testnet" : false, "keypoololdest" : 1407866440, "keypoolsize" : 101, "paytxfee" : 0.00000000, "relayfee" : 0.00001000, "errors" : "" }
 * bitcoind getinfo: Returns an object containing various state info
 * 1) bitcoind getinfo

getblockcount
261973
 * bitcoind getblockcount: Returns the number of blocks in the longest block chain.
 * That the daemon currently knows of, good way to determine update progress when compared to actual value online
 * 1) bitcoind getblockcount

getdifficulty
2036671.08869332 148819199.80509263
 * bitcoind getdifficulty: Returns the proof-of-work difficulty as a multiple of the minimum difficulty.
 * 1) bitcoind getdifficulty
 * 1) bitcoind getdifficulty

getnetworkhashps

 * bitcoind getnetworkhashps: Returns the estimated network hashes per second based on the last n blocks

9844855607448
 * 1) bitcoind getnetworkhashps

getwalletinfo
{   "walletversion" : 60000, "balance" : 0.00000000, "txcount" : 0, "keypoololdest" : 1407866440, "keypoolsize" : 101 }
 * bitcoind getdifficulty: Returns an object containing various wallet state info.
 * 1) bitcoind getwalletinfo

Accounts and Addresses
Note: "addresses" are public and can be shared. "accounts" are virtual, and only have meaning within this wallet.

list all addresses

 * 1) for account in $( bitcoind listaccounts | grep -v "{\|}" | awk '{print $1}' | sed 's/"//g'  ) ; do echo $account ; bitcoind getaddressesbyaccount "$account" ; done
 * 2) bitcoind getaddressesbyaccount ""

getaccount
kenneth
 * bitcoind getaccount : Returns the account associated with the given address.
 * 1) bitcoind getaccount 1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d

getaccountaddress
1NS1xboUZDkzZvPb4ZSKXc32dQPRHRLagp Note: only returns latest if multiple, use getaddressbyaccount instead (kind of useless if you ask me!)
 * bitcoind getaccountaddress : Returns the current Bitcoin address for receiving payments to this account.
 * 1) bitcoind getaccountaddress kenneth

getaddressesbyaccount
[   "1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d", "1NS1xboUZDkzZvPb4ZSKXc32dQPRHRLagp" ]
 * bitcoind getaddressesbyaccount : Returns the list of addresses for the given account.
 * 1) bitcoind getaddressesbyaccount kenneth

[   "1BnH7HUrSvyuSC6ojn7pZm9wW5xDposBUz", "1gJKBeUD2wKpMVJguMW9L5U44f3XyKVHT" ]
 * 1) bitcoind getaddressesbyaccount ""  # empty string required for default account

getnewaddress
1NS1xboUZDkzZvPb4ZSKXc32dQPRHRLagp 1BnH7HUrSvyuSC6ojn7pZm9wW5xDposBUz
 * bitcoind getnewaddress [account]: Returns a new Bitcoin address for receiving payments. If [account] is specified (recommended), it is added to the address book so payments received with the address will be credited to [account].
 * 1) bitcoind getnewaddress kenneth
 * 1) bitcoind getnewaddress

getreceivedbyaccount
0.00000000 0.03300000
 * bitcoind getreceivedbyaccount [minconf=1]: Returns the total amount received by addresses with in transactions with at least [minconf] confirmations.
 * Show balance per account
 * 1) bitcoind getreceivedbyaccount ""
 * 1) bitcoind getreceivedbyaccount kenneth

getreceivedbyaddress
0.00000000 0.03300000
 * bitcoind getreceivedbyaddress [minconf=1]: Returns the total amount received by in transactions with at least [minconf] confirmations.
 * Show balance per address
 * 1) bitcoind getreceivedbyaddress 1P7dszCUVuugLLfPx3zL45f4oFGhGmeJTP
 * 1) bitcoind getreceivedbyaddress 1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d

listaccounts
{   "" : 0.00000000,    "kenneth" : 0.03300000 }
 * bitcoind listaccounts [minconf=1]: Returns Object that has account names as keys, account balances as values.
 * Show accounts and balances
 * 1) bitcoind listaccounts

listreceivedbyaccount
[   {        "account" : "kenneth", "amount" : 0.03300000, "confirmations" : 64 } ]
 * bitcoind listreceivedbyaccount [minconf=1] [includeempty=false]: [minconf] is the minimum number of confirmations before payments are included. [includeempty] whether to include accounts that haven't received any payments. Returns an array of objects containing: "account" : the account of the receiving addresses, "amount" : total amount received by addresses with this account, "confirmations" : number of confirmations of the most recent transaction included.
 * 1) bitcoind listreceivedbyaccount

listreceivedbyaddress
[   {        "address" : "1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d", "account" : "kenneth", "amount" : 0.03300000, "confirmations" : 64 } ]
 * bitcoind listreceivedbyaddress [minconf=1] [includeempty=false]: [minconf] is the minimum number of confirmations before payments are included. [includeempty] whether to include addresses that haven't received any payments. Returns an array of objects containing: "address" : receiving address, "account" : the account of the receiving address, "amount" : total amount received by the address, "confirmations" : number of confirmations of the most recent transaction included.
 * 1) bitcoind listreceivedbyaddress

setaccount

 * bitcoind setaccount : Sets the account associated with the given address.
 * 1) bitcoind setaccount 1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d bank

validateaddress
{   "isvalid" : true, "address" : "1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d", "ismine" : true, "isscript" : false, "pubkey" : "02e5f9a847d033ee0c4bca0a1347ab06a010fa9c0a967c80734ea1decc4e30347a", "iscompressed" : true, "account" : "bank" }
 * bitcoind validateaddress : Return information about the given bitcoin address.
 * 1) bitcoind validateaddress 1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d

listunspent

 * bitcoind listunspent [minconf=1] [maxconf=9999999] ["address",...]: Returns array of unspent transaction outputs with between minconf and maxconf (inclusive) confirmations. Optionally filtered to only include txouts paid to specified addresses. Results are an array of Objects, each of which has: {txid, vout, scriptPubKey, amount, confirmations}

[   {        "txid" : "66e1175b5cc1724535eb49b1883169ba5d63c4b2f3175eb51627f60b7c81bed3", "vout" : 0, "address" : "1FvSh9eCk9LUdNFVV19tr6P22G44kBXD2d", "account" : "bank", "scriptPubKey" : "76a914a3ad40f4db92fedb5ade03124e0d7285ffe7902388ac", "amount" : 0.03300000, "confirmations" : 66 } ]
 * 1) bitcoind listunspent

move
true
 * bitcoind move  [minconf=1] [comment]: Move from one account in your wallet to another.
 * 1) bitcoind move kenneth bank 0.0001

Note: this is a virtual move within this wallet only, and does not affect the public ledger.

settxfee
true true
 * bitcoind settxfee : Set the transaction fee per kB. The transaction fee in BTC/kB rounded to the nearest 0.00000001
 * Increase the transaction fee, if you wish (will make validation faster)
 * Check current with 'bitcoind getinfo' as 'paytxfee'
 * 1) bitcoind settxfee 0
 * 1) bitcoind settxfee 0.00001

sendtoaddress
ae732cb48ef8e53564527500ffd29987ae8f8f8185e9247f5f6fb3ac56146e57
 * sendtoaddress [comment] [comment-to]: Sent an amount to a given address. The amount is a real and is rounded to the nearest 0.00000001
 * 1) bitcoind sendtoaddress 1HdcTEjkWN416GiMtqHFDWohGfU6yWTn2N .001

Note: [comment] and [comment-to] are just a comment used to store what the transaction is for. This is not part of the transaction, just kept in your wallet.

listtransactions

 * bitcoind listtransactions [account] [count=10] [from=0]: Returns up to [count] most recent transactions skipping the first [from] transactions for account [account].
 * shows: move, receive and send

$ ./bitcoind listtransactions [   {        "account" : "test", "address" : "1Ja2fBdTEE9SaeZi5VNRzzQK4Ev2aZhvar", "category" : "receive", "amount" : 0.50000100, "confirmations" : 223, "blockhash" : "000000000000000000e11e957b13b7d164a953f6ec285785a2de91408b64e410", "blockindex" : 416, "blocktime" : 1410379878, "txid" : "f576e1414915ef31b809c4bd78a12d42bdaf1d0b5d846fb8525dd9a47c3d9c56", "walletconflicts" : [ ],       "time" : 1410379878, "timereceived" : 1410488033 } ...

Mining: [   {        "account" : "", "address" : "15MQCUKU1Wrg8yoLKD7fEzBx7Qz1na4xTh", "category" : "immature", "amount" : 128.00000000, "confirmations" : 3, "generated" : true, "blockhash" : "0000000000081bb78866222527d8e49ddf01c6d6bb861f7bef8da31d7225bf7f", "blockindex" : 0, "blocktime" : 1407881738, "txid" : "924b030b7710826da0c7b082cdbe0bf57bb1069315c58d4eec39f06798ee7d65", "time" : 1407881738, "timereceived" : 1407881740 } ]

Mining: shows how many 'immature' blocks are awaiting confirmation critical mass.

backupwallet

 * bitcoind backupwallet : Safely copies wallet.dat to destination, which can be a directory or a path with filename.
 * 1) bitcoind backupwallet ~/wallet.backup


 * How do I restore? Copy the wallet.backup to .bitcoin/wallet.dat

Data directory - Bitcoin https://en.bitcoin.it/wiki/Data_directory

These will be md5sum identical: ~/.bitcoin/wallet.dat bitcoind backupwallet ~/backup-wallet.dat

dumpwallet

 * bitcoind dumpwallet : Dumps all wallet keys in a human-readable format.


 * 1) bitcoind dumpwallet wallet.txt

Restore with the [#importwallet] command

importwallet

 * bitcoind importwallet : Imports keys from a wallet dump file (see dumpwallet).


 * 1) bitcoind importwallet wallet.txt

Sync Status
Get Sync Status: BITCOIN_SYNC_CURRENT=`bitcoind getblockcount` BITCOIN_SYNC_TOTAL=`curl http://blockexplorer.com/q/getblockcount 2>/dev/null` BITCOIN_SYNC_PERCENT=$(( BITCOIN_SYNC_CURRENT * 100 / BITCOIN_SYNC_TOTAL )) echo "Sync status: ${BITCOIN_SYNC_PERCENT}% (${BITCOIN_SYNC_CURRENT}/${BITCOIN_SYNC_TOTAL})"
 * 1) !/bin/bash
 * 2) bitcoin-sync-status

alias bitcoindSynced=' bitcoindSynced { blockCount=`bitcoind getblockcount` blockChain=`wget -O - http://blockchain.info/q/getblockcount` blockDiff=`expr $blockChain - $blockCount` if [ $blockDiff = 0 ] then echo "up to date" else echo "$blockDiff blocks behind" fi } bitcoindSynced 2>/dev/null'

echo `bitcoind getblockcount 2>&1`/`wget -O - http://blockchain.info/q/getblockcount 2>/dev/null`

---

Seconds behind: cnt=`bitcoin-cli getblockcount` hash=`bitcoin-cli getblockhash ${cnt}` timeline=`bitcoin-cli getblock $hash | grep '"time"'` ltrimtime=${timeline#*time\" : } newest=${ltrimtime%%,*} echo $((`date +%s`-$newest)) echo $(((`date +%s`-$newest)/60)) # minutes echo $(((`date +%s`-$newest)/3600))  # hours
 * 1) !/bin/bash

ping

 * bitcoind ping: Requests that a ping be sent to all other nodes, to measure ping time. Results provided in getpeerinfo, pingtime and pingwait fields are decimal seconds. Ping command is handled in queue with all other commands, so it measures processing backlog, not just network ping.
 * 1) bitcoind ping

See

getpeerinfo

 * bitcoind getpeerinfo: Returns data about each connected network node as a json array of objects.

[   {        "addr" : "94.193.157.211:8333", "addrlocal" : "63.158.132.10:8333", "services" : "00000001", "lastsend" : 1410478103, "lastrecv" : 1410478104, "bytessent" : 172289, "bytesrecv" : 3622622, "conntime" : 1410467876, "pingtime" : 0.40114400, "version" : 70001, "subver" : "/Satoshi:0.8.6/", "inbound" : false, "startingheight" : 320214, "banscore" : 0, "syncnode" : true },   {        "addr" : "100.2.115.36:8333", "services" : "00000001", "lastsend" : 1410478103, "lastrecv" : 1410478103, "bytessent" : 273193, "bytesrecv" : 87722355, "conntime" : 1410467909, "pingtime" : 197.81944700, "version" : 70001, "subver" : "/Satoshi:0.8.6/", "inbound" : false, "startingheight" : 320214, "banscore" : 0, "syncnode" : false }, ... ]
 * 1) bitcoind getpeerinfo

getconnectioncount
8
 * bitcoind getconnectioncount: Returns the number of connections to other nodes.
 * 1) bitcoind getconnectioncount

Note: have not figured out how to increase this count. The -maxconnections does not appear to help.

addnode

 * bitcoind addnode : Attempts add or remove a node from the addnode list.


 * 1) bitcoind addnode 192.168.0.6:8333 add


 * 1) bitcoind addnode 10.50.3.88 remove

To see added nodes, see "getaddednodeinfo".

Can also add nodes in the bitcoin.conf: addnode=[NODE[:PORT]]

getaddednodeinfo

 * bitcoind getaddednodeinfo [node]: Returns information about the given added node, or all added nodes

See information about nodes added using the 'addnode' command.

[   {        "addednode" : "10.50.3.88", "connected" : true, "addresses" : [ {               "address" : "10.50.3.88:8333", "connected" : "outbound" }       ]    } ]
 * 1) bitcoind getaddednodeinfo true

getnettotals

 * bitcoind getnettotals: Returns information about network traffic, including bytes in, bytes out, and current time.

Results: Total bytes received, Total bytes sent, Total cpu time

{   "totalbytesrecv" : 341178654, "totalbytessent" : 165288089, "timemillis" : 1410468380063 }
 * 1) bitcoind getnettotals

getnetworkinfo

 * bitcoind getnetworkinfo: Returns an object containing various state info regarding P2P networking.

{   "version" : 90201, "protocolversion" : 70002, "timeoffset" : -1, "connections" : 8, "proxy" : "", "relayfee" : 0.00001000, "localaddresses" : [ {           "address" : "63.10.111.10", "port" : 8333, "score" : 4 }   ] }
 * 1) bitcoind getnetworkinfo

getmininginfo

 * bitcoind getmininginfo : Returns a json object containing mining-related information.

$ bitcoind getmininginfo {   "blocks" : 185134, "currentblocksize" : 0, "currentblocktx" : 0, "difficulty" : 1583177.84744401, "errors" : "", "genproclimit" : -1, "networkhashps" : 12212834332091, "pooledtx" : 3, "testnet" : false, "generate" : false, "hashespersec" : 0 }

mining listtransactions
see as this will show immature coins (not fully confirmed)

To Do
addmultisigaddress nrequired ["key",...] ( "account" )

createmultisig nrequired ["key",...] createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...} decoderawtransaction "hexstring" decodescript "hex" dumpprivkey "bitcoinaddress"

encryptwallet "passphrase"

getaddednodeinfo dns ( "node" )

getbestblockhash getblock "hash" ( verbose ) getblockchaininfo

getblockhash index getblocktemplate ( "jsonrequestobject" )

getgenerate gethashespersec

getrawchangeaddress getrawmempool ( verbose ) getrawtransaction "txid" ( verbose )

gettransaction "txid" gettxout "txid" n ( includemempool ) gettxoutsetinfo getunconfirmedbalance

getwork ( "data" )

importprivkey "bitcoinprivkey" ( "label" rescan )

keypoolrefill ( newsize )

listaddressgroupings listlockunspent

listsinceblock ( "blockhash" target-confirmations )

lockunspent unlock [{"txid":"txid","vout":n},...]

sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" ) sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ) sendrawtransaction "hexstring" ( allowhighfees )

setgenerate generate ( genproclimit )

signmessage "bitcoinaddress" "message" signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype )

submitblock "hexdata" ( "jsonparametersobject" )

verifychain ( checklevel numblocks ) verifymessage "bitcoinaddress" "signature" "message"

Full List of Commands
$ ./bitcoind help addmultisigaddress nrequired ["key",...] ( "account" ) addnode "node" "add|remove|onetry" backupwallet "destination" createmultisig nrequired ["key",...] createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...} decoderawtransaction "hexstring" decodescript "hex" dumpprivkey "bitcoinaddress" dumpwallet "filename" encryptwallet "passphrase" getaccount "bitcoinaddress" getaccountaddress "account" getaddednodeinfo dns ( "node" ) getaddressesbyaccount "account" getbalance ( "account" minconf ) getbestblockhash getblock "hash" ( verbose ) getblockchaininfo getblockcount getblockhash index getblocktemplate ( "jsonrequestobject" ) getconnectioncount getdifficulty getgenerate gethashespersec getinfo getmininginfo getnettotals getnetworkhashps ( blocks height ) getnetworkinfo getnewaddress ( "account" ) getpeerinfo getrawchangeaddress getrawmempool ( verbose ) getrawtransaction "txid" ( verbose ) getreceivedbyaccount "account" ( minconf ) getreceivedbyaddress "bitcoinaddress" ( minconf ) gettransaction "txid" gettxout "txid" n ( includemempool ) gettxoutsetinfo getunconfirmedbalance getwalletinfo getwork ( "data" ) help ( "command" ) importprivkey "bitcoinprivkey" ( "label" rescan ) importwallet "filename" keypoolrefill ( newsize ) listaccounts ( minconf ) listaddressgroupings listlockunspent listreceivedbyaccount ( minconf includeempty ) listreceivedbyaddress ( minconf includeempty ) listsinceblock ( "blockhash" target-confirmations ) listtransactions ( "account" count from ) listunspent ( minconf maxconf ["address",...] ) lockunspent unlock [{"txid":"txid","vout":n},...] move "fromaccount" "toaccount" amount ( minconf "comment" ) ping sendfrom "fromaccount" "tobitcoinaddress" amount ( minconf "comment" "comment-to" ) sendmany "fromaccount" {"address":amount,...} ( minconf "comment" ) sendrawtransaction "hexstring" ( allowhighfees ) sendtoaddress "bitcoinaddress" amount ( "comment" "comment-to" ) setaccount "bitcoinaddress" "account" setgenerate generate ( genproclimit ) settxfee amount signmessage "bitcoinaddress" "message" signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype ) stop submitblock "hexdata" ( "jsonparametersobject" ) validateaddress "bitcoinaddress" verifychain ( checklevel numblocks ) verifymessage "bitcoinaddress" "signature" "message"