<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mescalito</id>
	<title>Bitcoin Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mescalito"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Mescalito"/>
	<updated>2026-04-12T07:37:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=18049</id>
		<title>Original Bitcoin client/API calls list</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=18049"/>
		<updated>2011-10-14T11:45:33Z</updated>

		<summary type="html">&lt;p&gt;Mescalito: removing my previous insert, more tests showed that it was due to other things&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bitcoin API call list (as of version 0.4.0)&lt;br /&gt;
&lt;br /&gt;
== Common operations ==&lt;br /&gt;
&lt;br /&gt;
=== Listing my bitcoin addresses ===&lt;br /&gt;
&lt;br /&gt;
Listing the bitcoin [[address|addresses]] in your wallet is easily done via &#039;&#039;listreceivedbyaddress&#039;&#039;. It normally lists only addresses which already have received transactions, however you can list all the addresses by setting the first argument to 0, and the second one to true.&lt;br /&gt;
&lt;br /&gt;
[[accounts explained|Accounts]] are used to organize addresses.&lt;br /&gt;
&lt;br /&gt;
== Full list ==&lt;br /&gt;
&lt;br /&gt;
Required arguments are denoted inside &amp;amp;lt; and &amp;amp;gt; Optional arguments are inside [ and ].&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Command !! Parameters !! Description !! Requires unlocked wallet? (v0.4.0+)&lt;br /&gt;
|-&lt;br /&gt;
| backupwallet || &amp;lt;destination&amp;gt; || Safely copies wallet.dat to destination, which can be a directory or a path with filename. || N&lt;br /&gt;
|-&lt;br /&gt;
| encryptwallet || &amp;lt;passphrase&amp;gt; || Encrypts the wallet with &amp;lt;passphrase&amp;gt;. || N&lt;br /&gt;
|-&lt;br /&gt;
| getaccount || &amp;lt;bitcoinaddress&amp;gt; || Returns the account associated with the given address. || N&lt;br /&gt;
|-&lt;br /&gt;
| getaccountaddress || &amp;lt;account&amp;gt; || Returns the current bitcoin address for receiving payments to this account. || N&lt;br /&gt;
|-&lt;br /&gt;
| getaddressesbyaccount || &amp;lt;account&amp;gt; || Returns the list of addresses for the given account. || N&lt;br /&gt;
|-&lt;br /&gt;
| getbalance || [account] [minconf=1] || If [account] is not specified, returns the server&#039;s total available balance.&amp;lt;br/&amp;gt;If [account] is specified, returns the balance in the account. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockbycount || height || Dumps the block existing at specified height. &#039;&#039;&#039;Note: this is not available in the official release&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| getblockcount || || Returns the number of blocks in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocknumber || || Returns the block number of the latest block in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getconnectioncount || || Returns the number of connections to other nodes. || N&lt;br /&gt;
|-&lt;br /&gt;
| getdifficulty || || Returns the proof-of-work difficulty as a multiple of the minimum difficulty. || N&lt;br /&gt;
|-&lt;br /&gt;
| getgenerate || || Returns true or false whether bitcoind is currently generating hashes || N&lt;br /&gt;
|-&lt;br /&gt;
| gethashespersec || || Returns a recent hashes per second performance measurement while generating.&lt;br /&gt;
|-&lt;br /&gt;
| getinfo || || Returns an object containing various state info.&lt;br /&gt;
|-&lt;br /&gt;
| 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].&lt;br /&gt;
|-&lt;br /&gt;
| getreceivedbyaccount || [account] [minconf=1] || Returns the total amount received by addresses with [account] in transactions with at least [minconf] confirmations. If [account] not provided return will include all transactions to all accounts. (version 0.3.24-beta)&lt;br /&gt;
|-&lt;br /&gt;
| getreceivedbyaddress || &amp;lt;bitcoinaddress&amp;gt; [minconf=1] || Returns the total amount received by &amp;lt;bitcoinaddress&amp;gt; in transactions with at least [minconf] confirmations.&lt;br /&gt;
|-&lt;br /&gt;
| gettransaction || &amp;lt;txid&amp;gt; || Returns an object about the given transaction containing:&lt;br /&gt;
* &amp;quot;amount&amp;quot; : total amount of the transaction&lt;br /&gt;
* &amp;quot;confirmations&amp;quot; :  number of confirmations of the transaction&lt;br /&gt;
* &amp;quot;txid&amp;quot; : the transaction ID&lt;br /&gt;
* &amp;quot;time&amp;quot; : time the transaction occurred&lt;br /&gt;
* &amp;quot;details&amp;quot; - An array of objects containing:&lt;br /&gt;
** &amp;quot;account&amp;quot;&lt;br /&gt;
** &amp;quot;address&amp;quot;&lt;br /&gt;
** &amp;quot;category&amp;quot;&lt;br /&gt;
** &amp;quot;amount&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[getwork]] || [data] || If [data] is not specified, returns formatted hash data to work on:&lt;br /&gt;
* &amp;quot;midstate&amp;quot; : precomputed hash state after hashing the first half of the data&lt;br /&gt;
* &amp;quot;data&amp;quot; : block data&lt;br /&gt;
* &amp;quot;hash1&amp;quot; : formatted hash buffer for second hash&lt;br /&gt;
* &amp;quot;target&amp;quot; : little endian hash target&lt;br /&gt;
If [data] is specified, tries to solve the block and returns true if it was successful.&lt;br /&gt;
|-&lt;br /&gt;
| help || [command] || List commands, or get help for a command. || N&lt;br /&gt;
|-&lt;br /&gt;
| keypoolrefill || || Fills the keypool, requires wallet passphrase to be set. || Y&lt;br /&gt;
|-&lt;br /&gt;
| listaccounts || [minconf=1] || Returns Object that has account names as keys, account balances as values.&lt;br /&gt;
|-&lt;br /&gt;
| listreceivedbyaccount || [minconf=1] [includeempty=false] || Returns an array of objects containing:&lt;br /&gt;
* &amp;quot;account&amp;quot; : the account of the receiving addresses&lt;br /&gt;
* &amp;quot;amount&amp;quot; : total amount received by addresses with this account&lt;br /&gt;
* &amp;quot;confirmations&amp;quot; : number of confirmations of the most recent transaction included&lt;br /&gt;
|-&lt;br /&gt;
| listreceivedbyaddress || [minconf=1] [includeempty=false] || Returns an array of objects containing:&lt;br /&gt;
* &amp;quot;address&amp;quot; : receiving address&lt;br /&gt;
* &amp;quot;account&amp;quot; : the account of the receiving address&lt;br /&gt;
* &amp;quot;amount&amp;quot; : total amount received by the address&lt;br /&gt;
* &amp;quot;confirmations&amp;quot; : number of confirmations of the most recent transaction included&lt;br /&gt;
To get a list of accounts on the system, execute bitcoind listreceivedbyaddress 0 true&lt;br /&gt;
|-&lt;br /&gt;
| listtransactions || [account] [count=10] [from=0] || Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts.&lt;br /&gt;
|-&lt;br /&gt;
| move || &amp;lt;fromaccount&amp;gt; &amp;lt;toaccount&amp;gt; &amp;lt;amount&amp;gt; [minconf=1] [comment] || Move from one account in your wallet to another.&lt;br /&gt;
|-&lt;br /&gt;
| sendfrom || &amp;lt;fromaccount&amp;gt; &amp;lt;tobitcoinaddress&amp;gt; &amp;lt;amount&amp;gt; [minconf=1] [comment] [comment-to] || &amp;lt;amount&amp;gt; is a real and is rounded to 8 decimal places. Will send the given amount to the given address, ensuring the account has a valid balance using [minconf] confirmations. Returns the transaction ID if successful (not in JSON object). || Y&lt;br /&gt;
|-&lt;br /&gt;
| sendmany || &amp;lt;fromaccount&amp;gt; {address:amount,...} [minconf=1] [comment] || amounts are double-precision floating point numbers || Y&lt;br /&gt;
|-&lt;br /&gt;
| sendtoaddress || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;amount&amp;gt; [comment] [comment-to] || &amp;lt;amount&amp;gt; is a real and is rounded to 8 decimal places. Returns the transaction ID &amp;lt;txid&amp;gt; if successful. || Y&lt;br /&gt;
|-&lt;br /&gt;
| setaccount || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;account&amp;gt; || Sets the account associated with the given address. Assigning address that is already assigned to the same account will create a new address associated with that account. &lt;br /&gt;
|-&lt;br /&gt;
| setgenerate || &amp;lt;generate&amp;gt; [genproclimit] || &amp;lt;generate&amp;gt; is true or false to turn generation on or off.&amp;lt;br/&amp;gt;Generation is limited to [genproclimit] processors, -1 is unlimited.&lt;br /&gt;
|-&lt;br /&gt;
| settxfee || &amp;lt;amount&amp;gt; || &amp;lt;amount&amp;gt; is a real and is rounded to the nearest 0.00000001&lt;br /&gt;
|-&lt;br /&gt;
| stop || || Stop bitcoin server. || N&lt;br /&gt;
|-&lt;br /&gt;
| validateaddress || &amp;lt;bitcoinaddress&amp;gt; || Return information about &amp;lt;bitcoinaddress&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| walletlock ||  || Removes the wallet encryption key from memory, locking the wallet. After calling this method,  you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.&lt;br /&gt;
|-&lt;br /&gt;
| walletpassphrase || &amp;lt;passphrase&amp;gt; &amp;lt;timeout&amp;gt; || Stores the wallet decryption key in memory for &amp;lt;timeout&amp;gt; seconds. || N&lt;br /&gt;
|-&lt;br /&gt;
| walletpassphrasechange || &amp;lt;oldpassphrase&amp;gt; &amp;lt;newpassphrase&amp;gt; || Changes the wallet passphrase from &amp;lt;oldpassphrase&amp;gt; to &amp;lt;newpassphrase&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original Bitcoin client]]&lt;br /&gt;
* [[API reference (JSON-RPC)]]&lt;br /&gt;
* [[Lazy_API]]&lt;br /&gt;
* [[Elis-API]] - A more detailed version of this page - for developers!&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Mescalito</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=18048</id>
		<title>Original Bitcoin client/API calls list</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=18048"/>
		<updated>2011-10-14T11:29:36Z</updated>

		<summary type="html">&lt;p&gt;Mescalito: more info on setaccount()&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bitcoin API call list (as of version 0.4.0)&lt;br /&gt;
