Bitcoin Forum
May 07, 2024, 08:15:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind command help (extended descriptions)  (Read 18951 times)
knightmb (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 256



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

Timekoin - The World's Most Energy Efficient Encrypted Digital Currency
1715069750
Hero Member
*
Offline Offline

Posts: 1715069750

View Profile Personal Message (Offline)

Ignore
1715069750
Reply with quote  #2

1715069750
Report to moderator
1715069750
Hero Member
*
Offline Offline

Posts: 1715069750

View Profile Personal Message (Offline)

Ignore
1715069750
Reply with quote  #2

1715069750
Report to moderator
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715069750
Hero Member
*
Offline Offline

Posts: 1715069750

View Profile Personal Message (Offline)

Ignore
1715069750
Reply with quote  #2

1715069750
Report to moderator
1715069750
Hero Member
*
Offline Offline

Posts: 1715069750

View Profile Personal Message (Offline)

Ignore
1715069750
Reply with quote  #2

1715069750
Report to moderator
1715069750
Hero Member
*
Offline Offline

Posts: 1715069750

View Profile Personal Message (Offline)

Ignore
1715069750
Reply with quote  #2

1715069750
Report to moderator
aceat64
Full Member
***
Offline Offline

Activity: 307
Merit: 102



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: 1288
Merit: 1076


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
Merit: 2216


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: 726
Merit: 500



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: 1344
Merit: 264


bit.ly/3QXp3oh | Ultimate Launchpad on TON


View Profile
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?

TONUP██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
▄▄███████▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████▄░▄▄▀█████▀▄████▄
▄███████▄▀█▄▀██▀▄███████▄
█████████▄▀█▄▀▄██████████
██████████▄▀█▄▀██████████
██████████▀▄▀█▄▀█████████
▀███████▀▄██▄▀█▄▀███████▀
▀████▀▄█████▄▀▀░▀█████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀███████▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████████████████████▄
▄████▀▀███▀▀███▀▀██▀███▄
████▀███████▀█▀███▀█████
██████████████████████
████▄███████▄█▄███▄█████
▀████▄▄███▄▄███▄▄██▄███▀
▀█████████████████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
████████
██
██
██
██
██
██
██
██
██
██
██
████████
████████████████████████████████████████████████████████████████████████████████
.
JOIN NOW
.
████████████████████████████████████████████████████████████████████████████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12972


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

Anyone got an answer?

listreceivedbyaddress 0 true

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
SeW900
Jr. Member
*
Offline Offline

Activity: 90
Merit: 1


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
Merit: 1024



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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!