Bitcoin Forum
December 09, 2016, 03:32:56 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitcoind command help (extended descriptions)  (Read 11309 times)
knightmb
Sr. Member
****
Offline Offline

Activity: 308


Timekoin - Save Electricity, Don't Waste It!


View Profile WWW
August 02, 2010, 04:12:49 PM
 #1

Since I didn't find a forum post or wiki on this (I probably should add to the wiki), I've compiled a static help file, figured it would be useful for everyone here doing a lot of work with bitcoind. Some are obvious, but other's didn't have a full description.

  • getaddressesbylabel <label>
    Returns the list of addresses with the given label.

  • getbalance
    Returns the server's available balance.

  • getblockcount
    Returns the number of blocks in the longest block chain

  • getblocknumber
    Returns the block number of the latest block in the longest block chain.

  • getconnectioncount
    Returns the number of connections to other nodes

  • getdifficulty
    Returns the proof-of-work difficulty as a multiple of the minimum difficulty.

  • getgenerate
    Returns if the server is generating coins. Returns true or false.

  • getinfo
    Returns the server balance, blocks, connections, proxy, generate, genproclimit, & difficulty

  • getlabel <bitcoinaddress>
    Returns the label associated with the given address.

  • getnewaddress [label]
    Returns a new bitcoin address for receiving payments.
    If [label] is specified (recommended), it is added to the address book so payments received with the address will be labeled.

  • getreceivedbyaddress <bitcoinaddress> [minconf=1]
    Returns the total amount received by <bitcoinaddress> in transactions with at least [minconf] confirmations.

  • getreceivedbylabel <label> [minconf=1]
    Returns the total amount received by addresses with <label> in transactions with at least [minconf] confirmations.

  • help
    Returns list of available commands.

  • 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
    "label" : the label of the receiving address
    "amount" : total amount received by the address
    "confirmations" : number of confirmations of the most recent transaction included

  • listreceivedbylabel [minconf=1] [includeempty=false]
    [minconf] is the minimum number of confirmations before payments are included.
    [includeempty] whether to include labels that haven't received any payments.
    Returns an array of objects containing:
    "label" : the label of the receiving addresses
    "amount" : total amount received by addresses with this label
    "confirmations" : number of confirmations of the most recent transaction included

  • sendtoaddress <bitcoinaddress> <amount> [comment] [comment-to]
    <amount> is a real and is rounded to the nearest 0.01

  • setgenerate <generate> [genproclimit]
    <generate> is true or false to turn generation on or off.
    Generation is limited to [genproclimit] processors, -1 is unlimited.

  • setlabel <bitcoinaddress> <label>
    Sets the label associated with the given address.

  • stop
    Kills the bitcoind process

1481297576
Hero Member
*
Offline Offline

Posts: 1481297576

View Profile Personal Message (Offline)

Ignore
1481297576
Reply with quote  #2

1481297576
Report to moderator
1481297576
Hero Member
*
Offline Offline

Posts: 1481297576

View Profile Personal Message (Offline)

Ignore
1481297576
Reply with quote  #2

1481297576
Report to moderator
1481297576
Hero Member
*
Offline Offline

Posts: 1481297576

View Profile Personal Message (Offline)

Ignore
1481297576
Reply with quote  #2

1481297576
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
aceat64
Full Member
***
Offline Offline

Activity: 127



View Profile
August 02, 2010, 04:53:49 PM
 #2

Jgarzik has a patch that displays the existing extended-help descriptions: http://bitcointalk.org/index.php?topic=637.0

Pastebin.ca is down so the actual patch is on his website: http://gtf.org/garzik/bitcoin/patch.bitcoin-help-extended

grondilu
Legendary
*
Offline Offline

Activity: 1134


View Profile
December 02, 2010, 12:29:11 AM
 #3

What exactly are [comment] and |comment-to]  ??  I thought it was not possible to attach a comment to a transaction.

And what are the size limits ?
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
December 02, 2010, 02:44:31 AM
 #4

The JSON-API wiki page describes all the methods:  http://www.bitcoin.org/wiki/doku.php?id=api

The wiki needs a good re-organization; anybody want to volunteer to revamp the Start page?

RE: comment and comment-to :  they're stored in your wallet along with the transaction, but not sent over the network.  The new gettransaction and listtransactions methods will return them (as "message" and "to").

How often do you get the chance to work on a potentially world-changing project?
Cryptoman
Hero Member
*****
Offline Offline

Activity: 728



View Profile
December 07, 2010, 07:01:57 PM
 #5

How does one list the accounts and addresses known to bitcoind?  How does the GUI generate the account list?  I can only see how to return information about a specific account or address.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
FairUser
Sr. Member
****
Offline Offline

Activity: 261


View Profile WWW
January 18, 2011, 09:52:55 AM
 #6

How does one list the accounts and addresses known to bitcoind?  How does the GUI generate the account list?  I can only see how to return information about a specific account or address.

BUMP

Anyone got an answer?
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2506


View Profile
January 18, 2011, 12:03:33 PM
 #7

Anyone got an answer?

listreceivedbyaddress 0 true

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
SeW900
Jr. Member
*
Offline Offline

Activity: 30


View Profile
June 24, 2011, 02:22:05 AM
 #8

I get "false" for the getgenerate command. I have both the server and GPU miner working, does this mean that something is wrong? The server has the complete block chain and 8 total connections.

kjj
Legendary
*
Offline Offline

Activity: 1302



View Profile
June 24, 2011, 02:29:40 AM
 #9

I get "false" for the getgenerate command. I have both the server and GPU miner working, does this mean that something is wrong? The server has the complete block chain and 8 total connections.

Use the setgenerate true command to enable mining, if for some reason you really want to (but you probably don't).  You can also add an optional third parameter for the number of CPUs to use.

By the way, impressive thread necromancy.  Don't see a lot of that on these forums, most people just post new threads, but you actually used the search function.  Almost warms my heart.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!