&lt;br /&gt;
== Common operations ==&lt;br /&gt;
&lt;br /&gt;
=== Listing my bitcoin addresses ===&lt;br /&gt;
&lt;br /&gt;
Listing the bitcoin [[address|addresses]] in your wallet is easily done via &#039;&#039;listreceivedbyaddress&#039;&#039;. It normally lists only addresses which already have received transactions, however you can list all the addresses by setting the first argument to 0, and the second one to true.&lt;br /&gt;
&lt;br /&gt;
[[accounts explained|Accounts]] are used to organize addresses.&lt;br /&gt;
&lt;br /&gt;
== Full list ==&lt;br /&gt;
&lt;br /&gt;
Required arguments are denoted inside &amp;amp;lt; and &amp;amp;gt; Optional arguments are inside [ and ].&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Command !! Parameters !! Description !! Requires unlocked wallet? (v0.4.0+)&lt;br /&gt;
|-&lt;br /&gt;
| backupwallet || &amp;lt;destination&amp;gt; || Safely copies wallet.dat to destination, which can be a directory or a path with filename. || N&lt;br /&gt;
|-&lt;br /&gt;
| encryptwallet || &amp;lt;passphrase&amp;gt; || Encrypts the wallet with &amp;lt;passphrase&amp;gt;. || N&lt;br /&gt;
|-&lt;br /&gt;
| getaccount || &amp;lt;bitcoinaddress&amp;gt; || Returns the account associated with the given address. || N&lt;br /&gt;
|-&lt;br /&gt;
| getaccountaddress || &amp;lt;account&amp;gt; || Returns the current bitcoin address for receiving payments to this account. || N&lt;br /&gt;
|-&lt;br /&gt;
| getaddressesbyaccount || &amp;lt;account&amp;gt; || Returns the list of addresses for the given account. || N&lt;br /&gt;
|-&lt;br /&gt;
| getbalance || [account] [minconf=1] || If [account] is not specified, returns the server&#039;s total available balance.&amp;lt;br/&amp;gt;If [account] is specified, returns the balance in the account. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockbycount || height || Dumps the block existing at specified height. &#039;&#039;&#039;Note: this is not available in the official release&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| getblockcount || || Returns the number of blocks in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocknumber || || Returns the block number of the latest block in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getconnectioncount || || Returns the number of connections to other nodes. || N&lt;br /&gt;
|-&lt;br /&gt;
| getdifficulty || || Returns the proof-of-work difficulty as a multiple of the minimum difficulty. || N&lt;br /&gt;
|-&lt;br /&gt;
| getgenerate || || Returns true or false whether bitcoind is currently generating hashes || N&lt;br /&gt;
|-&lt;br /&gt;
| gethashespersec || || Returns a recent hashes per second performance measurement while generating.&lt;br /&gt;
|-&lt;br /&gt;
| getinfo || || Returns an object containing various state info.&lt;br /&gt;
|-&lt;br /&gt;
| 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].&lt;br /&gt;
|-&lt;br /&gt;
| getreceivedbyaccount || [account] [minconf=1] || Returns the total amount received by addresses with [account] in transactions with at least [minconf] confirmations. If [account] not provided return will include all transactions to all accounts. (version 0.3.24-beta)&lt;br /&gt;
|-&lt;br /&gt;
| getreceivedbyaddress || &amp;lt;bitcoinaddress&amp;gt; [minconf=1] || Returns the total amount received by &amp;lt;bitcoinaddress&amp;gt; in transactions with at least [minconf] confirmations.&lt;br /&gt;
|-&lt;br /&gt;
| gettransaction || &amp;lt;txid&amp;gt; || Returns an object about the given transaction containing:&lt;br /&gt;
* &amp;quot;amount&amp;quot; : total amount of the transaction&lt;br /&gt;
* &amp;quot;confirmations&amp;quot; :  number of confirmations of the transaction&lt;br /&gt;
* &amp;quot;txid&amp;quot; : the transaction ID&lt;br /&gt;
* &amp;quot;time&amp;quot; : time the transaction occurred&lt;br /&gt;
* &amp;quot;details&amp;quot; - An array of objects containing:&lt;br /&gt;
** &amp;quot;account&amp;quot;&lt;br /&gt;
** &amp;quot;address&amp;quot;&lt;br /&gt;
** &amp;quot;category&amp;quot;&lt;br /&gt;
** &amp;quot;amount&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| [[getwork]] || [data] || If [data] is not specified, returns formatted hash data to work on:&lt;br /&gt;
* &amp;quot;midstate&amp;quot; : precomputed hash state after hashing the first half of the data&lt;br /&gt;
* &amp;quot;data&amp;quot; : block data&lt;br /&gt;
* &amp;quot;hash1&amp;quot; : formatted hash buffer for second hash&lt;br /&gt;
* &amp;quot;target&amp;quot; : little endian hash target&lt;br /&gt;
If [data] is specified, tries to solve the block and returns true if it was successful.&lt;br /&gt;
|-&lt;br /&gt;
| help || [command] || List commands, or get help for a command. || N&lt;br /&gt;
|-&lt;br /&gt;
| keypoolrefill || || Fills the keypool, requires wallet passphrase to be set. || Y&lt;br /&gt;
|-&lt;br /&gt;
| listaccounts || [minconf=1] || Returns Object that has account names as keys, account balances as values.&lt;br /&gt;
|-&lt;br /&gt;
| listreceivedbyaccount || [minconf=1] [includeempty=false] || Returns an array of objects containing:&lt;br /&gt;
* &amp;quot;account&amp;quot; : the account of the receiving addresses&lt;br /&gt;
* &amp;quot;amount&amp;quot; : total amount received by addresses with this account&lt;br /&gt;
* &amp;quot;confirmations&amp;quot; : number of confirmations of the most recent transaction included&lt;br /&gt;
|-&lt;br /&gt;
| listreceivedbyaddress || [minconf=1] [includeempty=false] || Returns an array of objects containing:&lt;br /&gt;
* &amp;quot;address&amp;quot; : receiving address&lt;br /&gt;
* &amp;quot;account&amp;quot; : the account of the receiving address&lt;br /&gt;
* &amp;quot;amount&amp;quot; : total amount received by the address&lt;br /&gt;
* &amp;quot;confirmations&amp;quot; : number of confirmations of the most recent transaction included&lt;br /&gt;
To get a list of accounts on the system, execute bitcoind listreceivedbyaddress 0 true&lt;br /&gt;
|-&lt;br /&gt;
| listtransactions || [account] [count=10] [from=0] || Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided will return recent transaction from all accounts.&lt;br /&gt;
|-&lt;br /&gt;
| move || &amp;lt;fromaccount&amp;gt; &amp;lt;toaccount&amp;gt; &amp;lt;amount&amp;gt; [minconf=1] [comment] || Move from one account in your wallet to another.&lt;br /&gt;
|-&lt;br /&gt;
| sendfrom || &amp;lt;fromaccount&amp;gt; &amp;lt;tobitcoinaddress&amp;gt; &amp;lt;amount&amp;gt; [minconf=1] [comment] [comment-to] || &amp;lt;amount&amp;gt; is a real and is rounded to 8 decimal places. Will send the given amount to the given address, ensuring the account has a valid balance using [minconf] confirmations. Returns the transaction ID if successful (not in JSON object). || Y&lt;br /&gt;
|-&lt;br /&gt;
| sendmany || &amp;lt;fromaccount&amp;gt; {address:amount,...} [minconf=1] [comment] || amounts are double-precision floating point numbers || Y&lt;br /&gt;
|-&lt;br /&gt;
| sendtoaddress || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;amount&amp;gt; [comment] [comment-to] || &amp;lt;amount&amp;gt; is a real and is rounded to 8 decimal places. Returns the transaction ID &amp;lt;txid&amp;gt; if successful. || Y&lt;br /&gt;
|-&lt;br /&gt;
| setaccount || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;account&amp;gt; || Sets the account associated with the given address. Assigning address that is already assigned to the same account will create a new address associated with that account. If the address you are reassigning was earlier assigned to another account, and If that account is now empty (if this address was the last address in that account), then a new address will be automatically created and assigned to that old account.&lt;br /&gt;
|-&lt;br /&gt;
| setgenerate || &amp;lt;generate&amp;gt; [genproclimit] || &amp;lt;generate&amp;gt; is true or false to turn generation on or off.&amp;lt;br/&amp;gt;Generation is limited to [genproclimit] processors, -1 is unlimited.&lt;br /&gt;
|-&lt;br /&gt;
| settxfee || &amp;lt;amount&amp;gt; || &amp;lt;amount&amp;gt; is a real and is rounded to the nearest 0.00000001&lt;br /&gt;
|-&lt;br /&gt;
| stop || || Stop bitcoin server. || N&lt;br /&gt;
|-&lt;br /&gt;
| validateaddress || &amp;lt;bitcoinaddress&amp;gt; || Return information about &amp;lt;bitcoinaddress&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| walletlock ||  || Removes the wallet encryption key from memory, locking the wallet. After calling this method,  you will need to call walletpassphrase again before being able to call any methods which require the wallet to be unlocked.&lt;br /&gt;
|-&lt;br /&gt;
| walletpassphrase || &amp;lt;passphrase&amp;gt; &amp;lt;timeout&amp;gt; || Stores the wallet decryption key in memory for &amp;lt;timeout&amp;gt; seconds. || N&lt;br /&gt;
|-&lt;br /&gt;
| walletpassphrasechange || &amp;lt;oldpassphrase&amp;gt; &amp;lt;newpassphrase&amp;gt; || Changes the wallet passphrase from &amp;lt;oldpassphrase&amp;gt; to &amp;lt;newpassphrase&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original Bitcoin client]]&lt;br /&gt;
* [[API reference (JSON-RPC)]]&lt;br /&gt;
* [[Lazy_API]]&lt;br /&gt;
* [[Elis-API]] - A more detailed version of this page - for developers!&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Mescalito</name></author>
	</entry>
</feed>