<?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=Jcv</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=Jcv"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/wiki/Special:Contributions/Jcv"/>
	<updated>2026-05-06T08:49:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=API_reference_(JSON-RPC)&amp;diff=56279</id>
		<title>API reference (JSON-RPC)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=API_reference_(JSON-RPC)&amp;diff=56279"/>
		<updated>2015-04-30T15:46:51Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Go */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Controlling Bitcoin ==&lt;br /&gt;
&lt;br /&gt;
Run &#039;&#039;bitcoind&#039;&#039; or &#039;&#039;bitcoin-qt -server&#039;&#039;. You can control it via the command-line bitcoin-cli utility or by [http://json-rpc.org/wiki/specification HTTP JSON-RPC] commands.&lt;br /&gt;
&lt;br /&gt;
You must create a bitcoin.conf configuration file setting an rpcuser and rpcpassword; see [[Running Bitcoin]] for details.&lt;br /&gt;
&lt;br /&gt;
Now run:&lt;br /&gt;
  $ ./bitcoind -daemon&lt;br /&gt;
  bitcoin server starting&lt;br /&gt;
  $ ./bitcoin-cli -rpcwait help&lt;br /&gt;
  # shows the help text&lt;br /&gt;
&lt;br /&gt;
A [[Original Bitcoin client/API Calls list|list of RPC calls]] will be shown.&lt;br /&gt;
&lt;br /&gt;
  $ ./bitcoin-cli getbalance&lt;br /&gt;
  2000.00000&lt;br /&gt;
&lt;br /&gt;
If you are learning the API, it is a very good idea to use the test network (run bitcoind -testnet and bitcoin-cli -testnet).&lt;br /&gt;
&lt;br /&gt;
== JSON-RPC ==&lt;br /&gt;
&lt;br /&gt;
Running Bitcoin with the -server argument (or running bitcoind) tells it to function as a [http://json-rpc.org/wiki/specification HTTP JSON-RPC] server, but &lt;br /&gt;
[http://en.wikipedia.org/wiki/Basic_access_authentication Basic access authentication] must be used when communicating with it, and, for security, by default, the server only accepts connections from other processes on the same machine.  If your HTTP or JSON library requires you to specify which &#039;realm&#039; is authenticated, use &#039;jsonrpc&#039;.&lt;br /&gt;
&lt;br /&gt;
Bitcoin supports SSL (https) JSON-RPC connections beginning with version 0.3.14.  See the [[Enabling SSL on original client daemon|rpcssl wiki page]] for setup instructions and a list of all bitcoin.conf configuration options.&lt;br /&gt;
&lt;br /&gt;
Allowing arbitrary machines to access the JSON-RPC port (using the rpcallowip [[Running_Bitcoin|configuration option]]) is dangerous and &#039;&#039;&#039;strongly discouraged&#039;&#039;&#039;-- access should be strictly limited to trusted machines.&lt;br /&gt;
&lt;br /&gt;
To access the server you should find a [http://json-rpc.org/wiki/implementations suitable library] for your language.&lt;br /&gt;
&lt;br /&gt;
== Proper money handling ==&lt;br /&gt;
&lt;br /&gt;
See the [[Proper Money Handling (JSON-RPC)|proper money handling page]] for notes on avoiding rounding errors when handling bitcoin values.&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
&lt;br /&gt;
[http://json-rpc.org/wiki/python-json-rpc python-jsonrpc] is the official JSON-RPC implementation for Python.&lt;br /&gt;
It automatically generates Python methods for RPC calls.&lt;br /&gt;
However, due to its design for supporting old versions of Python, it is also rather inefficient.&lt;br /&gt;
[[User:jgarzik|jgarzik]] has forked it as [https://github.com/jgarzik/python-bitcoinrpc Python-BitcoinRPC] and optimized it for current versions.&lt;br /&gt;
Generally, this version is recommended.&lt;br /&gt;
&lt;br /&gt;
While BitcoinRPC lacks a few obscure features from jsonrpc, software using only the ServiceProxy class can be written the same to work with either version the user might choose to install:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from jsonrpc import ServiceProxy&lt;br /&gt;
  &lt;br /&gt;
access = ServiceProxy(&amp;quot;http://user:password@127.0.0.1:8332&amp;quot;)&lt;br /&gt;
access.getinfo()&lt;br /&gt;
access.listreceivedbyaddress(6)&lt;br /&gt;
#access.sendtoaddress(&amp;quot;11yEmxiMso2RsFVfBcCa616npBvGgxiBX&amp;quot;, 10)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The latest version of python-bitcoinrpc has a new syntax.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from bitcoinrpc.authproxy import AuthServiceProxy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Ruby ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ruby&amp;quot;&amp;gt;&lt;br /&gt;
require &#039;net/http&#039;&lt;br /&gt;
require &#039;uri&#039;&lt;br /&gt;
require &#039;json&#039;&lt;br /&gt;
&lt;br /&gt;
class BitcoinRPC&lt;br /&gt;
  def initialize(service_url)&lt;br /&gt;
    @uri = URI.parse(service_url)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def method_missing(name, *args)&lt;br /&gt;
    post_body = { &#039;method&#039; =&amp;gt; name, &#039;params&#039; =&amp;gt; args, &#039;id&#039; =&amp;gt; &#039;jsonrpc&#039; }.to_json&lt;br /&gt;
    resp = JSON.parse( http_post_request(post_body) )&lt;br /&gt;
    raise JSONRPCError, resp[&#039;error&#039;] if resp[&#039;error&#039;]&lt;br /&gt;
    resp[&#039;result&#039;]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def http_post_request(post_body)&lt;br /&gt;
    http    = Net::HTTP.new(@uri.host, @uri.port)&lt;br /&gt;
    request = Net::HTTP::Post.new(@uri.request_uri)&lt;br /&gt;
    request.basic_auth @uri.user, @uri.password&lt;br /&gt;
    request.content_type = &#039;application/json&#039;&lt;br /&gt;
    request.body = post_body&lt;br /&gt;
    http.request(request).body&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  class JSONRPCError &amp;lt; RuntimeError; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
if $0 == __FILE__&lt;br /&gt;
  h = BitcoinRPC.new(&#039;http://user:password@127.0.0.1:8332&#039;)&lt;br /&gt;
  p h.getbalance&lt;br /&gt;
  p h.getinfo&lt;br /&gt;
  p h.getnewaddress&lt;br /&gt;
  p h.dumpprivkey( h.getnewaddress )&lt;br /&gt;
  # also see: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Erlang ==&lt;br /&gt;
Get the rebar dependency from https://github.com/edescourtis/ebitcoind . By default the client will use the configuration in &amp;lt;code&amp;gt;$HOME/.bitcoin/bitcoin.conf&amp;lt;/code&amp;gt; or you can instead specify a URI like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;erlang&amp;quot;&amp;gt;ebitcoind:start_link(&amp;lt;&amp;lt;&amp;quot;http://user:password@localhost:8332/&amp;quot;&amp;gt;&amp;gt;).&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is a usage example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;erlang&amp;quot;&amp;gt;&lt;br /&gt;
1&amp;gt; {ok,Pid} = ebitcoind:start_link().&lt;br /&gt;
{ok,&amp;lt;0.177.0&amp;gt;}&lt;br /&gt;
2&amp;gt; ebitcoind:getbalance(Pid).&lt;br /&gt;
8437.02478294&lt;br /&gt;
3&amp;gt; ebitcoind:getinfo(Pid).&lt;br /&gt;
{ok, #{&amp;lt;&amp;lt;&amp;quot;balance&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 8437.02478294,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;blocks&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 260404,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;connections&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 8,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;difficulty&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 148819199.80509263,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;errors&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;gt;&amp;gt;,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;keypoololdest&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1420307921,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;keypoolsize&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 102,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;paytxfee&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 0.0,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;protocolversion&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 70002,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;proxy&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;gt;&amp;gt;,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;relayfee&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1.0e-5,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;testnet&amp;quot;&amp;gt;&amp;gt; =&amp;gt; false,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;timeoffset&amp;quot;&amp;gt;&amp;gt; =&amp;gt; -3,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;version&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 90300,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;walletversion&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 60000}}&lt;br /&gt;
4&amp;gt; ebitcoind:setgenerate(Pid,true).&lt;br /&gt;
{ok, null}&lt;br /&gt;
5&amp;gt; ebitcoind:getblocktemplate(Pid, #{}).                     &lt;br /&gt;
{ok,#{&amp;lt;&amp;lt;&amp;quot;bits&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;181b0dca&amp;quot;&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;coinbaseaux&amp;quot;&amp;gt;&amp;gt; =&amp;gt; #{&amp;lt;&amp;lt;&amp;quot;flags&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;062f503253482f&amp;quot;&amp;gt;&amp;gt;},&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;coinbasevalue&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 2518690558,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;curtime&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1420421249,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;height&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 337533,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;mintime&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1420416332,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;mutable&amp;quot;&amp;gt;&amp;gt; =&amp;gt; [&amp;lt;&amp;lt;&amp;quot;time&amp;quot;&amp;gt;&amp;gt;,&amp;lt;&amp;lt;&amp;quot;transactions&amp;quot;&amp;gt;&amp;gt;,&amp;lt;&amp;lt;&amp;quot;prevblock&amp;quot;&amp;gt;&amp;gt;],&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;noncerange&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;00000000ffffffff&amp;quot;&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;previousblockhash&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;000000000000000017ce0a0d328bf84cc597785844393e899e9a971a81679a5f&amp;quot;&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;sigoplimit&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 20000,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;sizelimit&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1000000,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;target&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;00000000000000001b0dca00000000000000000000000000000000000000&amp;quot;...&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;transactions&amp;quot;&amp;gt;&amp;gt; =&amp;gt; [#{&amp;lt;&amp;lt;&amp;quot;data&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;01000000049b47ce225d29bff7c18b7df7d7df4693523a52&amp;quot;...&amp;gt;&amp;gt;,&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;depends&amp;quot;&amp;gt;&amp;gt; =&amp;gt; [],&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;fee&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 0,&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;hash&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;6d0d76e1f27b3a6f7325923710dcdb4107c9&amp;quot;...&amp;gt;&amp;gt;,&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;sigops&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1},&lt;br /&gt;
      ...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
&lt;br /&gt;
The [http://jsonrpcphp.org/ JSON-RPC PHP] library also makes it very easy to connect to Bitcoin.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  require_once &#039;jsonRPCClient.php&#039;;&lt;br /&gt;
  &lt;br /&gt;
  $bitcoin = new jsonRPCClient(&#039;http://user:password@127.0.0.1:8332/&#039;);&lt;br /&gt;
   &lt;br /&gt;
  echo &amp;quot;&amp;lt;pre&amp;gt;\n&amp;quot;;&lt;br /&gt;
  print_r($bitcoin-&amp;gt;getinfo()); echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Received: &amp;quot;.$bitcoin-&amp;gt;getreceivedbylabel(&amp;quot;Your Address&amp;quot;).&amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The jsonRPCClient library uses fopen() and will throw an exception saying &amp;quot;Unable to connect&amp;quot; if it receives a 404 or 500 error from bitcoind. This prevents you from being able to see error messages generated by bitcoind (as they are sent with status 404 or 500). The [https://github.com/aceat64/EasyBitcoin-PHP EasyBitcoin-PHP library] is similar in function to JSON-RPC PHP but does not have this issue.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to tell Java to use HTTP Basic authentication is to set a default Authenticator:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
  final String rpcuser =&amp;quot;...&amp;quot;;&lt;br /&gt;
  final String rpcpassword =&amp;quot;...&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
  Authenticator.setDefault(new Authenticator() {&lt;br /&gt;
      protected PasswordAuthentication getPasswordAuthentication() {&lt;br /&gt;
          return new PasswordAuthentication (rpcuser, rpcpassword.toCharArray());&lt;br /&gt;
      }&lt;br /&gt;
  });&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once that is done, [http://json-rpc.org/wiki/implementations any JSON-RPC library for Java] (or ordinary URL POSTs) may be used to communicate with the Bitcoin server.&lt;br /&gt;
&lt;br /&gt;
Instead to write your wrapper you can use [[Bitcoin-JSON-RPC-Client|this implementation]] or [https://github.com/johannbarbie/BitcoindClient4J this one] .&lt;br /&gt;
&lt;br /&gt;
== Perl ==&lt;br /&gt;
&lt;br /&gt;
The JSON::RPC package from CPAN can be used to communicate with Bitcoin.  You must set the client&#039;s credentials; for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
  use JSON::RPC::Client;&lt;br /&gt;
  use Data::Dumper;&lt;br /&gt;
   &lt;br /&gt;
  my $client = new JSON::RPC::Client;&lt;br /&gt;
  &lt;br /&gt;
  $client-&amp;gt;ua-&amp;gt;credentials(&lt;br /&gt;
     &#039;localhost:8332&#039;, &#039;jsonrpc&#039;, &#039;user&#039; =&amp;gt; &#039;password&#039;  # REPLACE WITH YOUR bitcoin.conf rpcuser/rpcpassword&lt;br /&gt;
      );&lt;br /&gt;
  &lt;br /&gt;
  my $uri = &#039;http://localhost:8332/&#039;;&lt;br /&gt;
  my $obj = {&lt;br /&gt;
      method  =&amp;gt; &#039;getinfo&#039;,&lt;br /&gt;
      params  =&amp;gt; [],&lt;br /&gt;
   };&lt;br /&gt;
   &lt;br /&gt;
  my $res = $client-&amp;gt;call( $uri, $obj );&lt;br /&gt;
   &lt;br /&gt;
  if ($res){&lt;br /&gt;
      if ($res-&amp;gt;is_error) { print &amp;quot;Error : &amp;quot;, $res-&amp;gt;error_message; }&lt;br /&gt;
      else { print Dumper($res-&amp;gt;result); }&lt;br /&gt;
  } else {&lt;br /&gt;
      print $client-&amp;gt;status_line;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Go ==&lt;br /&gt;
&lt;br /&gt;
The [https://github.com/btcsuite/btcrpcclient btcrpcclient package] can be used to communicate with Bitcoin.  You must provide credentials to match the client you are communicating with.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import (&lt;br /&gt;
	&amp;quot;github.com/btcsuite/btcd/chaincfg&amp;quot;&lt;br /&gt;
	&amp;quot;github.com/btcsuite/btcrpcclient&amp;quot;&lt;br /&gt;
	&amp;quot;github.com/btcsuite/btcutil&amp;quot;&lt;br /&gt;
	&amp;quot;log&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	// create new client instance&lt;br /&gt;
	client, err := btcrpcclient.New(&amp;amp;btcrpcclient.ConnConfig{&lt;br /&gt;
		HTTPPostMode: true,&lt;br /&gt;
		DisableTLS:   true,&lt;br /&gt;
		Host:         &amp;quot;127.0.0.1:8332&amp;quot;,&lt;br /&gt;
		User:         &amp;quot;rpcUsername&amp;quot;,&lt;br /&gt;
		Pass:         &amp;quot;rpcPassword&amp;quot;,&lt;br /&gt;
	}, nil)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;error creating new btc client: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// list accounts&lt;br /&gt;
	accounts, err := client.ListAccounts()&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;error listing accounts: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	// iterate over accounts (map[string]btcutil.Amount) and write to stdout&lt;br /&gt;
	for label, amount := range accounts {&lt;br /&gt;
		log.Printf(&amp;quot;%s: %s&amp;quot;, label, amount)&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// prepare a sendMany transaction&lt;br /&gt;
	receiver1, err := btcutil.DecodeAddress(&amp;quot;1someAddressThatIsActuallyReal&amp;quot;, &amp;amp;chaincfg.MainNetParams)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;address receiver1 seems to be invalid: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	receiver2, err := btcutil.DecodeAddress(&amp;quot;1anotherAddressThatsPrettyReal&amp;quot;, &amp;amp;chaincfg.MainNetParams)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;address receiver2 seems to be invalid: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	receivers := map[btcutil.Address]btcutil.Amount{&lt;br /&gt;
		receiver1: 42,  // 42 satoshi&lt;br /&gt;
		receiver2: 100, // 100 satoshi&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// create and send the sendMany tx&lt;br /&gt;
	txSha, err := client.SendMany(&amp;quot;some-account-label-from-which-to-send&amp;quot;, receivers)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;error sendMany: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	log.Printf(&amp;quot;sendMany completed! tx sha is: %s&amp;quot;, txSha.String())&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== .NET (C#) ==&lt;br /&gt;
The communication with the RPC service can be achieved using the standard http request/response objects.&lt;br /&gt;
A library for serialising and deserializing Json will make your life a lot easier:&lt;br /&gt;
&lt;br /&gt;
Json.Net ( http://james.newtonking.com/json ) is a high performance JSON package for .Net.  It is also available via NuGet from the package manager console ( Install-Package Newtonsoft.Json ).&lt;br /&gt;
&lt;br /&gt;
The following example uses Json.Net:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(&amp;quot;http://localhost.:8332&amp;quot;);&lt;br /&gt;
 webRequest.Credentials = new NetworkCredential(&amp;quot;user&amp;quot;, &amp;quot;pwd&amp;quot;);&lt;br /&gt;
 /// important, otherwise the service can&#039;t desirialse your request properly&lt;br /&gt;
 webRequest.ContentType = &amp;quot;application/json-rpc&amp;quot;;&lt;br /&gt;
 webRequest.Method = &amp;quot;POST&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
 JObject joe = new JObject();&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;jsonrpc&amp;quot;, &amp;quot;1.0&amp;quot;));&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;id&amp;quot;, &amp;quot;1&amp;quot;));&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;method&amp;quot;, Method));&lt;br /&gt;
 // params is a collection values which the method requires..&lt;br /&gt;
 if (Params.Keys.Count == 0)&lt;br /&gt;
 {&lt;br /&gt;
  joe.Add(new JProperty(&amp;quot;params&amp;quot;, new JArray()));&lt;br /&gt;
 }&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
     JArray props = new JArray();&lt;br /&gt;
     // add the props in the reverse order!&lt;br /&gt;
     for (int i = Params.Keys.Count - 1; i &amp;gt;= 0; i--)&lt;br /&gt;
     {&lt;br /&gt;
        .... // add the params&lt;br /&gt;
     }&lt;br /&gt;
     joe.Add(new JProperty(&amp;quot;params&amp;quot;, props));&lt;br /&gt;
     }&lt;br /&gt;
  &lt;br /&gt;
     // serialize json for the request&lt;br /&gt;
     string s = JsonConvert.SerializeObject(joe);&lt;br /&gt;
     byte[] byteArray = Encoding.UTF8.GetBytes(s);&lt;br /&gt;
     webRequest.ContentLength = byteArray.Length;&lt;br /&gt;
     Stream dataStream = webRequest.GetRequestStream();&lt;br /&gt;
     dataStream.Write(byteArray, 0, byteArray.Length);&lt;br /&gt;
     dataStream.Close();&lt;br /&gt;
     &lt;br /&gt;
     &lt;br /&gt;
     WebResponse webResponse = webRequest.GetResponse();&lt;br /&gt;
     &lt;br /&gt;
     ... // deserialze the response&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is also a wrapper for Json.NET called Bitnet (https://sourceforge.net/projects/bitnet)&lt;br /&gt;
implementing Bitcoin API in more convenient way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
     BitnetClient bc = new BitnetClient(&amp;quot;http://127.0.0.1:8332&amp;quot;);&lt;br /&gt;
     bc.Credentials = new NetworkCredential(&amp;quot;user&amp;quot;, &amp;quot;pass&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
     var p = bc.GetDifficulty();&lt;br /&gt;
     Console.WriteLine(&amp;quot;Difficulty:&amp;quot; + p.ToString());&lt;br /&gt;
&lt;br /&gt;
     var inf = bc.GetInfo();&lt;br /&gt;
     Console.WriteLine(&amp;quot;Balance:&amp;quot; + inf[&amp;quot;balance&amp;quot;]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A more complete library and wrapper for Bitcoin (also for Litecoin and all Bitcoin clones) is [https://github.com/GeorgeKimionis/BitcoinLib BitcoinLib] (https://github.com/GeorgeKimionis/BitcoinLib) which is also available via [https://www.nuget.org/packages/BitcoinLib/ NuGet] from the package manager console (Install-Package BitcoinLib). &lt;br /&gt;
&lt;br /&gt;
Querying the daemon with [https://github.com/GeorgeKimionis/BitcoinLib BitcoinLib] is as simple as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
     IBitcoinService bitcoinService = new BitcoinService();&lt;br /&gt;
&lt;br /&gt;
     double networkDifficulty = bitcoinService.GetDifficulty();&lt;br /&gt;
     decimal myBalance = bitcoinService.GetBalance();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Node.js ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/freewil/node-bitcoin node-bitcoin] (npm: bitcoin) &lt;br /&gt;
&lt;br /&gt;
Example using node-bitcoin:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var bitcoin = require(&#039;bitcoin&#039;);&lt;br /&gt;
var client = new bitcoin.Client({&lt;br /&gt;
  host: &#039;localhost&#039;,&lt;br /&gt;
  port: 8332,&lt;br /&gt;
  user: &#039;user&#039;,&lt;br /&gt;
  pass: &#039;pass&#039;&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
client.getDifficulty(function(err, difficulty) {&lt;br /&gt;
  if (err) {&lt;br /&gt;
    return console.error(err);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  console.log(&#039;Difficulty: &#039; + difficulty);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example using Kapitalize:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&#039;javascript&#039;&amp;gt;&lt;br /&gt;
var client = require(&#039;kapitalize&#039;)()&lt;br /&gt;
&lt;br /&gt;
client.auth(&#039;user&#039;, &#039;password&#039;)&lt;br /&gt;
&lt;br /&gt;
client&lt;br /&gt;
.getInfo()&lt;br /&gt;
.getDifficulty(function(err, difficulty) {&lt;br /&gt;
  console.log(&#039;Dificulty: &#039;, difficulty)&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Command line (cURL) ==&lt;br /&gt;
&lt;br /&gt;
You can also send commands and see results using [http://curl.haxx.se/ cURL] or some other command-line HTTP-fetching utility; for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  curl --user user --data-binary &#039;{&amp;quot;jsonrpc&amp;quot;: &amp;quot;1.0&amp;quot;, &amp;quot;id&amp;quot;:&amp;quot;curltest&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;getinfo&amp;quot;, &amp;quot;params&amp;quot;: [] }&#039; &lt;br /&gt;
    -H &#039;content-type: text/plain;&#039; http://127.0.0.1:8332/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your rpcpassword, and then will see something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
  {&amp;quot;result&amp;quot;:{&amp;quot;balance&amp;quot;:0.000000000000000,&amp;quot;blocks&amp;quot;:59952,&amp;quot;connections&amp;quot;:48,&amp;quot;proxy&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;generate&amp;quot;:false,&lt;br /&gt;
     &amp;quot;genproclimit&amp;quot;:-1,&amp;quot;difficulty&amp;quot;:16.61907875185736,&amp;quot;error&amp;quot;:null,&amp;quot;id&amp;quot;:&amp;quot;curltest&amp;quot;}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clojure ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/aviad/clj-btc clj-btc] is a Clojure wrapper for the bitcoin API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;clojure&amp;quot;&amp;gt;&lt;br /&gt;
user=&amp;gt; (require &#039;[clj-btc.core :as btc])&lt;br /&gt;
nil&lt;br /&gt;
user=&amp;gt; (btc/getinfo)&lt;br /&gt;
{&amp;quot;timeoffset&amp;quot; 0, &amp;quot;protocolversion&amp;quot; 70001, &amp;quot;blocks&amp;quot; 111908, &amp;quot;errors&amp;quot; &amp;quot;&amp;quot;,&lt;br /&gt;
 &amp;quot;testnet&amp;quot; true, &amp;quot;proxy&amp;quot; &amp;quot;&amp;quot;, &amp;quot;connections&amp;quot; 4, &amp;quot;version&amp;quot; 80500,&lt;br /&gt;
 &amp;quot;keypoololdest&amp;quot; 1380388750, &amp;quot;paytxfee&amp;quot; 0E-8M,&lt;br /&gt;
 &amp;quot;difficulty&amp;quot; 4642.44443532M, &amp;quot;keypoolsize&amp;quot; 101, &amp;quot;balance&amp;quot; 0E-8M,&lt;br /&gt;
 &amp;quot;walletversion&amp;quot; 60000}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Qt/C++ ==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/devonit/qjsonrpc/overview QJsonRpc] is a Qt/C++ implementation of the JSON-RPC protocol. It integrates nicely with Qt, leveraging Qt&#039;s meta object system in order to provide services over the JSON-RPC protocol. QJsonRpc is licensed under the LGPLv2.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * Copyright (C) 2012-2013 Matt Broadstone&lt;br /&gt;
 * Contact: http://bitbucket.org/devonit/qjsonrpc&lt;br /&gt;
 *&lt;br /&gt;
 * This file is part of the QJsonRpc Library.&lt;br /&gt;
 *&lt;br /&gt;
 * This library is free software; you can redistribute it and/or&lt;br /&gt;
 * modify it under the terms of the GNU Lesser General Public&lt;br /&gt;
 * License as published by the Free Software Foundation; either&lt;br /&gt;
 * version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This library is distributed in the hope that it will be useful,&lt;br /&gt;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU&lt;br /&gt;
 * Lesser General Public License for more details.&lt;br /&gt;
 */&lt;br /&gt;
#include &amp;lt;QCoreApplication&amp;gt;&lt;br /&gt;
#include &amp;lt;QAuthenticator&amp;gt;&lt;br /&gt;
#include &amp;lt;QStringList&amp;gt;&lt;br /&gt;
#include &amp;lt;QDebug&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;qjsonrpchttpclient.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
class HttpClient : public QJsonRpcHttpClient&lt;br /&gt;
{&lt;br /&gt;
    Q_OBJECT&lt;br /&gt;
public:&lt;br /&gt;
    HttpClient(const QString &amp;amp;endpoint, QObject *parent = 0)&lt;br /&gt;
        : QJsonRpcHttpClient(endpoint, parent)&lt;br /&gt;
    {&lt;br /&gt;
        // defaults added for my local test server&lt;br /&gt;
        m_username = &amp;quot;bitcoinrpc&amp;quot;;&lt;br /&gt;
        m_password = &amp;quot;232fb3276bbb7437d265298ea48bdc46&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void setUsername(const QString &amp;amp;username) {&lt;br /&gt;
        m_username = username;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void setPassword(const QString &amp;amp;password) {&lt;br /&gt;
        m_password = password;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
private Q_SLOTS:&lt;br /&gt;
    virtual void handleAuthenticationRequired(QNetworkReply *reply, QAuthenticator * authenticator)&lt;br /&gt;
    {&lt;br /&gt;
        Q_UNUSED(reply)&lt;br /&gt;
        authenticator-&amp;gt;setUser(m_username);&lt;br /&gt;
        authenticator-&amp;gt;setPassword(m_password);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
private:&lt;br /&gt;
    QString m_username;&lt;br /&gt;
    QString m_password;&lt;br /&gt;
&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char **argv)&lt;br /&gt;
{&lt;br /&gt;
    QCoreApplication app(argc, argv);&lt;br /&gt;
    if (app.arguments().size() &amp;lt; 2) {&lt;br /&gt;
        qDebug() &amp;lt;&amp;lt; &amp;quot;usage: &amp;quot; &amp;lt;&amp;lt; argv[0] &amp;lt;&amp;lt; &amp;quot;[-u username] [-p password] &amp;lt;command&amp;gt; &amp;lt;arguments&amp;gt;&amp;quot;;&lt;br /&gt;
        return -1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    HttpClient client(&amp;quot;http://127.0.0.1:8332&amp;quot;);&lt;br /&gt;
    if (app.arguments().contains(&amp;quot;-u&amp;quot;)) {&lt;br /&gt;
        int idx = app.arguments().indexOf(&amp;quot;-u&amp;quot;);&lt;br /&gt;
        app.arguments().removeAt(idx);&lt;br /&gt;
        client.setUsername(app.arguments().takeAt(idx));&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    if (app.arguments().contains(&amp;quot;-p&amp;quot;)) {&lt;br /&gt;
        int idx = app.arguments().indexOf(&amp;quot;-p&amp;quot;);&lt;br /&gt;
        app.arguments().removeAt(idx);&lt;br /&gt;
        client.setPassword(app.arguments().takeAt(idx));&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    QJsonRpcMessage message = QJsonRpcMessage::createRequest(app.arguments().at(1));&lt;br /&gt;
    QJsonRpcMessage response = client.sendMessageBlocking(message);&lt;br /&gt;
    if (response.type() == QJsonRpcMessage::Error) {&lt;br /&gt;
        qDebug() &amp;lt;&amp;lt; response.errorData();&lt;br /&gt;
        return -1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    qDebug() &amp;lt;&amp;lt; response.toJson();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original_Bitcoin_client/API_Calls_list|API calls list]]&lt;br /&gt;
* [[Running Bitcoin]]&lt;br /&gt;
* [[Lazy API]]&lt;br /&gt;
* [[PHP developer intro]]&lt;br /&gt;
* [[Raw_Transactions|Raw Transactions API]]&lt;br /&gt;
* [https://gourl.io/bitcoin-payment-gateway-api.html GoUrl Bitcoin PHP Payment API]&lt;br /&gt;
* [http://blockchain.info/api/json_rpc_api Web Based JSON RPC interface.]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[zh-cn:API_reference_(JSON-RPC)]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Proper_Money_Handling_(JSON-RPC)&amp;diff=56278</id>
		<title>Proper Money Handling (JSON-RPC)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Proper_Money_Handling_(JSON-RPC)&amp;diff=56278"/>
		<updated>2015-04-30T12:08:07Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Go */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The original bitcoin client stores all bitcoin values as 64-bit integers, with 1 BTC stored as 100,000,000 (one-hundred-million of the smallest possible bitcoin unit).  Values are expressed as double-precision Numbers in the JSON API, with 1 BTC expressed as 1.00000000&lt;br /&gt;
&lt;br /&gt;
If you are writing software that uses the JSON-RPC interface you need to be aware of possible floating-point conversion issues.  You, or the JSON library you are using, should convert amounts to either a fixed-point Decimal representation (with 8 digits after the decimal point) or ideally a 64-bit integer representation. In either case, rounding values is required.&lt;br /&gt;
&lt;br /&gt;
Improper value handling can lead to embarrassing errors; for example, if you truncate instead of doing proper rounding and your software will display the value &amp;quot;0.1 BTC&amp;quot; as &amp;quot;0.09999999 BTC&amp;quot; (or, worse, &amp;quot;0.09 BTC&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The original bitcoin client does proper, full-precision rounding for all values passed to it via the RPC interface.  So, for example, if the value 0.1 is converted to the value &amp;quot;0.099999999999&amp;quot; by your JSON-RPC library, that value will be rounded to the nearest 0.00000001 bitcoin and will be treated as exactly 0.10 BTC.&lt;br /&gt;
&lt;br /&gt;
The rest of this page gives sample code for various JSON libraries and programming languages.&lt;br /&gt;
&lt;br /&gt;
== BASH ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 function JSONtoAmount() {&lt;br /&gt;
     printf &#039;%.8f&#039; &amp;quot;$1&amp;quot; | tr -d &#039;.&#039;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== C/C++ ==&lt;br /&gt;
C/C++ JSON libraries return the JavaScript Number type as type &#039;double&#039;.  To convert, without loss of precision, from a double to a 64-bit integer multiply by 100,000,000 and round to the nearest integer:&lt;br /&gt;
 int64_t JSONtoAmount(double value) {&lt;br /&gt;
     return (int64_t)(value * 1e8 + (value &amp;lt; 0.0 ? -.5 : .5));&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
To convert to a JSON value divide by 100,000,000.0, and make sure your JSON implementation outputs doubles with 8 or more digits after the decimal point:&lt;br /&gt;
  double forJSON = (double)amount / 1e8;&lt;br /&gt;
&lt;br /&gt;
== ECMAScript ==&lt;br /&gt;
&lt;br /&gt;
 function JSONtoAmount(value) {&lt;br /&gt;
     return Math.round(1e8 * value);&lt;br /&gt;
 }&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
 public long JSONtoAmount(double value){&lt;br /&gt;
     return (long)(value*100000000L);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
== Perl ==&lt;br /&gt;
 sub JSONtoAmount {&lt;br /&gt;
     return sprintf &#039;%.0f&#039;, 1e8 * shift;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Go ==&lt;br /&gt;
The [https://github.com/btcsuite/btcd/btcjson btcjson package] provides a more complete version of this function (error checking and so on), but for illustrative purposes, this is useful.&lt;br /&gt;
&lt;br /&gt;
 func JSONToAmount(jsonAmount float64) (int64) {&lt;br /&gt;
   var amount int64&lt;br /&gt;
   tempVal := 1e8 * jsonAmount&lt;br /&gt;
   if tempVal &amp;lt; 0 {&lt;br /&gt;
      tempVal = tempVal - 0.5&lt;br /&gt;
   }&lt;br /&gt;
   if tempVal &amp;gt; 0 {&lt;br /&gt;
     tempVal = tempVal + 0.5&lt;br /&gt;
   }&lt;br /&gt;
   // Then just rely on the integer truncating&lt;br /&gt;
   amount = int64(tempVal)&lt;br /&gt;
   return amount&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
 function JSONtoAmount($value) {&lt;br /&gt;
     return round($value * 1e8);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
 def JSONtoAmount(value):&lt;br /&gt;
     return long(round(value * 1e8))&lt;br /&gt;
 def AmountToJSON(amount):&lt;br /&gt;
     return float(amount / 1e8)&lt;br /&gt;
&lt;br /&gt;
== Common Lisp ==&lt;br /&gt;
  (defun json-to-amount (n)&lt;br /&gt;
    (coerce (round (* n 1e8)) &#039;integer))&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CAUTION&#039;&#039;&#039;: The CL-JSON library parses numbers as &#039;&#039;single&#039;&#039; precision floating-point by&lt;br /&gt;
default. The default parsing behavior can be overridden as follows:&lt;br /&gt;
&lt;br /&gt;
   (set-custom-vars :real (lambda (n)&lt;br /&gt;
                             (json::parse-number (concatenate &#039;string n &amp;quot;d0&amp;quot;))))&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
&lt;br /&gt;
[[de:Korrektes_Handling_von_Geldbeträgen_(JSON-RPC)]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Clients&amp;diff=56277</id>
		<title>Clients</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Clients&amp;diff=56277"/>
		<updated>2015-04-30T12:07:32Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* For developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
A bitcoin client is the end-user software that facilitates [[private key]] generation and security, payment sending on behalf of a private key, and optionally provides:&lt;br /&gt;
* Useful information about the state of the network and transactions.&lt;br /&gt;
* Information related to the private keys under its management.&lt;br /&gt;
* Syndication of network events to other peer clients.&lt;br /&gt;
&lt;br /&gt;
This table compares the features of the different clients. All of the listed clients are open-source.&lt;br /&gt;
&lt;br /&gt;
===Feature key===&lt;br /&gt;
&lt;br /&gt;
; Wallet Security : How well the client protects your [[private key]]s from people with access to the machine the wallet is stored on. The private keys can be encrypted, for example. The private keys can also be either stored on your device or on a remote server.&lt;br /&gt;
; Network Security : Clients which more fully implement the Bitcoin network protocol are safer -- they can&#039;t be as easily tricked by powerful attackers. A client which &#039;&#039;fully&#039;&#039; implements the protocol will always use the correct [[block chain]] and will never allow [[double-spending|double-spends]] or invalid transactions to exist in the block chain under any circumstances. Clients which only &#039;&#039;partially&#039;&#039; implement the protocol typically trust that 50% or more of the network&#039;s mining power is honest. Some clients trust one or more &#039;&#039;remote servers&#039;&#039; to protect them from double-spends and other network attacks.&lt;br /&gt;
; Setup Time : Some clients require that you download and verify a large amount of data before you can send or receive BTC.&lt;br /&gt;
; Maturity : When the project was started.&lt;br /&gt;
&lt;br /&gt;
===Table===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- please keep this alphabetic --&amp;gt;&lt;br /&gt;
{| class=&#039;wikitable&#039; style=&#039;text-align: center&#039;&lt;br /&gt;
! Client !! Get Started !! Audience !! Wallet Security !! Network Security !! Backups !! Setup Time !! Disk Space !! Maturity !! Multi-user !! Available for&lt;br /&gt;
|-&lt;br /&gt;
! [[Airbitz]]&lt;br /&gt;
|| [https://airbitz.co/app Download] || {{CLBest|Everyone}} || {{CLGood|Encrypted, on-device. Server backup}} || Partial || {{CLGood|Automatic}} || {{CLBest|Instant}} || {{CLGood|20 MB}} || Oct 2014 || {{CLBest|Multi-wallet}} || {{CLAndroid}}{{CLiOS}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Armory]]&lt;br /&gt;
|| [https://bitcoinarmory.com/download Download] || Power users || {{CLGood|Encrypted, on-device}} || Addon || {{CLBest|One-time}} || {{CLBad|Hours}} || {{CLBad|40+ GB}} || Jul 2011 || {{CLBest|Multi-wallet}} || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Bitcoin Core]]&lt;br /&gt;
|| [http://sourceforge.net/projects/bitcoin/files/Bitcoin/ Download] || {{CLGood|End-users}} || {{CLGood|Encrypted, on-device}} || {{CLBest|Full}} || Manual || {{CLBad|Hours}} || {{CLBad|20+ GB}} || {{CLGood|May 2011}} || No || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! [[bitcoind]]&lt;br /&gt;
|| [http://sourceforge.net/projects/bitcoin/files/Bitcoin/ Download] || Programmers || {{CLGood|Encrypted, on-device}} || {{CLBest|Full}} || Manual || {{CLBad|Hours}} || {{CLBad|20+ GB}} || {{CLBest|Aug 2009}} || {{CLGood|Virtual accounts}} || {{CLLinux}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Bitcoin Wallet]]&lt;br /&gt;
|| [https://play.google.com/store/apps/details?id=de.schildbach.wallet Google Play] [https://appworld.blackberry.com/webstore/content/23952882/ BlackBerry World] || {{CLGood|End-users}} || {{CLGood|Isolated, on-device}} || Partial || Manual || {{CLBest|Instant}} || {{CLGood|15 MB}} || {{CLGood|Mar 2011}} || on JB tablets || {{CLAndroid}} [[file:ico-blackberry.png]]&lt;br /&gt;
|-&lt;br /&gt;
! [[Electrum]]&lt;br /&gt;
|| [https://electrum.org/download.html Download] || Power users || {{CLGood|Encrypted, on-device}} || Minimal || {{CLBest|Memorized}} || {{CLGood|Minutes}} || {{CLGood|5 MB}} || Nov 2011 || No || {{CLAndroid}}{{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! [[GreenAddress]]&lt;br /&gt;
|| [https://greenaddress.it Web] [https://chrome.google.com/webstore/detail/greenaddressit/dgbimgjoijjemhdamicmljbncacfndmp ChromeApp] [https://play.google.com/store/apps/details?id=it.greenaddress.cordova&amp;amp;hl=en Google Play] || {{CLBest|Everyone}} || {{CLGood|Encrypted, on-device}} || {{CLBad|Remote}} || Memorized/Manual || {{CLBest|Instant}} || {{CLBest|None}} || Apr 2013 || {{CLBest|Yes}} || {{CLAndroid}}{{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Gocoin]]&lt;br /&gt;
|| [https://github.com/piotrnar/gocoin Build yourself] || Power users || Designated offline PC || {{CLBest|Full}} || {{CLBest|Memorized}} || {{CLBad|Hours}} || {{CLBad|20+GB}} || May 2013 || {{CLBest|Multi-wallet}} || {{CLLinux}}{{CLMac}}{{CLWin}}{{CLFreeBSD}}&lt;br /&gt;
|-&lt;br /&gt;
! [[MultiBit]]&lt;br /&gt;
|| [https://multibit.org/releases.html Download] || {{CLGood|End-users}} || {{CLGood|Encrypted, on-device}} || Partial || {{CLGood|Automatic (local)}} || {{CLBest|Seconds}} || 50 MB || Jul 2011 || {{CLBest|Multi-wallet}} || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! [[Mycelium]]&lt;br /&gt;
|| [https://mycelium.com/download Download] [https://play.google.com/store/apps/details?id=com.mycelium.wallet Google Play]|| {{CLBest|Everyone}} || {{CLGood|Isolated, on-device}} || Partial || Manual, encrypted || {{CLBest|Instant}} || {{CLGood|10 MB}} || Sep 2013 || No || {{CLAndroid}}{{CLiOS}}&lt;br /&gt;
|-&lt;br /&gt;
! [[BlockChain.info#Wallet|My Wallet]]&lt;br /&gt;
|| [https://blockchain.info/wallet/new Web-based] || {{CLBest|Everyone}} || {{CLBad|Encrypted, on a blockchain.info server}} || {{CLBad|Remote}} || {{CLGood|Automatic}} || {{CLGood|Minutes}} || {{CLBest|None}} || Dec 2011 || {{CLBest|Yes}} || {{CLAndroid}}{{CLiOS}}{{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Wallet Security: CLBest is reserved for multisig-based --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==For developers==&lt;br /&gt;
&lt;br /&gt;
This table shows additional information about various Bitcoin clients that may be relevant to developers.&lt;br /&gt;
&lt;br /&gt;
{| class=&#039;wikitable&#039; style=&#039;text-align: center&#039;&lt;br /&gt;
! Client !! Website !! Source Code !! License !! Discussion !! Architecture&lt;br /&gt;
|-&lt;br /&gt;
! Armory&lt;br /&gt;
|| [http://bitcoinarmory.com/ Link] ||[https://github.com/etotheipi/BitcoinArmory/ Github] || AGPLv3 || [https://bitcointalk.org/index.php?board=97.0 Bitcointalk] || Integrated&lt;br /&gt;
|-&lt;br /&gt;
! Bitcoin Wallet&lt;br /&gt;
|| [https://github.com/schildbach/bitcoin-wallet Link] || [https://github.com/schildbach/bitcoin-wallet Github] [https://code.google.com/p/bitcoin-wallet/source/checkout Google Code] || GPLv3 || [https://plus.google.com/b/101256420499771441772/communities/105515929887248493912 Google+ community] / [https://bitcointalk.org/index.php?board=100.0 Bitcointalk] || [[Thin Client Security#Simplified Payment Verification (SPV)|SPV]]&lt;br /&gt;
|-&lt;br /&gt;
! Bitcoin Core / bitcoind&lt;br /&gt;
|| [http://bitcoin.org/ Link] || [https://github.com/bitcoin/bitcoin Github] || MIT || [https://lists.sourceforge.net/lists/listinfo/bitcoin-development Sourceforge] || Integrated&lt;br /&gt;
|-&lt;br /&gt;
! Electrum&lt;br /&gt;
|| [http://ecdsa.org/electrum/ Link] || [https://gitorious.org/electrum Gitorious] || GPLv3 || [https://lists.sourceforge.net/lists/listinfo/electrum-discuss Sourceforge] || [[Thin Client Security#Simplified Payment Verification (SPV)|SPV]]&lt;br /&gt;
|-&lt;br /&gt;
! GreenAddress&lt;br /&gt;
|| [https://greenaddress.it/ Link] || [https://github.com/greenaddress/ Github] || LGPLv3 || [https://bitcointalk.org/index.php?topic=521988.0 Bitcointalk] || [[Server-Client+SPV(Electrum)]]&lt;br /&gt;
|-&lt;br /&gt;
! MultiBit&lt;br /&gt;
|| [http://multibit.org/ Link] || [https://github.com/jim618/multibit Github] || MIT || [https://groups.google.com/forum/?fromgroups#!forum/bitcoin-multibit Google Groups] || [[Thin Client Security#Simplified Payment Verification (SPV)|SPV]]&lt;br /&gt;
|-&lt;br /&gt;
! My Wallet&lt;br /&gt;
|| [https://blockchain.info/wallet/ Link] || [https://github.com/blockchain/My-Wallet/ Github] || BSD* || None || [[Thin Client Security#Server-Trusting Clients|Server-Client]]&lt;br /&gt;
|-&lt;br /&gt;
! bits of proof&lt;br /&gt;
|| [http://bitsofproof.com Link] || [https://github.com/bitsofproof/supernode Github] || Apache 2.0 || [https://bitcointalk.org/index.php?topic=122013.0 Bitcointalk] || [[Thin Client Security#Server-Trusting Clients|Server-Client]]&lt;br /&gt;
|-&lt;br /&gt;
! Gocoin&lt;br /&gt;
|| [http://www.assets-otc.com/gocoin Link] || [https://github.com/piotrnar/gocoin Github] || ? || [https://bitcointalk.org/index.php?topic=199306.0 Bitcointalk] || Integrated&lt;br /&gt;
|- &lt;br /&gt;
! btcd&lt;br /&gt;
|| [https://github.com/btcsuite/btcd Link] || [https://github.com/btcsuite/btcd Github] || ISC || [https://github.com/btcsuite/btcd#irc-server irc] || [[Thin Client Security#Server-Trusting Clients|Server-Client]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Software#Bitcoin_clients|List of clients]]&lt;br /&gt;
* [[Bitcoin Ladder]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=API_reference_(JSON-RPC)&amp;diff=56276</id>
		<title>API reference (JSON-RPC)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=API_reference_(JSON-RPC)&amp;diff=56276"/>
		<updated>2015-04-30T11:50:24Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Go */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Controlling Bitcoin ==&lt;br /&gt;
&lt;br /&gt;
Run &#039;&#039;bitcoind&#039;&#039; or &#039;&#039;bitcoin-qt -server&#039;&#039;. You can control it via the command-line bitcoin-cli utility or by [http://json-rpc.org/wiki/specification HTTP JSON-RPC] commands.&lt;br /&gt;
&lt;br /&gt;
You must create a bitcoin.conf configuration file setting an rpcuser and rpcpassword; see [[Running Bitcoin]] for details.&lt;br /&gt;
&lt;br /&gt;
Now run:&lt;br /&gt;
  $ ./bitcoind -daemon&lt;br /&gt;
  bitcoin server starting&lt;br /&gt;
  $ ./bitcoin-cli -rpcwait help&lt;br /&gt;
  # shows the help text&lt;br /&gt;
&lt;br /&gt;
A [[Original Bitcoin client/API Calls list|list of RPC calls]] will be shown.&lt;br /&gt;
&lt;br /&gt;
  $ ./bitcoin-cli getbalance&lt;br /&gt;
  2000.00000&lt;br /&gt;
&lt;br /&gt;
If you are learning the API, it is a very good idea to use the test network (run bitcoind -testnet and bitcoin-cli -testnet).&lt;br /&gt;
&lt;br /&gt;
== JSON-RPC ==&lt;br /&gt;
&lt;br /&gt;
Running Bitcoin with the -server argument (or running bitcoind) tells it to function as a [http://json-rpc.org/wiki/specification HTTP JSON-RPC] server, but &lt;br /&gt;
[http://en.wikipedia.org/wiki/Basic_access_authentication Basic access authentication] must be used when communicating with it, and, for security, by default, the server only accepts connections from other processes on the same machine.  If your HTTP or JSON library requires you to specify which &#039;realm&#039; is authenticated, use &#039;jsonrpc&#039;.&lt;br /&gt;
&lt;br /&gt;
Bitcoin supports SSL (https) JSON-RPC connections beginning with version 0.3.14.  See the [[Enabling SSL on original client daemon|rpcssl wiki page]] for setup instructions and a list of all bitcoin.conf configuration options.&lt;br /&gt;
&lt;br /&gt;
Allowing arbitrary machines to access the JSON-RPC port (using the rpcallowip [[Running_Bitcoin|configuration option]]) is dangerous and &#039;&#039;&#039;strongly discouraged&#039;&#039;&#039;-- access should be strictly limited to trusted machines.&lt;br /&gt;
&lt;br /&gt;
To access the server you should find a [http://json-rpc.org/wiki/implementations suitable library] for your language.&lt;br /&gt;
&lt;br /&gt;
== Proper money handling ==&lt;br /&gt;
&lt;br /&gt;
See the [[Proper Money Handling (JSON-RPC)|proper money handling page]] for notes on avoiding rounding errors when handling bitcoin values.&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
&lt;br /&gt;
[http://json-rpc.org/wiki/python-json-rpc python-jsonrpc] is the official JSON-RPC implementation for Python.&lt;br /&gt;
It automatically generates Python methods for RPC calls.&lt;br /&gt;
However, due to its design for supporting old versions of Python, it is also rather inefficient.&lt;br /&gt;
[[User:jgarzik|jgarzik]] has forked it as [https://github.com/jgarzik/python-bitcoinrpc Python-BitcoinRPC] and optimized it for current versions.&lt;br /&gt;
Generally, this version is recommended.&lt;br /&gt;
&lt;br /&gt;
While BitcoinRPC lacks a few obscure features from jsonrpc, software using only the ServiceProxy class can be written the same to work with either version the user might choose to install:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from jsonrpc import ServiceProxy&lt;br /&gt;
  &lt;br /&gt;
access = ServiceProxy(&amp;quot;http://user:password@127.0.0.1:8332&amp;quot;)&lt;br /&gt;
access.getinfo()&lt;br /&gt;
access.listreceivedbyaddress(6)&lt;br /&gt;
#access.sendtoaddress(&amp;quot;11yEmxiMso2RsFVfBcCa616npBvGgxiBX&amp;quot;, 10)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The latest version of python-bitcoinrpc has a new syntax.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
from bitcoinrpc.authproxy import AuthServiceProxy&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Ruby ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ruby&amp;quot;&amp;gt;&lt;br /&gt;
require &#039;net/http&#039;&lt;br /&gt;
require &#039;uri&#039;&lt;br /&gt;
require &#039;json&#039;&lt;br /&gt;
&lt;br /&gt;
class BitcoinRPC&lt;br /&gt;
  def initialize(service_url)&lt;br /&gt;
    @uri = URI.parse(service_url)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def method_missing(name, *args)&lt;br /&gt;
    post_body = { &#039;method&#039; =&amp;gt; name, &#039;params&#039; =&amp;gt; args, &#039;id&#039; =&amp;gt; &#039;jsonrpc&#039; }.to_json&lt;br /&gt;
    resp = JSON.parse( http_post_request(post_body) )&lt;br /&gt;
    raise JSONRPCError, resp[&#039;error&#039;] if resp[&#039;error&#039;]&lt;br /&gt;
    resp[&#039;result&#039;]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def http_post_request(post_body)&lt;br /&gt;
    http    = Net::HTTP.new(@uri.host, @uri.port)&lt;br /&gt;
    request = Net::HTTP::Post.new(@uri.request_uri)&lt;br /&gt;
    request.basic_auth @uri.user, @uri.password&lt;br /&gt;
    request.content_type = &#039;application/json&#039;&lt;br /&gt;
    request.body = post_body&lt;br /&gt;
    http.request(request).body&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  class JSONRPCError &amp;lt; RuntimeError; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
if $0 == __FILE__&lt;br /&gt;
  h = BitcoinRPC.new(&#039;http://user:password@127.0.0.1:8332&#039;)&lt;br /&gt;
  p h.getbalance&lt;br /&gt;
  p h.getinfo&lt;br /&gt;
  p h.getnewaddress&lt;br /&gt;
  p h.dumpprivkey( h.getnewaddress )&lt;br /&gt;
  # also see: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Erlang ==&lt;br /&gt;
Get the rebar dependency from https://github.com/edescourtis/ebitcoind . By default the client will use the configuration in &amp;lt;code&amp;gt;$HOME/.bitcoin/bitcoin.conf&amp;lt;/code&amp;gt; or you can instead specify a URI like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;erlang&amp;quot;&amp;gt;ebitcoind:start_link(&amp;lt;&amp;lt;&amp;quot;http://user:password@localhost:8332/&amp;quot;&amp;gt;&amp;gt;).&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is a usage example:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;erlang&amp;quot;&amp;gt;&lt;br /&gt;
1&amp;gt; {ok,Pid} = ebitcoind:start_link().&lt;br /&gt;
{ok,&amp;lt;0.177.0&amp;gt;}&lt;br /&gt;
2&amp;gt; ebitcoind:getbalance(Pid).&lt;br /&gt;
8437.02478294&lt;br /&gt;
3&amp;gt; ebitcoind:getinfo(Pid).&lt;br /&gt;
{ok, #{&amp;lt;&amp;lt;&amp;quot;balance&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 8437.02478294,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;blocks&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 260404,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;connections&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 8,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;difficulty&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 148819199.80509263,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;errors&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;gt;&amp;gt;,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;keypoololdest&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1420307921,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;keypoolsize&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 102,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;paytxfee&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 0.0,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;protocolversion&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 70002,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;proxy&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;gt;&amp;gt;,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;relayfee&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1.0e-5,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;testnet&amp;quot;&amp;gt;&amp;gt; =&amp;gt; false,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;timeoffset&amp;quot;&amp;gt;&amp;gt; =&amp;gt; -3,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;version&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 90300,&lt;br /&gt;
  &amp;lt;&amp;lt;&amp;quot;walletversion&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 60000}}&lt;br /&gt;
4&amp;gt; ebitcoind:setgenerate(Pid,true).&lt;br /&gt;
{ok, null}&lt;br /&gt;
5&amp;gt; ebitcoind:getblocktemplate(Pid, #{}).                     &lt;br /&gt;
{ok,#{&amp;lt;&amp;lt;&amp;quot;bits&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;181b0dca&amp;quot;&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;coinbaseaux&amp;quot;&amp;gt;&amp;gt; =&amp;gt; #{&amp;lt;&amp;lt;&amp;quot;flags&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;062f503253482f&amp;quot;&amp;gt;&amp;gt;},&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;coinbasevalue&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 2518690558,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;curtime&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1420421249,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;height&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 337533,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;mintime&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1420416332,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;mutable&amp;quot;&amp;gt;&amp;gt; =&amp;gt; [&amp;lt;&amp;lt;&amp;quot;time&amp;quot;&amp;gt;&amp;gt;,&amp;lt;&amp;lt;&amp;quot;transactions&amp;quot;&amp;gt;&amp;gt;,&amp;lt;&amp;lt;&amp;quot;prevblock&amp;quot;&amp;gt;&amp;gt;],&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;noncerange&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;00000000ffffffff&amp;quot;&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;previousblockhash&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;000000000000000017ce0a0d328bf84cc597785844393e899e9a971a81679a5f&amp;quot;&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;sigoplimit&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 20000,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;sizelimit&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1000000,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;target&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;00000000000000001b0dca00000000000000000000000000000000000000&amp;quot;...&amp;gt;&amp;gt;,&lt;br /&gt;
      &amp;lt;&amp;lt;&amp;quot;transactions&amp;quot;&amp;gt;&amp;gt; =&amp;gt; [#{&amp;lt;&amp;lt;&amp;quot;data&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;01000000049b47ce225d29bff7c18b7df7d7df4693523a52&amp;quot;...&amp;gt;&amp;gt;,&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;depends&amp;quot;&amp;gt;&amp;gt; =&amp;gt; [],&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;fee&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 0,&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;hash&amp;quot;&amp;gt;&amp;gt; =&amp;gt; &amp;lt;&amp;lt;&amp;quot;6d0d76e1f27b3a6f7325923710dcdb4107c9&amp;quot;...&amp;gt;&amp;gt;,&lt;br /&gt;
         &amp;lt;&amp;lt;&amp;quot;sigops&amp;quot;&amp;gt;&amp;gt; =&amp;gt; 1},&lt;br /&gt;
      ...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
&lt;br /&gt;
The [http://jsonrpcphp.org/ JSON-RPC PHP] library also makes it very easy to connect to Bitcoin.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  require_once &#039;jsonRPCClient.php&#039;;&lt;br /&gt;
  &lt;br /&gt;
  $bitcoin = new jsonRPCClient(&#039;http://user:password@127.0.0.1:8332/&#039;);&lt;br /&gt;
   &lt;br /&gt;
  echo &amp;quot;&amp;lt;pre&amp;gt;\n&amp;quot;;&lt;br /&gt;
  print_r($bitcoin-&amp;gt;getinfo()); echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Received: &amp;quot;.$bitcoin-&amp;gt;getreceivedbylabel(&amp;quot;Your Address&amp;quot;).&amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; The jsonRPCClient library uses fopen() and will throw an exception saying &amp;quot;Unable to connect&amp;quot; if it receives a 404 or 500 error from bitcoind. This prevents you from being able to see error messages generated by bitcoind (as they are sent with status 404 or 500). The [https://github.com/aceat64/EasyBitcoin-PHP EasyBitcoin-PHP library] is similar in function to JSON-RPC PHP but does not have this issue.&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to tell Java to use HTTP Basic authentication is to set a default Authenticator:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
  final String rpcuser =&amp;quot;...&amp;quot;;&lt;br /&gt;
  final String rpcpassword =&amp;quot;...&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
  Authenticator.setDefault(new Authenticator() {&lt;br /&gt;
      protected PasswordAuthentication getPasswordAuthentication() {&lt;br /&gt;
          return new PasswordAuthentication (rpcuser, rpcpassword.toCharArray());&lt;br /&gt;
      }&lt;br /&gt;
  });&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once that is done, [http://json-rpc.org/wiki/implementations any JSON-RPC library for Java] (or ordinary URL POSTs) may be used to communicate with the Bitcoin server.&lt;br /&gt;
&lt;br /&gt;
Instead to write your wrapper you can use [[Bitcoin-JSON-RPC-Client|this implementation]] or [https://github.com/johannbarbie/BitcoindClient4J this one] .&lt;br /&gt;
&lt;br /&gt;
== Perl ==&lt;br /&gt;
&lt;br /&gt;
The JSON::RPC package from CPAN can be used to communicate with Bitcoin.  You must set the client&#039;s credentials; for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
  use JSON::RPC::Client;&lt;br /&gt;
  use Data::Dumper;&lt;br /&gt;
   &lt;br /&gt;
  my $client = new JSON::RPC::Client;&lt;br /&gt;
  &lt;br /&gt;
  $client-&amp;gt;ua-&amp;gt;credentials(&lt;br /&gt;
     &#039;localhost:8332&#039;, &#039;jsonrpc&#039;, &#039;user&#039; =&amp;gt; &#039;password&#039;  # REPLACE WITH YOUR bitcoin.conf rpcuser/rpcpassword&lt;br /&gt;
      );&lt;br /&gt;
  &lt;br /&gt;
  my $uri = &#039;http://localhost:8332/&#039;;&lt;br /&gt;
  my $obj = {&lt;br /&gt;
      method  =&amp;gt; &#039;getinfo&#039;,&lt;br /&gt;
      params  =&amp;gt; [],&lt;br /&gt;
   };&lt;br /&gt;
   &lt;br /&gt;
  my $res = $client-&amp;gt;call( $uri, $obj );&lt;br /&gt;
   &lt;br /&gt;
  if ($res){&lt;br /&gt;
      if ($res-&amp;gt;is_error) { print &amp;quot;Error : &amp;quot;, $res-&amp;gt;error_message; }&lt;br /&gt;
      else { print Dumper($res-&amp;gt;result); }&lt;br /&gt;
  } else {&lt;br /&gt;
      print $client-&amp;gt;status_line;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Go ==&lt;br /&gt;
&lt;br /&gt;
The [https://github.com/btcsuite/btcrpcclient btcrpcclient package] can be used to communicate with Bitcoin.  You must provide credentials to match the client you are communicating with.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
package main&lt;br /&gt;
&lt;br /&gt;
import (&lt;br /&gt;
	&amp;quot;github.com/btcsuite/btcd/chaincfg&amp;quot;&lt;br /&gt;
	&amp;quot;github.com/btcsuite/btcrpcclient&amp;quot;&lt;br /&gt;
	&amp;quot;github.com/btcsuite/btcutil&amp;quot;&lt;br /&gt;
	&amp;quot;log&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
func main() {&lt;br /&gt;
	// create new client instance&lt;br /&gt;
	client, err := btcrpcclient.New(&amp;amp;btcrpcclient.ConnConfig{&lt;br /&gt;
		HttpPostMode: true,&lt;br /&gt;
		DisableTLS:   true,&lt;br /&gt;
		Host:         &amp;quot;127.0.0.1:8332&amp;quot;,&lt;br /&gt;
		User:         &amp;quot;rpcUsername&amp;quot;,&lt;br /&gt;
		Pass:         &amp;quot;rpcPassword&amp;quot;,&lt;br /&gt;
	}, nil)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;error creating new btc client: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// list accounts&lt;br /&gt;
	accounts, err := client.ListAccounts()&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;error listing accounts: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	// iterate over accounts (map[string]btcutil.Amount) and write to stdout&lt;br /&gt;
	for label, amount := range accounts {&lt;br /&gt;
		log.Printf(&amp;quot;%s: %s&amp;quot;, label, amount)&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// prepare a sendMany transaction&lt;br /&gt;
	receiver1, err := btcutil.DecodeAddress(&amp;quot;1someAddressThatIsActuallyReal&amp;quot;, &amp;amp;chaincfg.MainNetParams)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;address receiver1 seems to be invalid: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	receiver2, err := btcutil.DecodeAddress(&amp;quot;1anotherAddressThatsPrettyReal&amp;quot;, &amp;amp;chaincfg.MainNetParams)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;address receiver2 seems to be invalid: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	receivers := map[btcutil.Address]btcutil.Amount{&lt;br /&gt;
		receiver1: 42,  // 42 satoshi&lt;br /&gt;
		receiver2: 100, // 100 satoshi&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// create and send the sendMany tx&lt;br /&gt;
	txSha, err := client.SendMany(&amp;quot;some-account-label-from-which-to-send&amp;quot;, receivers)&lt;br /&gt;
	if err != nil {&lt;br /&gt;
		log.Fatalf(&amp;quot;error sendMany: %v&amp;quot;, err)&lt;br /&gt;
	}&lt;br /&gt;
	log.Printf(&amp;quot;sendMany completed! tx sha is: %s&amp;quot;, txSha.String())&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== .NET (C#) ==&lt;br /&gt;
The communication with the RPC service can be achieved using the standard http request/response objects.&lt;br /&gt;
A library for serialising and deserializing Json will make your life a lot easier:&lt;br /&gt;
&lt;br /&gt;
Json.Net ( http://james.newtonking.com/json ) is a high performance JSON package for .Net.  It is also available via NuGet from the package manager console ( Install-Package Newtonsoft.Json ).&lt;br /&gt;
&lt;br /&gt;
The following example uses Json.Net:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(&amp;quot;http://localhost.:8332&amp;quot;);&lt;br /&gt;
 webRequest.Credentials = new NetworkCredential(&amp;quot;user&amp;quot;, &amp;quot;pwd&amp;quot;);&lt;br /&gt;
 /// important, otherwise the service can&#039;t desirialse your request properly&lt;br /&gt;
 webRequest.ContentType = &amp;quot;application/json-rpc&amp;quot;;&lt;br /&gt;
 webRequest.Method = &amp;quot;POST&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
 JObject joe = new JObject();&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;jsonrpc&amp;quot;, &amp;quot;1.0&amp;quot;));&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;id&amp;quot;, &amp;quot;1&amp;quot;));&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;method&amp;quot;, Method));&lt;br /&gt;
 // params is a collection values which the method requires..&lt;br /&gt;
 if (Params.Keys.Count == 0)&lt;br /&gt;
 {&lt;br /&gt;
  joe.Add(new JProperty(&amp;quot;params&amp;quot;, new JArray()));&lt;br /&gt;
 }&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
     JArray props = new JArray();&lt;br /&gt;
     // add the props in the reverse order!&lt;br /&gt;
     for (int i = Params.Keys.Count - 1; i &amp;gt;= 0; i--)&lt;br /&gt;
     {&lt;br /&gt;
        .... // add the params&lt;br /&gt;
     }&lt;br /&gt;
     joe.Add(new JProperty(&amp;quot;params&amp;quot;, props));&lt;br /&gt;
     }&lt;br /&gt;
  &lt;br /&gt;
     // serialize json for the request&lt;br /&gt;
     string s = JsonConvert.SerializeObject(joe);&lt;br /&gt;
     byte[] byteArray = Encoding.UTF8.GetBytes(s);&lt;br /&gt;
     webRequest.ContentLength = byteArray.Length;&lt;br /&gt;
     Stream dataStream = webRequest.GetRequestStream();&lt;br /&gt;
     dataStream.Write(byteArray, 0, byteArray.Length);&lt;br /&gt;
     dataStream.Close();&lt;br /&gt;
     &lt;br /&gt;
     &lt;br /&gt;
     WebResponse webResponse = webRequest.GetResponse();&lt;br /&gt;
     &lt;br /&gt;
     ... // deserialze the response&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is also a wrapper for Json.NET called Bitnet (https://sourceforge.net/projects/bitnet)&lt;br /&gt;
implementing Bitcoin API in more convenient way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
     BitnetClient bc = new BitnetClient(&amp;quot;http://127.0.0.1:8332&amp;quot;);&lt;br /&gt;
     bc.Credentials = new NetworkCredential(&amp;quot;user&amp;quot;, &amp;quot;pass&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
     var p = bc.GetDifficulty();&lt;br /&gt;
     Console.WriteLine(&amp;quot;Difficulty:&amp;quot; + p.ToString());&lt;br /&gt;
&lt;br /&gt;
     var inf = bc.GetInfo();&lt;br /&gt;
     Console.WriteLine(&amp;quot;Balance:&amp;quot; + inf[&amp;quot;balance&amp;quot;]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A more complete library and wrapper for Bitcoin (also for Litecoin and all Bitcoin clones) is [https://github.com/GeorgeKimionis/BitcoinLib BitcoinLib] (https://github.com/GeorgeKimionis/BitcoinLib) which is also available via [https://www.nuget.org/packages/BitcoinLib/ NuGet] from the package manager console (Install-Package BitcoinLib). &lt;br /&gt;
&lt;br /&gt;
Querying the daemon with [https://github.com/GeorgeKimionis/BitcoinLib BitcoinLib] is as simple as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
     IBitcoinService bitcoinService = new BitcoinService();&lt;br /&gt;
&lt;br /&gt;
     double networkDifficulty = bitcoinService.GetDifficulty();&lt;br /&gt;
     decimal myBalance = bitcoinService.GetBalance();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Node.js ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/freewil/node-bitcoin node-bitcoin] (npm: bitcoin) &lt;br /&gt;
&lt;br /&gt;
Example using node-bitcoin:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var bitcoin = require(&#039;bitcoin&#039;);&lt;br /&gt;
var client = new bitcoin.Client({&lt;br /&gt;
  host: &#039;localhost&#039;,&lt;br /&gt;
  port: 8332,&lt;br /&gt;
  user: &#039;user&#039;,&lt;br /&gt;
  pass: &#039;pass&#039;&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
client.getDifficulty(function(err, difficulty) {&lt;br /&gt;
  if (err) {&lt;br /&gt;
    return console.error(err);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  console.log(&#039;Difficulty: &#039; + difficulty);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example using Kapitalize:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&#039;javascript&#039;&amp;gt;&lt;br /&gt;
var client = require(&#039;kapitalize&#039;)()&lt;br /&gt;
&lt;br /&gt;
client.auth(&#039;user&#039;, &#039;password&#039;)&lt;br /&gt;
&lt;br /&gt;
client&lt;br /&gt;
.getInfo()&lt;br /&gt;
.getDifficulty(function(err, difficulty) {&lt;br /&gt;
  console.log(&#039;Dificulty: &#039;, difficulty)&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Command line (cURL) ==&lt;br /&gt;
&lt;br /&gt;
You can also send commands and see results using [http://curl.haxx.se/ cURL] or some other command-line HTTP-fetching utility; for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  curl --user user --data-binary &#039;{&amp;quot;jsonrpc&amp;quot;: &amp;quot;1.0&amp;quot;, &amp;quot;id&amp;quot;:&amp;quot;curltest&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;getinfo&amp;quot;, &amp;quot;params&amp;quot;: [] }&#039; &lt;br /&gt;
    -H &#039;content-type: text/plain;&#039; http://127.0.0.1:8332/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your rpcpassword, and then will see something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
  {&amp;quot;result&amp;quot;:{&amp;quot;balance&amp;quot;:0.000000000000000,&amp;quot;blocks&amp;quot;:59952,&amp;quot;connections&amp;quot;:48,&amp;quot;proxy&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;generate&amp;quot;:false,&lt;br /&gt;
     &amp;quot;genproclimit&amp;quot;:-1,&amp;quot;difficulty&amp;quot;:16.61907875185736,&amp;quot;error&amp;quot;:null,&amp;quot;id&amp;quot;:&amp;quot;curltest&amp;quot;}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clojure ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/aviad/clj-btc clj-btc] is a Clojure wrapper for the bitcoin API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;clojure&amp;quot;&amp;gt;&lt;br /&gt;
user=&amp;gt; (require &#039;[clj-btc.core :as btc])&lt;br /&gt;
nil&lt;br /&gt;
user=&amp;gt; (btc/getinfo)&lt;br /&gt;
{&amp;quot;timeoffset&amp;quot; 0, &amp;quot;protocolversion&amp;quot; 70001, &amp;quot;blocks&amp;quot; 111908, &amp;quot;errors&amp;quot; &amp;quot;&amp;quot;,&lt;br /&gt;
 &amp;quot;testnet&amp;quot; true, &amp;quot;proxy&amp;quot; &amp;quot;&amp;quot;, &amp;quot;connections&amp;quot; 4, &amp;quot;version&amp;quot; 80500,&lt;br /&gt;
 &amp;quot;keypoololdest&amp;quot; 1380388750, &amp;quot;paytxfee&amp;quot; 0E-8M,&lt;br /&gt;
 &amp;quot;difficulty&amp;quot; 4642.44443532M, &amp;quot;keypoolsize&amp;quot; 101, &amp;quot;balance&amp;quot; 0E-8M,&lt;br /&gt;
 &amp;quot;walletversion&amp;quot; 60000}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Qt/C++ ==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/devonit/qjsonrpc/overview QJsonRpc] is a Qt/C++ implementation of the JSON-RPC protocol. It integrates nicely with Qt, leveraging Qt&#039;s meta object system in order to provide services over the JSON-RPC protocol. QJsonRpc is licensed under the LGPLv2.1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
 * Copyright (C) 2012-2013 Matt Broadstone&lt;br /&gt;
 * Contact: http://bitbucket.org/devonit/qjsonrpc&lt;br /&gt;
 *&lt;br /&gt;
 * This file is part of the QJsonRpc Library.&lt;br /&gt;
 *&lt;br /&gt;
 * This library is free software; you can redistribute it and/or&lt;br /&gt;
 * modify it under the terms of the GNU Lesser General Public&lt;br /&gt;
 * License as published by the Free Software Foundation; either&lt;br /&gt;
 * version 2.1 of the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This library is distributed in the hope that it will be useful,&lt;br /&gt;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU&lt;br /&gt;
 * Lesser General Public License for more details.&lt;br /&gt;
 */&lt;br /&gt;
#include &amp;lt;QCoreApplication&amp;gt;&lt;br /&gt;
#include &amp;lt;QAuthenticator&amp;gt;&lt;br /&gt;
#include &amp;lt;QStringList&amp;gt;&lt;br /&gt;
#include &amp;lt;QDebug&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#include &amp;quot;qjsonrpchttpclient.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
class HttpClient : public QJsonRpcHttpClient&lt;br /&gt;
{&lt;br /&gt;
    Q_OBJECT&lt;br /&gt;
public:&lt;br /&gt;
    HttpClient(const QString &amp;amp;endpoint, QObject *parent = 0)&lt;br /&gt;
        : QJsonRpcHttpClient(endpoint, parent)&lt;br /&gt;
    {&lt;br /&gt;
        // defaults added for my local test server&lt;br /&gt;
        m_username = &amp;quot;bitcoinrpc&amp;quot;;&lt;br /&gt;
        m_password = &amp;quot;232fb3276bbb7437d265298ea48bdc46&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void setUsername(const QString &amp;amp;username) {&lt;br /&gt;
        m_username = username;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void setPassword(const QString &amp;amp;password) {&lt;br /&gt;
        m_password = password;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
private Q_SLOTS:&lt;br /&gt;
    virtual void handleAuthenticationRequired(QNetworkReply *reply, QAuthenticator * authenticator)&lt;br /&gt;
    {&lt;br /&gt;
        Q_UNUSED(reply)&lt;br /&gt;
        authenticator-&amp;gt;setUser(m_username);&lt;br /&gt;
        authenticator-&amp;gt;setPassword(m_password);&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
private:&lt;br /&gt;
    QString m_username;&lt;br /&gt;
    QString m_password;&lt;br /&gt;
&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char **argv)&lt;br /&gt;
{&lt;br /&gt;
    QCoreApplication app(argc, argv);&lt;br /&gt;
    if (app.arguments().size() &amp;lt; 2) {&lt;br /&gt;
        qDebug() &amp;lt;&amp;lt; &amp;quot;usage: &amp;quot; &amp;lt;&amp;lt; argv[0] &amp;lt;&amp;lt; &amp;quot;[-u username] [-p password] &amp;lt;command&amp;gt; &amp;lt;arguments&amp;gt;&amp;quot;;&lt;br /&gt;
        return -1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    HttpClient client(&amp;quot;http://127.0.0.1:8332&amp;quot;);&lt;br /&gt;
    if (app.arguments().contains(&amp;quot;-u&amp;quot;)) {&lt;br /&gt;
        int idx = app.arguments().indexOf(&amp;quot;-u&amp;quot;);&lt;br /&gt;
        app.arguments().removeAt(idx);&lt;br /&gt;
        client.setUsername(app.arguments().takeAt(idx));&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    if (app.arguments().contains(&amp;quot;-p&amp;quot;)) {&lt;br /&gt;
        int idx = app.arguments().indexOf(&amp;quot;-p&amp;quot;);&lt;br /&gt;
        app.arguments().removeAt(idx);&lt;br /&gt;
        client.setPassword(app.arguments().takeAt(idx));&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    QJsonRpcMessage message = QJsonRpcMessage::createRequest(app.arguments().at(1));&lt;br /&gt;
    QJsonRpcMessage response = client.sendMessageBlocking(message);&lt;br /&gt;
    if (response.type() == QJsonRpcMessage::Error) {&lt;br /&gt;
        qDebug() &amp;lt;&amp;lt; response.errorData();&lt;br /&gt;
        return -1;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    qDebug() &amp;lt;&amp;lt; response.toJson();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original_Bitcoin_client/API_Calls_list|API calls list]]&lt;br /&gt;
* [[Running Bitcoin]]&lt;br /&gt;
* [[Lazy API]]&lt;br /&gt;
* [[PHP developer intro]]&lt;br /&gt;
* [[Raw_Transactions|Raw Transactions API]]&lt;br /&gt;
* [https://gourl.io/bitcoin-payment-gateway-api.html GoUrl Bitcoin PHP Payment API]&lt;br /&gt;
* [http://blockchain.info/api/json_rpc_api Web Based JSON RPC interface.]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[zh-cn:API_reference_(JSON-RPC)]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=How_to_accept_Bitcoin,_for_small_businesses&amp;diff=45625</id>
		<title>How to accept Bitcoin, for small businesses</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=How_to_accept_Bitcoin,_for_small_businesses&amp;diff=45625"/>
		<updated>2014-04-01T20:20:02Z</updated>

		<summary type="html">&lt;p&gt;Jcv: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{merge|Merchant Howto}}&lt;br /&gt;
&lt;br /&gt;
This guide is intended for small business owners who wish to help promote Bitcoin by accepting it as payment for goods and services.  It&#039;s written with the assumption that you operate a regular business that sells goods or services for regular national currency such as dollars, and that you wish to accept Bitcoin as another legal way to pay, and that you intend to pay taxes on your Bitcoin income just like any other income.&lt;br /&gt;
&lt;br /&gt;
With Bitcoin being touted as a way to conduct anonymous transactions and as way to compete with government currency, many small business owners wonder what&#039;s the right way to accept and account Bitcoin, or if it&#039;s legal or ethical, or whether and how they should pay taxes on income received through Bitcoin.&lt;br /&gt;
&lt;br /&gt;
As far as we know, Bitcoin isn&#039;t yet formally recognized by governments and authorities as a &amp;quot;currency&amp;quot;.  But in practice, Bitcoin is likely no different than accepting payment in other forms, such as cash, or gold, or scrip, or gift cards or foreign currency.  We think that it is pretty much the same as the local businesses of Great Barrington, Massachusetts choosing to accept their locally-printed [http://www.reuters.com/article/2007/06/19/us-usa-economy-berkshares-idUSN0530157720070619 &amp;quot;Berkshire Bucks&amp;quot;] to support their local economy.&lt;br /&gt;
&lt;br /&gt;
====Starting to accept Bitcoin for transactions====&lt;br /&gt;
Accepting Bitcoin at a small business is best started in whichever manner keeps the accounting simple for you.  This will vary by the type of business you are operating.&lt;br /&gt;
&lt;br /&gt;
===Start with a sign===&lt;br /&gt;
[[{{ns:file}}:WeAcceptBitcoin.png‎]]&lt;br /&gt;
&lt;br /&gt;
If you expect that the number of people interested in using Bitcoin is small, you might simply start by posting a sign or a note: &amp;quot;We Accept Bitcoin&amp;quot;, and ask people to contact you directly in order to make a payment.  Even if hardly anybody uses Bitcoin as a payment method, you&#039;re helping Bitcoin in two ways: one, by increasing awareness, and two, by making your customers more willing to accept Bitcoin as payment from others in the future, because now they know somewhere they can spend it.&lt;br /&gt;
&lt;br /&gt;
===Utilize a merchant solution===&lt;br /&gt;
If you sell things on your website (goods or services), you&#039;ll want to use a [[#Merchant Services|Bitcoin merchant solution]] to accept the Bitcoins (you can usually opt to have them converted to USD or other currencies automatically with some services). &lt;br /&gt;
&lt;br /&gt;
If you sell things in a brick and mortar shop, customers can pay using hardware terminals, touch screen apps or simple wallet addresses through QR Codes.&lt;br /&gt;
&lt;br /&gt;
[[File:Bitcoin-pos-terminal.png|200 px|alt=Bitcoin POS Terminal|Coinkite terminal]] [[File:Mobile_Web_App_Bitcoin_Register.jpeg|100 px|alt=Bitcoin POS Terminal|CoinBox terminal]]&lt;br /&gt;
&lt;br /&gt;
===Smart Phone or Tablet===&lt;br /&gt;
You can use a wallet address with any wallet. For that it&#039;s best if you can place a QR code near your register to which the customers can scan with their phone and pay (use http://ma.eatgold.com/accept to make a QR code sign).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
* [[File:BitcoinRegister.gif|20px|link=http://coinbox.it/merchant]][http://coinbox.it/merchant CoinBox]&lt;br /&gt;
* [[File:BIPS.gif|20px|link=https://bips.me]] [https://bips.me BIPS]&lt;br /&gt;
* [http://www.blockchain.info/wallet Blockchain.info]&lt;br /&gt;
* [https://www.xcoinmoney.com/ xCoinMoney] Online wallet for instant payment and subscriptions&lt;br /&gt;
* [https://coinbase.com/docs/merchant_tools/point_of_sale Coinbase]&lt;br /&gt;
* [[File:Coinkite.gif|20px|link=https://coinkite.com/promo/wikibiz]] [https://coinkite.com/promo/wikibiz Coinkite]&lt;br /&gt;
* [[File:gocoin-logo.png|20px|link=https://www.gocoin.com]] [https://www.gocoin.com GoCoin International Payment Processing for accepting Bitcoin and Litecoin payments]&lt;br /&gt;
* [http://www.mycoinsolution.com My Coin Solution] - Bitcoin consulting services and solutions&lt;br /&gt;
* [[File:Coin_Of_Sale_logo.png|20px|link=https://coinofsale.com]] [https://coinofsale.com Coin Of Sale] - device-independent Bitcoin POS payment system for retail merchants&lt;br /&gt;
&lt;br /&gt;
===Point-of-Sale hardware terminal===&lt;br /&gt;
With custom hardware you can integrate with existing registers and point-of-sales solutions (example:  [[File:Coinkite.gif|20px|link=https://coinkite.com/promo/wikibiz]] [https://coinkite.com/promo/wikibiz Coinkite]).&lt;br /&gt;
&lt;br /&gt;
===Accounting===&lt;br /&gt;
When a customer makes a payment, you might simply issue a credit to their account.  Ideally, you want to enter it in a way that suggests you received a payment.  You could consider entering it as a &amp;quot;discount&amp;quot;, but you may want to consider whether this inappropriately disguises the nature of the transaction.  If on the other hand, you&#039;re giving &amp;quot;discounts&amp;quot; for Bitcoins, but then you are selling the Bitcoins for currency and then counting that as income, then chances are good that your calculation of income is making up for it.  Ask your accountant.&lt;br /&gt;
&lt;br /&gt;
===Businesses that offer gift cards===&lt;br /&gt;
If your business sells gift cards or gift certificates, you may find that the easiest way to accept Bitcoin is to accept it only for the purchase of gift cards, and then require the gift cards to be used for actual purchases of goods or services.  This way, the accounting practices you already have in place for processing gift cards can be put to use.  The accounting for Bitcoins would then be minimized to tracking sales of a single SKU.&lt;br /&gt;
&lt;br /&gt;
This method is also ideal for retail food establishments and convenience stores, where the payment of Bitcoins through a mobile phone for a small daily food purchase might be cumbersome or disruptive, especially in front of a line of other customers.  Bitcoins in this case would be best used to reload prepaid cards that can then be swiped at point-of-sale.&lt;br /&gt;
&lt;br /&gt;
If you don&#039;t accept gift cards, but you already accept credit cards through a swipe terminal, consider the possibility that you could add a retail gift card system through the swipe terminal you already own.  Many point-of-sale terminals, including ones from VeriFone&amp;amp;reg;, are designed around the ability to support multiple applications on the same terminal.  Gift cards are also highly profitable because of &amp;quot;breakage&amp;quot;, or in other words, the fact that a significant percentage of them never get redeemed.&lt;br /&gt;
&lt;br /&gt;
You could consider adding a private label gift card program from a provider who specializes in this, not just as a jumpstart to accepting Bitcoins, but as an extra boost to income.  A private label gift card service provider necessarily have to handle your funds - they can simply provide a solution that keeps track of the balance on the cards on your behalf, including features that allow users to check their balances by phone or by web.  Such a solution, of course, is also what makes the cards swipeable through the card reader.&lt;br /&gt;
&lt;br /&gt;
===Businesses that mail invoices===&lt;br /&gt;
Does your business send out invoices to customers?  Adding one line may make a huge impact for the Bitcoin economy.  Perhaps you list it as a payment option just after Visa, MasterCard, and American Express, even if that means your customer must call or e-mail to make a payment.&lt;br /&gt;
&lt;br /&gt;
If you have access to the programming expertise such that you can generate Bitcoin addresses programmatically, consider generating a brand new Bitcoin address for each invoice, and print it on the invoice.  When a Bitcoin payment arrives, you&#039;ll automatically know where it should arrive.&lt;br /&gt;
&lt;br /&gt;
Customers might wonder how much BTC they should pay in order to satisfy an invoice in full.    Your invoice might suggest an amount.  For example, if your invoice is for $100 and BTC&#039;s are currently worth $1.24 each, your invoice might suggest that it can be paid in full &#039;&#039;&amp;quot;with a payment of 80.65 BTC if paid by (date)&amp;quot;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
You might be able to anticipate the possibility that even though a Bitcoin address can be printed on an invoice or payment stub, that they are very cumbersome for most people to type, especially being a mix of uppercase and lowercase letters.  However, you should probably still do it anyway.  The customer is probably going to want some paper trail for his payment.  Giving him a pre-printed payment stub with a pre-printed address will satisfy that, because the customer can independently and publicly prove through [[Block Explorer]] that the payment took place.&lt;br /&gt;
&lt;br /&gt;
Does your business have a website?  On your invoice, consider allowing them to go to a special URL to get the address to make a Bitcoin payment just by typing in their invoice number.  For example, &#039;&#039;ht&amp;lt;nowiki&amp;gt;tps://ww&amp;lt;/nowiki&amp;gt;w.yoursite.com/paybtc&#039;&#039; with a form they can enter their invoice number, or just &#039;&#039;ht&amp;lt;nowiki&amp;gt;tps://ww&amp;lt;/nowiki&amp;gt;w.yoursite.com/paybtc/60365&#039;&#039; for paying invoice #60365.  This way, they can see the Bitcoin address, copy and paste it directly into their Bitcoin client.&lt;br /&gt;
&lt;br /&gt;
Use a brand new address for each invoice whenever possible, and use it only once.  This benefits the customer as it removes any ambiguity as to which customer is making which payment and for which invoice.&lt;br /&gt;
&lt;br /&gt;
Known payment systems supporting invoicing, and recurring invoice setup, [[File:BIPS.gif|20px|link=https://bips.me/checkout/invoice/cb/bb]] [https://bips.me/checkout/invoice/cb/bb BIPS]&lt;br /&gt;
&lt;br /&gt;
Online wallet supporting invoicing, subscriptions and recurrent payments, [https://www.xcoinmoney.com/info/sending-paying-invoices xCoinMoney]&lt;br /&gt;
&lt;br /&gt;
===Avoiding fraud===&lt;br /&gt;
&lt;br /&gt;
You should also consider the possible risk that fraudsters could send counterfeit invoices to your customers, and entice them to make a payment to a Bitcoin address they control, instead of you.  While that isn&#039;t likely in general - it depends on how well a fraudster could find out who your customers are in the first place - it would certainly be an unpleasant situation if it ever happened.  One way you could control that is, whenever possible, never let people try to type Bitcoin addresses off payment stubs - instead, force people to get the full Bitcoin address from your website via secure SSL.  But, still print &#039;&#039;most&#039;&#039; of the address on the payment stub (perhaps with four or five characters starred out), so that the customer&#039;s need for a paper trail can be satisfied, so they can prove they paid if there is ever a dispute.&lt;br /&gt;
&lt;br /&gt;
==Setting Prices==&lt;br /&gt;
&lt;br /&gt;
When a business accepts bitcoins for payment, there generally is the need to convert them to the currencies used for paying suppliers, employees and shareholders. Some merchants set prices based on the current market rate at the time the price quote is presented to the customer (merchant services like [[File:BIPS.gif|20px|link=https://bips.me]] [https://bips.me BIPS], [http://www.bit-pay.com Bit-pay], [https://coinbase.com Coinbase] or [http://paysius.com Paysius] do this automatically).  &lt;br /&gt;
&lt;br /&gt;
[[Bitcoin Prices]] lists the exchange rate for many currencies on multiple exchanges.&lt;br /&gt;
&lt;br /&gt;
When prices are determined using an automated process, the current market rate can be based on either a current price or on a weighted average basis.  [[Bitcoin Charts]] provides a [http://bitcoincharts.com/about/markets-api data feed that provides weighted prices].&lt;br /&gt;
&lt;br /&gt;
When bitcoin funds for purchases are received, some merchants instantly exchange those proceeds into the preferred currency used (again done automatically by [[File:BIPS.gif|20px|link=https://bips.me]] [https://bips.me BIPS], [http://www.bit-pay.com Bit-pay] or [https://coinbase.com Coinbase].  Hedging for each transaction can nearly entirely eliminate exchange rate risk that the business is exposed to when accepting bitcoins for payment.&lt;br /&gt;
&lt;br /&gt;
==Contract==&lt;br /&gt;
&lt;br /&gt;
A sales contract might be used to ensure that specific terms are met to lessen the chances of a misunderstanding.  For instance, the party sending payment is responsible for paying any [[transaction fee]] that might be necessary.  A contract might specify that a transaction fee must be paid and what amount, so as to prevent the situation where the transaction is considered a low priority transaction and thus isn&#039;t confirmed quickly.&lt;br /&gt;
&lt;br /&gt;
Other items that might be addressed in a contract:&lt;br /&gt;
&lt;br /&gt;
* Requirement and handling of escrow through an [[:Category:Escrow_services|escrow service]].&lt;br /&gt;
* Jurisdiction for disputes.&lt;br /&gt;
* Refund policy (particularly with the exchange rate being volatile)&lt;br /&gt;
&lt;br /&gt;
==Paying taxes on Bitcoin income==&lt;br /&gt;
[[Tax compliance]] is a topic of concern for small businesses.  We aren&#039;t accountants or lawyers, and can&#039;t give legal or accounting advice.&lt;br /&gt;
&lt;br /&gt;
But in many respects, Bitcoin transactions work very much like cash.  Just like Bitcoin, cash is anonymous and doesn&#039;t leave a paper trail, yet is widely used in commerce every day.&lt;br /&gt;
&lt;br /&gt;
Ask yourself how you would handle a cash transaction.  Do you accept cash transactions?  Do you normally pay taxes on cash transactions?  The answer for Bitcoin should probably be the same.&lt;br /&gt;
&lt;br /&gt;
As for how to decide what a Bitcoin transaction is worth... the IRS, as far as we know, has never issued a guide mentioning how to value Bitcoin transactions.  But they probably have rules and guidelines on how to value transactions made in foreign currency or &amp;quot;cash equivalents&amp;quot;.  We imagine the accounting would be similar.&lt;br /&gt;
&lt;br /&gt;
With Bitcoins, there&#039;s likely to be some difference between the value of BTC when you received them as payment, versus when you go to exchange them for another currency like USD, should you decide to do so.  This scenario, likewise, would be no different if you accepted foreign currency or gold as payment.  Under some scenarios, it might make sense to book the dollar value of BTC income as it is received, and then to book any difference incurred when it is exchanged for fiat currency.  Under others, it might make sense to book the whole thing at the time of exchange.&lt;br /&gt;
&lt;br /&gt;
Perhaps you might talk to your accountant.  You don&#039;t need to get into a discussion with your accountant about block chains and private keys or the philosophy behind a decentralized currency.  By comparing the fundamentals of Bitcoins to accounting concepts already well understood by the public, you can probably get all the answers you need.  What would you ask your accountant if you decided that you wanted to accept &#039;&#039;Berkshire Bucks&#039;&#039; or 1-ounce gold coins as payment?&lt;br /&gt;
&lt;br /&gt;
== Merchant Services ==&lt;br /&gt;
* [http://blockchain.info/api/api_receive Blockchain.info] Free APIs to process bitcoin payments. No sign up or account needed.&lt;br /&gt;
* [[File:BitcoinRegister.gif|20px|link=http://coinbox.it/merchant]] [http://coinbox.it/merchant CoinBox] Bitcoin Point of Sales application for Android, with integration into various exchanges. Similar to Square.&lt;br /&gt;
* [[File:BIPS.gif|20px|link=https://bips.me]] [https://bips.me BIPS] Payment Service Provider (PSP) specializing in the technical aspects of accepting cryptocurrencies - such as bitcoin. Supports Bitcoin Web Payments, Mobile Checkout, In-store Bitcoin Payments and Bitcoin Invoicing with recurring billing in bitcoin.&lt;br /&gt;
* [https://www.bitpay.com BitPay] Bitcoin payment processor with mobile checkout solution&lt;br /&gt;
* [https://www.xcoinmoney.com/ xCoinMoney] Online wallet for instant payment and subscriptions.&lt;br /&gt;
* [https://www.bitpagos.net BitPagos] Bitcoin and Credit Card payment processor&lt;br /&gt;
* [https://www.btcmerch.com BTCMerch] Payment processor for bitcoins and other cryptocurrencies. 0.5% transaction fee. Sandbox is available.&lt;br /&gt;
* [https://bitmerch.com BitMerch] Provides HTML buttons to start accepting bitcoins instantly. No server side setup required.&lt;br /&gt;
* [https://coinbase.com/docs/merchant_tools/payment_buttons Coinbase] Offers payment buttons, checkout pages, shopping cart integration, and daily cash out to USD.&lt;br /&gt;
* [[File:Coinkite.gif|20px|link=https://coinkite.com]] [https://coinkite.com/faq/terminal Coinkite] Full-reserve banking, payment buttons, invoice pages, hardware POS terminals, and Debit-Cards.&lt;br /&gt;
* [https://mtgox.com/merchant MTGOX] Bitcoin payment processing&lt;br /&gt;
* [https://www.okpay.com/en/services/accept-payments/index.html OKPAY] Bitcoin payment processing for merchants&lt;br /&gt;
* [http://fasterco.in Fasterco.in] Bitcoin payment processing for merchants and day-traders&lt;br /&gt;
* [http://snowcron.com Snowcron] Bitcoin Store Engine: Handles payments, sends your customers information they ordered (reg. codes, passwords...) No web programming required.&lt;br /&gt;
* [[File:gocoin-logo.png|20px|link=https://www.gocoin.com]] [https://www.gocoin.com/docs GoCoin International payment gateway and processing platform for Merchants]&lt;br /&gt;
* [https://coinvoice.com/ Coinvoice] Invoice in USD or BTC, Get paid in USD or BTC.&lt;br /&gt;
&lt;br /&gt;
== Help this article ==&lt;br /&gt;
&lt;br /&gt;
This article is a stub, please add to it!&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Merchant Howto]]&lt;br /&gt;
* [[In-store Transactions]]&lt;br /&gt;
* [[Tax compliance]]&lt;br /&gt;
* [[Securing online services]]&lt;br /&gt;
* [[BitCoins Mobile]] provides accurate up to date pricing from multiple exchanges from your Apple iPad, iPhone, or iPod Touch.&lt;br /&gt;
* [[Bitcoin PayFlow]] automates the process for accepting bitcoins&lt;br /&gt;
* [[Lazy API]] The lazy (and possibly easiest?) way to accept bitcoin payments on your website&lt;br /&gt;
&lt;br /&gt;
[[Category:ECommerce]]&lt;br /&gt;
[[Category:Local]]&lt;br /&gt;
&lt;br /&gt;
[[de:Bitcoin_als_Geschäft_akzeptieren]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;diff=44820</id>
		<title>Thin Client Security</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;diff=44820"/>
		<updated>2014-03-07T19:41:19Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* btcd] */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Recently there have been a number of proposals for bitcoin clients which do not store a complete copy of every block in the entire block chain.  This page will refer to all such clients as &amp;quot;thin clients&amp;quot;.  This page is meant to be a place to try to make sense of the security and trust implications of the various schemes.&lt;br /&gt;
&lt;br /&gt;
== Block Height vs. Depth ==&lt;br /&gt;
&lt;br /&gt;
It is important to distinguish between block height verification and block depth verification.&lt;br /&gt;
&lt;br /&gt;
A client verifies the height H of a block by checking that there are H block &#039;&#039;&#039;before&#039;&#039;&#039; it, all of which are well-formed and obey the maximum-difficulty-adjustment-rate rule.  Currently only the Satoshi client,  libbitcoin, and btcd do block height verification.  Block height is the fundamental anchor of trustless security in the Bitcoin system.&lt;br /&gt;
&lt;br /&gt;
A client verifies the depth D of a block by checking that there are D blocks &#039;&#039;&#039;after&#039;&#039;&#039; it (also called &amp;quot;confirmations&amp;quot;), all of which are well-formed.  SPV clients substitute block depth for block height as a transaction validity check.  All clients use block depth as a measure of the liklihood of a [[Chain_Reorganization|blockchain reorganization]] producing a new longer fork which excludes the transaction (i.e. [[Orphan_Block|orphaning]] its block).&lt;br /&gt;
&lt;br /&gt;
See also [https://bitcointalk.org/index.php?topic=88208.msg987429#msg987429 some comments on probabilistic verification of block height].&lt;br /&gt;
&lt;br /&gt;
== Full-Chain Clients ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;thick&amp;quot; bitcoin client downloads a copy of the entire chain, including all transactions (not just headers).  It will be used as the reference point for security comparisions below.&lt;br /&gt;
&lt;br /&gt;
=== Block &#039;&#039;&#039;Height&#039;&#039;&#039; as a Transaction Validity Check ===&lt;br /&gt;
&lt;br /&gt;
A full-chain client trusts the difficultywise-longest [https://en.bitcoin.it/wiki/Protocol_rules#Blocks well-formed] blockchain it can find.  Any transaction on the difficultywise-longest well-formed chain is considered valid.  Therefore, the validity of a transaction is determined by its height -- i.e. how many blocks come &#039;&#039;before&#039;&#039; it.  A transaction&#039;s &#039;&#039;depth&#039;&#039; (the number of blocks &#039;&#039;after&#039;&#039; it) is used to determine the likelihood of the transaction being invalidated due to the emergence of a longer fork.&lt;br /&gt;
&lt;br /&gt;
==== [[bitcoind|bitcoin core]] ====&lt;br /&gt;
&lt;br /&gt;
==== [https://github.com/conformal/btcd btcd] ====&lt;br /&gt;
&lt;br /&gt;
== Header-Only Clients ==&lt;br /&gt;
&lt;br /&gt;
These client downloads a complete copy of the headers for all blocks in the entire blockchain.  This means that the download and storage requirements scale linearly with the amount of time since bitcoin was invented; it would be preferable to have the scaling be logarithmic or even constant.&lt;br /&gt;
&lt;br /&gt;
=== Simplified Payment Verification (SPV) ===&lt;br /&gt;
&lt;br /&gt;
This scheme is described in section 8 of the [http://bitcoin.org/bitcoin.pdf original bitcoin whitepaper].&lt;br /&gt;
&lt;br /&gt;
==== Block &#039;&#039;&#039;Depth&#039;&#039;&#039; as a Transaction Validity Check ====&lt;br /&gt;
&lt;br /&gt;
As Satoshi writes, &amp;quot;[the thin client] can&#039;t check the transaction for himself, but by linking it to a place in the chain, he can see that a network node has accepted it, and blocks added after it further confirm the network has accepted it.&amp;quot;  If we take &amp;quot;X&amp;quot; to be the &amp;quot;number of blocks added after it&amp;quot;, then SPV essentially trusts that a transaction X blocks deep in the chain does not have inputs which were already spent further back in the chain.  Therefore, the validity of a transaction is determined by its depth -- i.e. how many blocks come &#039;&#039;after&#039;&#039; it.  Other thin client protocols also include this assumption.&lt;br /&gt;
&lt;br /&gt;
This is very different from the trust model in the &amp;quot;thick&amp;quot; client: the thick client verifies that a transaction&#039;s inputs are unspent by actually checking the whole chain up to that point -- there is no &amp;quot;X blocks deep&amp;quot; involved here.  The thick client uses &amp;quot;X blocks deep&amp;quot; (aka &amp;quot;confirmations&amp;quot;) only once it has already decided that a transaction is valid (i.e. no [[Double-spending|double-spends]]).  At that point it uses &amp;quot;X blocks deep&amp;quot; to decide how likely it is that a longer fork in the chain will emerge which excludes that transaction.&lt;br /&gt;
&lt;br /&gt;
It is very important to understand how the same property (&amp;quot;X blocks deep&amp;quot;) is used to verify two different properties in the thick client and SPV cases.  &#039;&#039;&#039;The thick client never uses block depth as a measure of transaction validity; the SPV client does&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This is a concern in a situation where an SPV client is subjected to a double-spend attack by somebody who controls its network connection.  For example, suppose you are at a wi-fi cafe and are paying for something using your smartphone -- the cafe owner controls your network connection.  Satoshi acknowledges this implicitly when he writes that &amp;quot;the verification is reliable as long as honest nodes control the network&amp;quot; -- to be completely pedantic, this means that the verification is reliable as long as honest nodes control &#039;&#039;&#039;the part of the network that the SPV client is able to communicate with&#039;&#039;&#039;.  In an attack-by-ISP scenario this may not be a sufficiently strong security property.  The attacker would not need to overpower &amp;quot;the rest of the network&amp;quot; because the client is unable to communicate with it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== [[BitCoinJ|bitcoinj]] ====&lt;br /&gt;
&lt;br /&gt;
Simplified Payment Verification is the verification mechanism used in [[BitCoinJ|bitcoinj]].&lt;br /&gt;
&lt;br /&gt;
A security analysis of some of the issues in bitcoinj can be found [http://code.google.com/p/bitcoinj/wiki/SecurityModel here]; however:&lt;br /&gt;
&lt;br /&gt;
* The claim that &amp;quot;picking 10 nodes and requiring all of them to be consistent needs much less trust&amp;quot; overlooks the problem of [https://en.bitcoin.it/wiki/Weaknesses#Cancer_nodes &amp;quot;cancer nodes&amp;quot;] and [http://en.wikipedia.org/wiki/Sybil_attack Sybil attacks].&lt;br /&gt;
* Many of the security claims are qualified by some form of &amp;quot;if you don&#039;t think an attacker controls your internet connection&amp;quot;; see the previous section for a discussion of why this is problematic.&lt;br /&gt;
&lt;br /&gt;
==== [https://bitcointalk.org/index.php?topic=128055.0 picocoin] ====&lt;br /&gt;
&lt;br /&gt;
Simplified Payment Verification is the verification mechanism used in picocoin.&lt;br /&gt;
&lt;br /&gt;
The library (libccoin) that picocoin is based on includes code for validating scripts and blocks; this could potentially be used to implement a full-chain client.&lt;br /&gt;
&lt;br /&gt;
==== [[Electrum]] ====&lt;br /&gt;
&lt;br /&gt;
ThomasV [https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;amp;action=historysubmit&amp;amp;diff=42844&amp;amp;oldid=36519 claims] that &amp;quot;Electrum, it is doing SPV since 2012&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Unused Output Tree in the Blockchain (UOT) ===&lt;br /&gt;
&lt;br /&gt;
There have been several proposals (the first appears to be [https://bitcointalk.org/index.php?topic=21995.0 this one] by gmaxwell, who called it an &amp;quot;open transaction tree&amp;quot;, although the term &amp;quot;open&amp;quot; is now taken to mean &amp;quot;not yet mined into the blockchain&amp;quot; rather than &amp;quot;unspent&amp;quot;) to form a tree of unused transaction outputs at each block in the chain, hash it as a Merkle tree, and encode the root hash in the block chain (probably as part of the coinbase input).  This will be called an Unused Output Tree (UOT).  The first detailed proposal so far appears to be [https://en.bitcoin.it/wiki/User:DiThi/MTUT Alberto Torres&#039; proposal]; etotheipi&#039;s [https://bitcointalk.org/index.php?topic=88208.0 ultimate blockchain compression] is a variant of this.&lt;br /&gt;
&lt;br /&gt;
If such UOT hashes were included in the blockchain, a client which shipped with a [https://en.bitcoin.it/wiki/Vocabulary checkpoint] block that had a UOT would only need to download blocks after the checkpoint.  Moreover, once the client had downloaded those blocks and confirmed their UOTs, it could discard all but the most recent block containing a UOT.&lt;br /&gt;
&lt;br /&gt;
This would also let a thin client reduce the question of &amp;quot;is this output unspent&amp;quot; to the question of &amp;quot;is this block super-well-formed&amp;quot; where &amp;quot;well-formed&amp;quot; means &amp;quot;well-formed according to the normal blockchain rules and additionally has an Unused Output Tree which is accurate and truthful&amp;quot;.  This is still a long way from the low level of trust involved in the thick client, but it is a major improvement over all existing proposals.&lt;br /&gt;
&lt;br /&gt;
It is unlikely that bitcoin would ever arrive at a state where every single block had a UOT, since this would require upgrading 100% of the miners on the network, or else convincing enough miners to reject blocks which do not contain a UOT.  The latter strategy risks creating blockchain forks, which can be expensive (in reward terms) to miners.  Therefore, any UOT strategy would need to cope with the fact that not every block contains a UOT.&lt;br /&gt;
&lt;br /&gt;
Hostile miners may insert blocks into the chain which have what claims to be a UOT, but which is actually invalid.  It is unlikely that such blocks could be kept out of the chain because, again, this would require adding a new block well-formedness criterion, and miners implementing this new criterion would risk &amp;quot;mining on the wrong side&amp;quot; of a fork, which could cost them a lot of money.  Therefore, any UOT strategy would need to cope with the fact that not every block containing a UOT entry can be trusted.&lt;br /&gt;
&lt;br /&gt;
Note that at the present moment no standard format for such Unused Output Tree hashes has been agreed upon, nor do any of the blocks in the chain contain them.  The [https://bitcointalk.org/index.php?topic=91954 ultraprune] feature added to bitcoind-0.8 maintains a similar data structure on the client&#039;s disk.  It does not put this data structure or its hash anywhere in the blockchain.&lt;br /&gt;
&lt;br /&gt;
== Server-Trusting Clients ==&lt;br /&gt;
&lt;br /&gt;
These clients involve some (usually low) level of trust in the server they rely upon.  Mechanisms for authenticating the server, and for confirming that the server has not been compromised, are usually not explained.&lt;br /&gt;
&lt;br /&gt;
All thin clients listed below currently connect to a single server, and are vulnerable to an attack similar to a double-spend. The attack can be run by that single server - the server can just lie to them that they received a Bitcoin transaction, and they, assuming the server does not lie, perform some service, transfer funds or send goods without actually receiving any Bitcoin in exchange. Therefore, they are implicitly trusting it.&lt;br /&gt;
&lt;br /&gt;
Future enhancements have been suggested that will have the client talk to multiple servers and broadcast transactions and query all of them.  Unfortunately it is well known to security researchers that this does not actually increase security; it simply makes the exploits more complicated and difficult to find.  Security researchers have a name for this phenomenon: it is called a &amp;quot;Sybil attack&amp;quot;&amp;lt;ref&amp;gt;http://en.wikipedia.org/wiki/Sybil_attack&amp;lt;/ref&amp;gt;.  [https://bitcointalk.org/index.php?topic=88208.msg975201#msg975201 This post] on bitcointalk explains how some governments (notably Iran and China) already perform these sorts of attacks on their own citizens, with the coerced assistance of SSL certificate authorities.&lt;br /&gt;
&lt;br /&gt;
Clients with a checkpoint (even a very old one) that download and validate the headers for the whole blockchain are [http://bitcoinmedia.com/the-irc-bootstrap-method-is-flawed/#comment-4243 not vulnerable] to Sybil attacks in the following sense: they can always ensure that an attack would cost more than the amount being stolen.&lt;br /&gt;
&lt;br /&gt;
=== [[BCCAPI]] ===&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
* A [http://sourceforge.net/mailarchive/message.php?msg_id=28633866 thread] on bitcoin-dev&lt;br /&gt;
* A [http://bitcoin.stackexchange.com/questions/2584/is-reclaiming-disk-space-already-implemented-how-effective-will-it-be/2589 question] on bitcoin.stackexchange.com&lt;br /&gt;
* The [https://en.bitcoin.it/wiki/Weaknesses#Cancer_nodes &amp;quot;cancer nodes&amp;quot;] paragraph explains some of the issues with thin clients that base security on trusting whatever &amp;quot;a majority of the IP addresses I can see&amp;quot; say.&lt;br /&gt;
* [http://bitcoin.stackexchange.com/questions/2613/how-secure-are-various-models-of-bitcoin-clients related discussion on Stack Exchange]&lt;br /&gt;
* A hypothesized [https://bitcointalk.org/index.php?topic=134318.msg1441171#msg1441171 intermediate security class] between SPV and full-chain validation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[category:Clients]]&lt;br /&gt;
[[Category:Security]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;diff=44819</id>
		<title>Thin Client Security</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;diff=44819"/>
		<updated>2014-03-07T19:33:16Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Block Height as a Transaction Validity Check */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Recently there have been a number of proposals for bitcoin clients which do not store a complete copy of every block in the entire block chain.  This page will refer to all such clients as &amp;quot;thin clients&amp;quot;.  This page is meant to be a place to try to make sense of the security and trust implications of the various schemes.&lt;br /&gt;
&lt;br /&gt;
== Block Height vs. Depth ==&lt;br /&gt;
&lt;br /&gt;
It is important to distinguish between block height verification and block depth verification.&lt;br /&gt;
&lt;br /&gt;
A client verifies the height H of a block by checking that there are H block &#039;&#039;&#039;before&#039;&#039;&#039; it, all of which are well-formed and obey the maximum-difficulty-adjustment-rate rule.  Currently only the Satoshi client,  libbitcoin, and btcd do block height verification.  Block height is the fundamental anchor of trustless security in the Bitcoin system.&lt;br /&gt;
&lt;br /&gt;
A client verifies the depth D of a block by checking that there are D blocks &#039;&#039;&#039;after&#039;&#039;&#039; it (also called &amp;quot;confirmations&amp;quot;), all of which are well-formed.  SPV clients substitute block depth for block height as a transaction validity check.  All clients use block depth as a measure of the liklihood of a [[Chain_Reorganization|blockchain reorganization]] producing a new longer fork which excludes the transaction (i.e. [[Orphan_Block|orphaning]] its block).&lt;br /&gt;
&lt;br /&gt;
See also [https://bitcointalk.org/index.php?topic=88208.msg987429#msg987429 some comments on probabilistic verification of block height].&lt;br /&gt;
&lt;br /&gt;
== Full-Chain Clients ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;thick&amp;quot; bitcoin client downloads a copy of the entire chain, including all transactions (not just headers).  It will be used as the reference point for security comparisions below.&lt;br /&gt;
&lt;br /&gt;
=== Block &#039;&#039;&#039;Height&#039;&#039;&#039; as a Transaction Validity Check ===&lt;br /&gt;
&lt;br /&gt;
A full-chain client trusts the difficultywise-longest [https://en.bitcoin.it/wiki/Protocol_rules#Blocks well-formed] blockchain it can find.  Any transaction on the difficultywise-longest well-formed chain is considered valid.  Therefore, the validity of a transaction is determined by its height -- i.e. how many blocks come &#039;&#039;before&#039;&#039; it.  A transaction&#039;s &#039;&#039;depth&#039;&#039; (the number of blocks &#039;&#039;after&#039;&#039; it) is used to determine the likelihood of the transaction being invalidated due to the emergence of a longer fork.&lt;br /&gt;
&lt;br /&gt;
==== [[bitcoind|bitcoin core]] ====&lt;br /&gt;
&lt;br /&gt;
==== [https://github.com/conformal/btcd btcd]] ====&lt;br /&gt;
&lt;br /&gt;
== Header-Only Clients ==&lt;br /&gt;
&lt;br /&gt;
These client downloads a complete copy of the headers for all blocks in the entire blockchain.  This means that the download and storage requirements scale linearly with the amount of time since bitcoin was invented; it would be preferable to have the scaling be logarithmic or even constant.&lt;br /&gt;
&lt;br /&gt;
=== Simplified Payment Verification (SPV) ===&lt;br /&gt;
&lt;br /&gt;
This scheme is described in section 8 of the [http://bitcoin.org/bitcoin.pdf original bitcoin whitepaper].&lt;br /&gt;
&lt;br /&gt;
==== Block &#039;&#039;&#039;Depth&#039;&#039;&#039; as a Transaction Validity Check ====&lt;br /&gt;
&lt;br /&gt;
As Satoshi writes, &amp;quot;[the thin client] can&#039;t check the transaction for himself, but by linking it to a place in the chain, he can see that a network node has accepted it, and blocks added after it further confirm the network has accepted it.&amp;quot;  If we take &amp;quot;X&amp;quot; to be the &amp;quot;number of blocks added after it&amp;quot;, then SPV essentially trusts that a transaction X blocks deep in the chain does not have inputs which were already spent further back in the chain.  Therefore, the validity of a transaction is determined by its depth -- i.e. how many blocks come &#039;&#039;after&#039;&#039; it.  Other thin client protocols also include this assumption.&lt;br /&gt;
&lt;br /&gt;
This is very different from the trust model in the &amp;quot;thick&amp;quot; client: the thick client verifies that a transaction&#039;s inputs are unspent by actually checking the whole chain up to that point -- there is no &amp;quot;X blocks deep&amp;quot; involved here.  The thick client uses &amp;quot;X blocks deep&amp;quot; (aka &amp;quot;confirmations&amp;quot;) only once it has already decided that a transaction is valid (i.e. no [[Double-spending|double-spends]]).  At that point it uses &amp;quot;X blocks deep&amp;quot; to decide how likely it is that a longer fork in the chain will emerge which excludes that transaction.&lt;br /&gt;
&lt;br /&gt;
It is very important to understand how the same property (&amp;quot;X blocks deep&amp;quot;) is used to verify two different properties in the thick client and SPV cases.  &#039;&#039;&#039;The thick client never uses block depth as a measure of transaction validity; the SPV client does&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This is a concern in a situation where an SPV client is subjected to a double-spend attack by somebody who controls its network connection.  For example, suppose you are at a wi-fi cafe and are paying for something using your smartphone -- the cafe owner controls your network connection.  Satoshi acknowledges this implicitly when he writes that &amp;quot;the verification is reliable as long as honest nodes control the network&amp;quot; -- to be completely pedantic, this means that the verification is reliable as long as honest nodes control &#039;&#039;&#039;the part of the network that the SPV client is able to communicate with&#039;&#039;&#039;.  In an attack-by-ISP scenario this may not be a sufficiently strong security property.  The attacker would not need to overpower &amp;quot;the rest of the network&amp;quot; because the client is unable to communicate with it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== [[BitCoinJ|bitcoinj]] ====&lt;br /&gt;
&lt;br /&gt;
Simplified Payment Verification is the verification mechanism used in [[BitCoinJ|bitcoinj]].&lt;br /&gt;
&lt;br /&gt;
A security analysis of some of the issues in bitcoinj can be found [http://code.google.com/p/bitcoinj/wiki/SecurityModel here]; however:&lt;br /&gt;
&lt;br /&gt;
* The claim that &amp;quot;picking 10 nodes and requiring all of them to be consistent needs much less trust&amp;quot; overlooks the problem of [https://en.bitcoin.it/wiki/Weaknesses#Cancer_nodes &amp;quot;cancer nodes&amp;quot;] and [http://en.wikipedia.org/wiki/Sybil_attack Sybil attacks].&lt;br /&gt;
* Many of the security claims are qualified by some form of &amp;quot;if you don&#039;t think an attacker controls your internet connection&amp;quot;; see the previous section for a discussion of why this is problematic.&lt;br /&gt;
&lt;br /&gt;
==== [https://bitcointalk.org/index.php?topic=128055.0 picocoin] ====&lt;br /&gt;
&lt;br /&gt;
Simplified Payment Verification is the verification mechanism used in picocoin.&lt;br /&gt;
&lt;br /&gt;
The library (libccoin) that picocoin is based on includes code for validating scripts and blocks; this could potentially be used to implement a full-chain client.&lt;br /&gt;
&lt;br /&gt;
==== [[Electrum]] ====&lt;br /&gt;
&lt;br /&gt;
ThomasV [https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;amp;action=historysubmit&amp;amp;diff=42844&amp;amp;oldid=36519 claims] that &amp;quot;Electrum, it is doing SPV since 2012&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Unused Output Tree in the Blockchain (UOT) ===&lt;br /&gt;
&lt;br /&gt;
There have been several proposals (the first appears to be [https://bitcointalk.org/index.php?topic=21995.0 this one] by gmaxwell, who called it an &amp;quot;open transaction tree&amp;quot;, although the term &amp;quot;open&amp;quot; is now taken to mean &amp;quot;not yet mined into the blockchain&amp;quot; rather than &amp;quot;unspent&amp;quot;) to form a tree of unused transaction outputs at each block in the chain, hash it as a Merkle tree, and encode the root hash in the block chain (probably as part of the coinbase input).  This will be called an Unused Output Tree (UOT).  The first detailed proposal so far appears to be [https://en.bitcoin.it/wiki/User:DiThi/MTUT Alberto Torres&#039; proposal]; etotheipi&#039;s [https://bitcointalk.org/index.php?topic=88208.0 ultimate blockchain compression] is a variant of this.&lt;br /&gt;
&lt;br /&gt;
If such UOT hashes were included in the blockchain, a client which shipped with a [https://en.bitcoin.it/wiki/Vocabulary checkpoint] block that had a UOT would only need to download blocks after the checkpoint.  Moreover, once the client had downloaded those blocks and confirmed their UOTs, it could discard all but the most recent block containing a UOT.&lt;br /&gt;
&lt;br /&gt;
This would also let a thin client reduce the question of &amp;quot;is this output unspent&amp;quot; to the question of &amp;quot;is this block super-well-formed&amp;quot; where &amp;quot;well-formed&amp;quot; means &amp;quot;well-formed according to the normal blockchain rules and additionally has an Unused Output Tree which is accurate and truthful&amp;quot;.  This is still a long way from the low level of trust involved in the thick client, but it is a major improvement over all existing proposals.&lt;br /&gt;
&lt;br /&gt;
It is unlikely that bitcoin would ever arrive at a state where every single block had a UOT, since this would require upgrading 100% of the miners on the network, or else convincing enough miners to reject blocks which do not contain a UOT.  The latter strategy risks creating blockchain forks, which can be expensive (in reward terms) to miners.  Therefore, any UOT strategy would need to cope with the fact that not every block contains a UOT.&lt;br /&gt;
&lt;br /&gt;
Hostile miners may insert blocks into the chain which have what claims to be a UOT, but which is actually invalid.  It is unlikely that such blocks could be kept out of the chain because, again, this would require adding a new block well-formedness criterion, and miners implementing this new criterion would risk &amp;quot;mining on the wrong side&amp;quot; of a fork, which could cost them a lot of money.  Therefore, any UOT strategy would need to cope with the fact that not every block containing a UOT entry can be trusted.&lt;br /&gt;
&lt;br /&gt;
Note that at the present moment no standard format for such Unused Output Tree hashes has been agreed upon, nor do any of the blocks in the chain contain them.  The [https://bitcointalk.org/index.php?topic=91954 ultraprune] feature added to bitcoind-0.8 maintains a similar data structure on the client&#039;s disk.  It does not put this data structure or its hash anywhere in the blockchain.&lt;br /&gt;
&lt;br /&gt;
== Server-Trusting Clients ==&lt;br /&gt;
&lt;br /&gt;
These clients involve some (usually low) level of trust in the server they rely upon.  Mechanisms for authenticating the server, and for confirming that the server has not been compromised, are usually not explained.&lt;br /&gt;
&lt;br /&gt;
All thin clients listed below currently connect to a single server, and are vulnerable to an attack similar to a double-spend. The attack can be run by that single server - the server can just lie to them that they received a Bitcoin transaction, and they, assuming the server does not lie, perform some service, transfer funds or send goods without actually receiving any Bitcoin in exchange. Therefore, they are implicitly trusting it.&lt;br /&gt;
&lt;br /&gt;
Future enhancements have been suggested that will have the client talk to multiple servers and broadcast transactions and query all of them.  Unfortunately it is well known to security researchers that this does not actually increase security; it simply makes the exploits more complicated and difficult to find.  Security researchers have a name for this phenomenon: it is called a &amp;quot;Sybil attack&amp;quot;&amp;lt;ref&amp;gt;http://en.wikipedia.org/wiki/Sybil_attack&amp;lt;/ref&amp;gt;.  [https://bitcointalk.org/index.php?topic=88208.msg975201#msg975201 This post] on bitcointalk explains how some governments (notably Iran and China) already perform these sorts of attacks on their own citizens, with the coerced assistance of SSL certificate authorities.&lt;br /&gt;
&lt;br /&gt;
Clients with a checkpoint (even a very old one) that download and validate the headers for the whole blockchain are [http://bitcoinmedia.com/the-irc-bootstrap-method-is-flawed/#comment-4243 not vulnerable] to Sybil attacks in the following sense: they can always ensure that an attack would cost more than the amount being stolen.&lt;br /&gt;
&lt;br /&gt;
=== [[BCCAPI]] ===&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
* A [http://sourceforge.net/mailarchive/message.php?msg_id=28633866 thread] on bitcoin-dev&lt;br /&gt;
* A [http://bitcoin.stackexchange.com/questions/2584/is-reclaiming-disk-space-already-implemented-how-effective-will-it-be/2589 question] on bitcoin.stackexchange.com&lt;br /&gt;
* The [https://en.bitcoin.it/wiki/Weaknesses#Cancer_nodes &amp;quot;cancer nodes&amp;quot;] paragraph explains some of the issues with thin clients that base security on trusting whatever &amp;quot;a majority of the IP addresses I can see&amp;quot; say.&lt;br /&gt;
* [http://bitcoin.stackexchange.com/questions/2613/how-secure-are-various-models-of-bitcoin-clients related discussion on Stack Exchange]&lt;br /&gt;
* A hypothesized [https://bitcointalk.org/index.php?topic=134318.msg1441171#msg1441171 intermediate security class] between SPV and full-chain validation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[category:Clients]]&lt;br /&gt;
[[Category:Security]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;diff=44818</id>
		<title>Thin Client Security</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;diff=44818"/>
		<updated>2014-03-07T19:22:24Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Block Height vs. Depth */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Recently there have been a number of proposals for bitcoin clients which do not store a complete copy of every block in the entire block chain.  This page will refer to all such clients as &amp;quot;thin clients&amp;quot;.  This page is meant to be a place to try to make sense of the security and trust implications of the various schemes.&lt;br /&gt;
&lt;br /&gt;
== Block Height vs. Depth ==&lt;br /&gt;
&lt;br /&gt;
It is important to distinguish between block height verification and block depth verification.&lt;br /&gt;
&lt;br /&gt;
A client verifies the height H of a block by checking that there are H block &#039;&#039;&#039;before&#039;&#039;&#039; it, all of which are well-formed and obey the maximum-difficulty-adjustment-rate rule.  Currently only the Satoshi client,  libbitcoin, and btcd do block height verification.  Block height is the fundamental anchor of trustless security in the Bitcoin system.&lt;br /&gt;
&lt;br /&gt;
A client verifies the depth D of a block by checking that there are D blocks &#039;&#039;&#039;after&#039;&#039;&#039; it (also called &amp;quot;confirmations&amp;quot;), all of which are well-formed.  SPV clients substitute block depth for block height as a transaction validity check.  All clients use block depth as a measure of the liklihood of a [[Chain_Reorganization|blockchain reorganization]] producing a new longer fork which excludes the transaction (i.e. [[Orphan_Block|orphaning]] its block).&lt;br /&gt;
&lt;br /&gt;
See also [https://bitcointalk.org/index.php?topic=88208.msg987429#msg987429 some comments on probabilistic verification of block height].&lt;br /&gt;
&lt;br /&gt;
== Full-Chain Clients ==&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;thick&amp;quot; bitcoin client downloads a copy of the entire chain, including all transactions (not just headers).  It will be used as the reference point for security comparisions below.&lt;br /&gt;
&lt;br /&gt;
=== Block &#039;&#039;&#039;Height&#039;&#039;&#039; as a Transaction Validity Check ===&lt;br /&gt;
&lt;br /&gt;
A full-chain client trusts the difficultywise-longest [https://en.bitcoin.it/wiki/Protocol_rules#Blocks well-formed] blockchain it can find.  Any transaction on the difficultywise-longest well-formed chain is considered valid.  Therefore, the validity of a transaction is determined by its height -- i.e. how many blocks come &#039;&#039;before&#039;&#039; it.  A transaction&#039;s &#039;&#039;depth&#039;&#039; (the number of blocks &#039;&#039;after&#039;&#039; it) is used to determine the likelihood of the transaction being invalidated due to the emergence of a longer fork.&lt;br /&gt;
&lt;br /&gt;
== Header-Only Clients ==&lt;br /&gt;
&lt;br /&gt;
These client downloads a complete copy of the headers for all blocks in the entire blockchain.  This means that the download and storage requirements scale linearly with the amount of time since bitcoin was invented; it would be preferable to have the scaling be logarithmic or even constant.&lt;br /&gt;
&lt;br /&gt;
=== Simplified Payment Verification (SPV) ===&lt;br /&gt;
&lt;br /&gt;
This scheme is described in section 8 of the [http://bitcoin.org/bitcoin.pdf original bitcoin whitepaper].&lt;br /&gt;
&lt;br /&gt;
==== Block &#039;&#039;&#039;Depth&#039;&#039;&#039; as a Transaction Validity Check ====&lt;br /&gt;
&lt;br /&gt;
As Satoshi writes, &amp;quot;[the thin client] can&#039;t check the transaction for himself, but by linking it to a place in the chain, he can see that a network node has accepted it, and blocks added after it further confirm the network has accepted it.&amp;quot;  If we take &amp;quot;X&amp;quot; to be the &amp;quot;number of blocks added after it&amp;quot;, then SPV essentially trusts that a transaction X blocks deep in the chain does not have inputs which were already spent further back in the chain.  Therefore, the validity of a transaction is determined by its depth -- i.e. how many blocks come &#039;&#039;after&#039;&#039; it.  Other thin client protocols also include this assumption.&lt;br /&gt;
&lt;br /&gt;
This is very different from the trust model in the &amp;quot;thick&amp;quot; client: the thick client verifies that a transaction&#039;s inputs are unspent by actually checking the whole chain up to that point -- there is no &amp;quot;X blocks deep&amp;quot; involved here.  The thick client uses &amp;quot;X blocks deep&amp;quot; (aka &amp;quot;confirmations&amp;quot;) only once it has already decided that a transaction is valid (i.e. no [[Double-spending|double-spends]]).  At that point it uses &amp;quot;X blocks deep&amp;quot; to decide how likely it is that a longer fork in the chain will emerge which excludes that transaction.&lt;br /&gt;
&lt;br /&gt;
It is very important to understand how the same property (&amp;quot;X blocks deep&amp;quot;) is used to verify two different properties in the thick client and SPV cases.  &#039;&#039;&#039;The thick client never uses block depth as a measure of transaction validity; the SPV client does&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
This is a concern in a situation where an SPV client is subjected to a double-spend attack by somebody who controls its network connection.  For example, suppose you are at a wi-fi cafe and are paying for something using your smartphone -- the cafe owner controls your network connection.  Satoshi acknowledges this implicitly when he writes that &amp;quot;the verification is reliable as long as honest nodes control the network&amp;quot; -- to be completely pedantic, this means that the verification is reliable as long as honest nodes control &#039;&#039;&#039;the part of the network that the SPV client is able to communicate with&#039;&#039;&#039;.  In an attack-by-ISP scenario this may not be a sufficiently strong security property.  The attacker would not need to overpower &amp;quot;the rest of the network&amp;quot; because the client is unable to communicate with it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== [[BitCoinJ|bitcoinj]] ====&lt;br /&gt;
&lt;br /&gt;
Simplified Payment Verification is the verification mechanism used in [[BitCoinJ|bitcoinj]].&lt;br /&gt;
&lt;br /&gt;
A security analysis of some of the issues in bitcoinj can be found [http://code.google.com/p/bitcoinj/wiki/SecurityModel here]; however:&lt;br /&gt;
&lt;br /&gt;
* The claim that &amp;quot;picking 10 nodes and requiring all of them to be consistent needs much less trust&amp;quot; overlooks the problem of [https://en.bitcoin.it/wiki/Weaknesses#Cancer_nodes &amp;quot;cancer nodes&amp;quot;] and [http://en.wikipedia.org/wiki/Sybil_attack Sybil attacks].&lt;br /&gt;
* Many of the security claims are qualified by some form of &amp;quot;if you don&#039;t think an attacker controls your internet connection&amp;quot;; see the previous section for a discussion of why this is problematic.&lt;br /&gt;
&lt;br /&gt;
==== [https://bitcointalk.org/index.php?topic=128055.0 picocoin] ====&lt;br /&gt;
&lt;br /&gt;
Simplified Payment Verification is the verification mechanism used in picocoin.&lt;br /&gt;
&lt;br /&gt;
The library (libccoin) that picocoin is based on includes code for validating scripts and blocks; this could potentially be used to implement a full-chain client.&lt;br /&gt;
&lt;br /&gt;
==== [[Electrum]] ====&lt;br /&gt;
&lt;br /&gt;
ThomasV [https://en.bitcoin.it/w/index.php?title=Thin_Client_Security&amp;amp;action=historysubmit&amp;amp;diff=42844&amp;amp;oldid=36519 claims] that &amp;quot;Electrum, it is doing SPV since 2012&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Unused Output Tree in the Blockchain (UOT) ===&lt;br /&gt;
&lt;br /&gt;
There have been several proposals (the first appears to be [https://bitcointalk.org/index.php?topic=21995.0 this one] by gmaxwell, who called it an &amp;quot;open transaction tree&amp;quot;, although the term &amp;quot;open&amp;quot; is now taken to mean &amp;quot;not yet mined into the blockchain&amp;quot; rather than &amp;quot;unspent&amp;quot;) to form a tree of unused transaction outputs at each block in the chain, hash it as a Merkle tree, and encode the root hash in the block chain (probably as part of the coinbase input).  This will be called an Unused Output Tree (UOT).  The first detailed proposal so far appears to be [https://en.bitcoin.it/wiki/User:DiThi/MTUT Alberto Torres&#039; proposal]; etotheipi&#039;s [https://bitcointalk.org/index.php?topic=88208.0 ultimate blockchain compression] is a variant of this.&lt;br /&gt;
&lt;br /&gt;
If such UOT hashes were included in the blockchain, a client which shipped with a [https://en.bitcoin.it/wiki/Vocabulary checkpoint] block that had a UOT would only need to download blocks after the checkpoint.  Moreover, once the client had downloaded those blocks and confirmed their UOTs, it could discard all but the most recent block containing a UOT.&lt;br /&gt;
&lt;br /&gt;
This would also let a thin client reduce the question of &amp;quot;is this output unspent&amp;quot; to the question of &amp;quot;is this block super-well-formed&amp;quot; where &amp;quot;well-formed&amp;quot; means &amp;quot;well-formed according to the normal blockchain rules and additionally has an Unused Output Tree which is accurate and truthful&amp;quot;.  This is still a long way from the low level of trust involved in the thick client, but it is a major improvement over all existing proposals.&lt;br /&gt;
&lt;br /&gt;
It is unlikely that bitcoin would ever arrive at a state where every single block had a UOT, since this would require upgrading 100% of the miners on the network, or else convincing enough miners to reject blocks which do not contain a UOT.  The latter strategy risks creating blockchain forks, which can be expensive (in reward terms) to miners.  Therefore, any UOT strategy would need to cope with the fact that not every block contains a UOT.&lt;br /&gt;
&lt;br /&gt;
Hostile miners may insert blocks into the chain which have what claims to be a UOT, but which is actually invalid.  It is unlikely that such blocks could be kept out of the chain because, again, this would require adding a new block well-formedness criterion, and miners implementing this new criterion would risk &amp;quot;mining on the wrong side&amp;quot; of a fork, which could cost them a lot of money.  Therefore, any UOT strategy would need to cope with the fact that not every block containing a UOT entry can be trusted.&lt;br /&gt;
&lt;br /&gt;
Note that at the present moment no standard format for such Unused Output Tree hashes has been agreed upon, nor do any of the blocks in the chain contain them.  The [https://bitcointalk.org/index.php?topic=91954 ultraprune] feature added to bitcoind-0.8 maintains a similar data structure on the client&#039;s disk.  It does not put this data structure or its hash anywhere in the blockchain.&lt;br /&gt;
&lt;br /&gt;
== Server-Trusting Clients ==&lt;br /&gt;
&lt;br /&gt;
These clients involve some (usually low) level of trust in the server they rely upon.  Mechanisms for authenticating the server, and for confirming that the server has not been compromised, are usually not explained.&lt;br /&gt;
&lt;br /&gt;
All thin clients listed below currently connect to a single server, and are vulnerable to an attack similar to a double-spend. The attack can be run by that single server - the server can just lie to them that they received a Bitcoin transaction, and they, assuming the server does not lie, perform some service, transfer funds or send goods without actually receiving any Bitcoin in exchange. Therefore, they are implicitly trusting it.&lt;br /&gt;
&lt;br /&gt;
Future enhancements have been suggested that will have the client talk to multiple servers and broadcast transactions and query all of them.  Unfortunately it is well known to security researchers that this does not actually increase security; it simply makes the exploits more complicated and difficult to find.  Security researchers have a name for this phenomenon: it is called a &amp;quot;Sybil attack&amp;quot;&amp;lt;ref&amp;gt;http://en.wikipedia.org/wiki/Sybil_attack&amp;lt;/ref&amp;gt;.  [https://bitcointalk.org/index.php?topic=88208.msg975201#msg975201 This post] on bitcointalk explains how some governments (notably Iran and China) already perform these sorts of attacks on their own citizens, with the coerced assistance of SSL certificate authorities.&lt;br /&gt;
&lt;br /&gt;
Clients with a checkpoint (even a very old one) that download and validate the headers for the whole blockchain are [http://bitcoinmedia.com/the-irc-bootstrap-method-is-flawed/#comment-4243 not vulnerable] to Sybil attacks in the following sense: they can always ensure that an attack would cost more than the amount being stolen.&lt;br /&gt;
&lt;br /&gt;
=== [[BCCAPI]] ===&lt;br /&gt;
&lt;br /&gt;
== Other ==&lt;br /&gt;
&lt;br /&gt;
* A [http://sourceforge.net/mailarchive/message.php?msg_id=28633866 thread] on bitcoin-dev&lt;br /&gt;
* A [http://bitcoin.stackexchange.com/questions/2584/is-reclaiming-disk-space-already-implemented-how-effective-will-it-be/2589 question] on bitcoin.stackexchange.com&lt;br /&gt;
* The [https://en.bitcoin.it/wiki/Weaknesses#Cancer_nodes &amp;quot;cancer nodes&amp;quot;] paragraph explains some of the issues with thin clients that base security on trusting whatever &amp;quot;a majority of the IP addresses I can see&amp;quot; say.&lt;br /&gt;
* [http://bitcoin.stackexchange.com/questions/2613/how-secure-are-various-models-of-bitcoin-clients related discussion on Stack Exchange]&lt;br /&gt;
* A hypothesized [https://bitcointalk.org/index.php?topic=134318.msg1441171#msg1441171 intermediate security class] between SPV and full-chain validation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[category:Clients]]&lt;br /&gt;
[[Category:Security]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Clients&amp;diff=44811</id>
		<title>Clients</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Clients&amp;diff=44811"/>
		<updated>2014-03-07T15:50:07Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* For developers */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Overview==&lt;br /&gt;
&lt;br /&gt;
This table compares the features of the different clients. All of the listed clients are open-source.&lt;br /&gt;
&lt;br /&gt;
===Feature key===&lt;br /&gt;
&lt;br /&gt;
; Wallet Security : How well the client protects your [[private key]]s from people with access to the machine the wallet is stored on. The private keys can be encrypted, for example. The private keys can also be either stored on your device or on a remote server.&lt;br /&gt;
; Network Security : Clients which more fully implement the Bitcoin network protocol are safer -- they can&#039;t be as easily tricked by powerful attackers. A client which &#039;&#039;fully&#039;&#039; implements the protocol will always use the correct [[block chain]] and will never allow [[double-spending|double-spends]] or invalid transactions to exist in the block chain under any circumstances. Clients which only &#039;&#039;partially&#039;&#039; implement the protocol typically trust that 50% or more of the network&#039;s mining power is honest. Some clients trust one or more &#039;&#039;remote servers&#039;&#039; to protect them from double-spends and other network attacks.&lt;br /&gt;
; Setup Time : Some clients require that you download and verify a large amount of data before you can send or receive BTC.&lt;br /&gt;
; Maturity : When the project was started.&lt;br /&gt;
&lt;br /&gt;
===Table===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- please keep this alphabetic --&amp;gt;&lt;br /&gt;
{| class=&#039;wikitable&#039; style=&#039;text-align: center&#039;&lt;br /&gt;
! Client !! Get Started !! Audience !! Wallet Security !! Network Security !! Backups !! Setup Time !! Disk Space !! Maturity !! Multi-user !! Available for&lt;br /&gt;
|-&lt;br /&gt;
! Armory&lt;br /&gt;
|| [http://bitcoinarmory.com/index.php/get-armory Download] || Power users || {{CLGood|Encrypted, on-device}} || Addon || {{CLBest|One-time}} || Varies || {{CLBad|6+ GB}} || Jul 2011 || {{CLBest|Multi-wallet}} || {{CLLinux}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! Bitcoin Wallet&lt;br /&gt;
|| [https://play.google.com/store/apps/details?id=de.schildbach.wallet Google Play] [https://appworld.blackberry.com/webstore/content/23952882/ BlackBerry World] || {{CLGood|End-users}} || {{CLGood|Isolated, on-device}} || Partial || Manual || {{CLBest|Instant}} || {{CLGood|15 MB}} || {{CLGood|Mar 2011}} || on JB tablets || {{CLAndroid}} [[file:ico-blackberry.png]]&lt;br /&gt;
|-&lt;br /&gt;
! {{CLGood|Bitcoin-Qt}}&lt;br /&gt;
|| [http://sourceforge.net/projects/bitcoin/files/Bitcoin/ Download] || {{CLGood|End-users}} || {{CLGood|Encrypted, on-device}} || {{CLBest|Full}} || Manual || {{CLBad|Hours}} || {{CLBad|6+ GB}} || {{CLGood|May 2011}} || No || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! bitcoind&lt;br /&gt;
|| [http://sourceforge.net/projects/bitcoin/files/Bitcoin/ Download] || Programmers || {{CLGood|Encrypted, on-device}} || {{CLBest|Full}} || Manual || {{CLBad|Hours}} || {{CLBad|6+ GB}} || {{CLBest|Aug 2009}} || {{CLGood|Virtual accounts}} || {{CLLinux}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! Electrum&lt;br /&gt;
|| [http://ecdsa.org/electrum/ Download] || Power users || {{CLGood|Encrypted, on-device}} || Minimal || {{CLBest|Memorized}} || {{CLGood|Minutes}} || {{CLGood|5 MB}} || Nov 2011 || No || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! MultiBit&lt;br /&gt;
|| [https://multibit.org/releases.html Download] || {{CLGood|End-users}} || {{CLGood|Encrypted, on-device}} || Partial || {{CLGood|Automatic (local)}} || {{CLBest|Seconds}} || 50 MB || Jul 2011 || {{CLBest|Multi-wallet}} || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! My Wallet&lt;br /&gt;
|| [https://blockchain.info/wallet/new Web-based] || {{CLBest|Everyone}} || Encrypted, on a server || {{CLBad|Remote}} || {{CLGood|Automatic}} || {{CLGood|Minutes}} || {{CLBest|None}} || Dec 2011 || {{CLBest|Yes}} || {{CLAndroid}}{{CLiOS}}{{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|-&lt;br /&gt;
! Gocoin&lt;br /&gt;
|| [https://github.com/piotrnar/gocoin Build yourself] || Power users || Designated offline PC || {{CLBest|Full}} || {{CLBest|Memorized}} || {{CLBad|Hours}} || {{CLBad|6+GB}} || May 2013 || {{CLBest|Multi-wallet}} || {{CLLinux}}{{CLMac}}{{CLWin}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- For Wallet Security: CLBest is reserved for multisig-based --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==For developers==&lt;br /&gt;
&lt;br /&gt;
This table shows additional information about various Bitcoin clients that may be relevant to developers.&lt;br /&gt;
&lt;br /&gt;
{| class=&#039;wikitable&#039; style=&#039;text-align: center&#039;&lt;br /&gt;
! Client !! Website !! Source Code !! License !! Discussion !! Architecture&lt;br /&gt;
|-&lt;br /&gt;
! Armory&lt;br /&gt;
|| [http://bitcoinarmory.com/ Link] ||[https://github.com/etotheipi/BitcoinArmory/ Github] || AGPLv3 || [https://bitcointalk.org/index.php?board=97.0 Bitcointalk] || Integrated&lt;br /&gt;
|-&lt;br /&gt;
! Bitcoin Wallet&lt;br /&gt;
|| [https://github.com/schildbach/bitcoin-wallet Link] || [https://github.com/schildbach/bitcoin-wallet Github] [https://code.google.com/p/bitcoin-wallet/source/checkout Google Code] || GPLv3 || [https://plus.google.com/b/101256420499771441772/communities/105515929887248493912 Google+ community] / [https://bitcointalk.org/index.php?board=100.0 Bitcointalk] || [[Thin Client Security#Simplified Payment Verification (SPV)|SPV]]&lt;br /&gt;
|-&lt;br /&gt;
! Bitcoin-Qt / bitcoind&lt;br /&gt;
|| [http://bitcoin.org/ Link] || [https://github.com/bitcoin/bitcoin Github] || MIT || [https://lists.sourceforge.net/lists/listinfo/bitcoin-development Sourceforge] || Integrated&lt;br /&gt;
|-&lt;br /&gt;
! Electrum&lt;br /&gt;
|| [http://ecdsa.org/electrum/ Link] || [https://gitorious.org/electrum Gitorious] || GPLv3 || [https://lists.sourceforge.net/lists/listinfo/electrum-discuss Sourceforge] || [[Thin Client Security#Simplified Payment Verification (SPV)|SPV]&lt;br /&gt;
|-&lt;br /&gt;
! MultiBit&lt;br /&gt;
|| [http://multibit.org/ Link] || [https://github.com/jim618/multibit Github] || MIT || [https://groups.google.com/forum/?fromgroups#!forum/bitcoin-multibit Google Groups] || [[Thin Client Security#Simplified Payment Verification (SPV)|SPV]]&lt;br /&gt;
|-&lt;br /&gt;
! My Wallet&lt;br /&gt;
|| [https://blockchain.info/wallet/ Link] || [https://github.com/blockchain/My-Wallet/ Github] || BSD* || None || [[Thin Client Security#Server-Trusting Clients|Server-Client]]&lt;br /&gt;
|-&lt;br /&gt;
! bits of proof&lt;br /&gt;
|| [http://bitsofproof.com Link] || [https://github.com/bitsofproof/supernode Github] || Apache 2.0 || [https://bitcointalk.org/index.php?topic=122013.0 Bitcointalk] || [[Thin Client Security#Server-Trusting Clients|Server-Client]]&lt;br /&gt;
|-&lt;br /&gt;
! Gocoin&lt;br /&gt;
|| [http://www.assets-otc.com/gocoin Link] || [https://github.com/piotrnar/gocoin Github] || ? || [https://bitcointalk.org/index.php?topic=199306.0 Bitcointalk] || Integrated&lt;br /&gt;
|- &lt;br /&gt;
! btcd&lt;br /&gt;
|| [https://github.com/conformal/btcd Link] || [https://github.com/conformal/btcd Github] || ISC || [https://github.com/conformal/btcd#irc-server irc] || [[Thin Client Security#Server-Trusting Clients|Server-Client]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Software#Bitcoin_clients|List of clients]]&lt;br /&gt;
* [[Bitcoin Ladder]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Software&amp;diff=44810</id>
		<title>Software</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Software&amp;diff=44810"/>
		<updated>2014-03-07T15:43:36Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Bitcoin clients */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;List of Bitcoin-related &#039;&#039;&#039;software&#039;&#039;&#039;. See also [[:Category:Software|Category:Software]].&lt;br /&gt;
&lt;br /&gt;
Be sure to keep on top of the latest [[CVEs|security vulnerabilities]]!&lt;br /&gt;
&lt;br /&gt;
==Bitcoin clients==&lt;br /&gt;
===Bitcoin clients===&lt;br /&gt;
::&#039;&#039;Main article and feature comparison: [[Clients]]&#039;&#039;&lt;br /&gt;
*[[Bitcoin-Qt]] - C++/Qt based tabbed UI. Linux/MacOSX/Windows. Full-featured [[Thin Client Security|thick client]] that downloads the entire [[block chain]], using code from the original Bitcoin client.&lt;br /&gt;
*[[bitcoind]] - GUI-less version of the original Bitcoin client, providing a [[API reference (JSON-RPC)|JSON-RPC]] interface&lt;br /&gt;
*[[MultiBit]] - lightweight [[Thin Client Security|thin client]] for Windows, MacOS and Linux with support for opening multiple wallets simultaneously&lt;br /&gt;
*[[Electrum]] - a &amp;quot;blazing fast, open-source, multi-OS Bitcoin client/wallet with a very active community&amp;quot; - also a [[Thin Client Security|thin client]].&lt;br /&gt;
*[[Bitcoin-js-remote]] - JavaScript RPC client, support for QR codes&lt;br /&gt;
*[https://github.com/TheSeven/Bitcoin-WebUI Bitcoin WebUI] - JavaScript RPC client&lt;br /&gt;
*[https://github.com/zamgo/bitcoin-webskin Bitcoin Webskin] - PHP web interface to bitcoind and namecoind&lt;br /&gt;
*[https://bitcointalk.org/index.php?topic=50721.0 subvertx] - command line bitcoin tools&lt;br /&gt;
*[[Bitcoiner]] - Java RPC client (Android)&lt;br /&gt;
*[[Armory]] - Python-based client currently in beta-level&lt;br /&gt;
*[[Spesmilo]] - Python/PySide RPC client (abandoned)&lt;br /&gt;
*[[Gocoin]] - WebUI client written in Go language, with a cold deterministic brain-wallet.&lt;br /&gt;
*[https://github.com/conformal/btcd btcd] An alternative full node bitcoin implementation written in Go (golang).&lt;br /&gt;
&lt;br /&gt;
====Frontends to eWallet====&lt;br /&gt;
*[https://blockchain.info/wallet Blockchain] - Javascript bitcoin client with client side encryption.&lt;br /&gt;
*[https://en.bitcoin.it/wiki/Xcoinmoney xCoinMoney] Advanced API to create invoices for subscription.&lt;br /&gt;
&lt;br /&gt;
====Experimental====&lt;br /&gt;
*[[Freecoin]] - C++ client, supports alternative currencies like [https://bitcointalk.org/index.php?topic=9493.0 Beertoken]&lt;br /&gt;
*[[BitDroid]] - Java client&lt;br /&gt;
*[[Bitdollar]] - C++/Qt client, unstable beta version&lt;br /&gt;
&lt;br /&gt;
===Libraries===&lt;br /&gt;
*[https://bitcointalk.org/index.php?topic=30646.0 libbitcoin]&lt;br /&gt;
*[[BitCoinJ]] - Java client library, early development stage but used in live projects already&lt;br /&gt;
*[[BCCAPI]] (Bitcoin Client API) - a java library designed for making secure light-weight bitcoin clients.&lt;br /&gt;
&lt;br /&gt;
==Bitcoin Trade Data==&lt;br /&gt;
*[[Bitcoin Charts]] – Prices, volume, and extensive charting on virtually all Bitcoin markets.&lt;br /&gt;
*[[MtGox Live]] - An innovative chart showing a live feed of [[MtGox]] trades and market depth.  (Must Use Chrome)&lt;br /&gt;
*[http://btccharts.com BTCCharts] - An innovative chart showing a live feed of multiple markets, currencies and timeframes.&lt;br /&gt;
*[http://MY-BTC.info MY-BTC.INFO] - A free profit/loss portfolio manager for Bitcoins and other digital currencies including many charts.&lt;br /&gt;
*[http://BitcoinExchangeRate.org BitcoinExchangeRate.org] - Bitcoin and USD converter with convenient URL scheme and Auto-updating Portfolio Spreadsheet.&lt;br /&gt;
*[[Bitcoin Sentiment Index]] - A financial index that collects and disseminates sentiment data about bitcoin.&lt;br /&gt;
*[[Preev]] - Bitcoin converter with live exchange rates.&lt;br /&gt;
*[[Skami]] - Bitcoin Market Exchange comparison charts.&lt;br /&gt;
*[[BitcoinSentiment]] - Crowdvoting site offering means of voting and viewing voters sentiment towards bitcoin.&lt;br /&gt;
*[[TradingView]] – network where traders exchange ideas about Bitcoin using advanced free online charts&lt;br /&gt;
&lt;br /&gt;
==Bitcoin software==&lt;br /&gt;
&lt;br /&gt;
===Web interfaces for merchants===&lt;br /&gt;
&lt;br /&gt;
*[[BitMerch]] - Embeddable HTML buttons, instant sign-up, instant payouts, automatic price adjustment for other currencies. No programming skills required to set up.&lt;br /&gt;
*[[Bitcoin Evolution]] - Non wallet-based Buy Now button to insert into websites (handles sales tracking; client must be used for actual transaction)&lt;br /&gt;
*[[BitPay]] - Buy Now buttons, Checkout posts/callbacks, Mobile Checkout, JSON API&lt;br /&gt;
*[[Btceconomy]] - a JavaScript widget listing items for sale&lt;br /&gt;
*[[BTCMerch]] - Payment processor for bitcoins and other cryptocurrencies. 0.5% transaction fee. Sandbox is available.&lt;br /&gt;
*[https://coinbase.com/merchants Coinbase] - Provides bitcoin payment processing for Overstock.com, Reddit, Khan Academy, OkCupid, and more.&lt;br /&gt;
*[[GoCoin]] - Payment gateway for bitcoin and litecoin. Supports JavaScript, PHP, Java, Ruby, and .NET&lt;br /&gt;
*[[Javascript Bitcoin Converter]] - currency conversion&lt;br /&gt;
*[[WalletBit]] - Easy JavaScript Buy Now buttons, Instant Payment Notification, Application Programming Interface (JSON API), Mobile Checkout, QR-Code&lt;br /&gt;
* [https://PikaPay.com PikaPay] ([[PikaPay|info]]) Buy Now buttons, Twitter Integration, JSON API&lt;br /&gt;
&lt;br /&gt;
===Shopping Cart Integration in eCommerce-Systems===&lt;br /&gt;
*[[GoCoin]] - Plugin for WooCommerce support and coming soon Magento&lt;br /&gt;
*[[Zen Cart Bitcoin Payment Module]] - a payment module that interacts with bitcoind for the Zen Cart eCommerce shopping chart.&lt;br /&gt;
*[https://coinbase.com/docs/merchant_tools/shopping_cart_plugins Coinbase Shopping Cart Plugins] - Supports Wordpress, WooCommerce, Magento, Zencart, WP e-commerce, and more.&lt;br /&gt;
*[[Karsha Shopping Cart Interface]] -  is a mobile payment-interface which enables its users to accept payments.&lt;br /&gt;
*[[Bitcoin-Cash]] - an easy to use payment module for xt:Commerce&lt;br /&gt;
*[[BitPay]] - bitcoin plugins for Magento, Opencart, Zencart, PHP, JSON API&lt;br /&gt;
*[[WalletBit]] - Plugins for PrestaShop, OpenCart, PHP, JSON API&lt;br /&gt;
* [https://www.xcoinmoney.com/info/api-general-info xCoinMoney] Advanced API for instant payment and subscriptions&lt;br /&gt;
*[[OpenCart Bitcoin]] - An OpenCart payment module that communicates with a bitcoin client using JSON RPC.&lt;br /&gt;
*[[OsCommerce_Bitcoin_Payment_Module|OsCommerce Bitcoin Payment Module]] - a payment module that uses a python monitoring script to interact with bitcoind for OsCommerce&lt;br /&gt;
* [http://drupal.org/project/uc_bitcoin Drupal Ubercart Bitcoin payment method] enables you to accept Bitcoin as payment for your Drupal/Ubercart enabled website product/services.&lt;br /&gt;
&lt;br /&gt;
=== Enterprise server ===&lt;br /&gt;
*[http://bitsofproof.com Bits of Proof] - a modular enterprise-ready implementation of the Bitcoin protocol.&lt;br /&gt;
&lt;br /&gt;
===Web apps===&lt;br /&gt;
*[[Bitcoin Central]] - currency exchange&lt;br /&gt;
*[https://en.bitcoin.it/wiki/Coinbase_(business) Coinbase] - an international digital wallet that allows you to securely buy, use, and accept bitcoin currency&lt;br /&gt;
*[[Coinnext]] - Cryptocurrency Exchange&lt;br /&gt;
*[[Bitcoin Poker Room]] - poker site&lt;br /&gt;
*[[Abe]] - block chain viewer&lt;br /&gt;
*[[Simplecoin]] - PHP web frontend for a pool&lt;br /&gt;
*[[bitcoin_simple_php_tools]] simple php tools for webmasters&lt;br /&gt;
* [http://www.coinsummary.com/ CoinSummary] - multi-coin wallet manager with built-in valuation in Bitcoin and major world currencies.&lt;br /&gt;
&lt;br /&gt;
===Browser extensions===&lt;br /&gt;
*[[Bitcoin Extension]] - check balance and send bitcoins (Chrome)&lt;br /&gt;
*[[Bitcoin Prices (extension)]] - monitoring price (Firefox)&lt;br /&gt;
*[[Bitcoin Ticker]] - monitoring price (Chrome)&lt;br /&gt;
*[[Biticker]] - Bitcoin ticker, currency converter and history price graph (Chrome)&lt;br /&gt;
*[https://chrome.google.com/webstore/detail/bitcoin-microformats/bkanicejfbhlidgjkpenmddnacjengld?hl=en Bitcoin Microformats] Show bitcoin address metadata embedded in a page (Chrome)&lt;br /&gt;
*[https://chrome.google.com/webstore/detail/bitcoin-address-lookup/pmlblkdmadbidammhjiponepngbfcpge?hl=en Bitcoin Address Lookup] Right click an address to view its value. (Chrome)&lt;br /&gt;
&lt;br /&gt;
===PC apps===&lt;br /&gt;
*[https://sourceforge.net/projects/bitcointrader/ Qt Bitcoin Trader] - Open Source Mt.Gox, BTC-e, Bitstamp, Bitfinex and BTCChina trading client for Windows, Mac OS X and Linux&lt;br /&gt;
*[[http://www.mybtc-trader.com MyBTC-Trader.com]] - a MtGox Bitcoin trading client for windows with GUI&lt;br /&gt;
*[[Mining Explorer]] - monitoring tool for bitcoin mining&lt;br /&gt;
*[[Bitcoin SMS Alert]] - sends SMS text alerts to a user&#039;s phone based on BTC price / percent thresholds.&lt;br /&gt;
*[[BTConvert]] - currency conversion&lt;br /&gt;
*[[Sierra Chart MtGox Bridge]] - real-time charting&lt;br /&gt;
*[[BitTicker]] - monitoring price (Mac OS X)&lt;br /&gt;
*[[ToyTrader]] - a command line trading tool for [[MtGox]]&lt;br /&gt;
*[[goxsh]] - a command-line frontend to the [[MtGox|Mt. Gox Bitcoin Exchange]] (Python)&lt;br /&gt;
*[[MyBitcoins gadget]] - monitoring pool earnings / price (Windows gadget)&lt;br /&gt;
*[[Bitcoin QR Popup]] - streamlined interface to bitcoin for POS systems (Windows)&lt;br /&gt;
*[http://gnome-help.org/content/show.php/Bitcoin+Rate?content=138572 Bitcoin Rate] - Desktop widget with BTC exchange rate (KDE)&lt;br /&gt;
*[http://kde-apps.org/content/show.php?content=142344 Bitcoin Monitor] - Desktop widget to monitor status of your Bitcoin miners on mining pools (KDE)&lt;br /&gt;
&lt;br /&gt;
===Mobile apps===&lt;br /&gt;
==== iPhone / iPad ====&lt;br /&gt;
*[https://blockchain.info/wallet/iphone-app Blockchain] - Fully featured iphone bitcoin app.&lt;br /&gt;
*[[Bitcoin Ticker (iPhone)]] - monitoring price w/push notifications&lt;br /&gt;
*[[BitCoins Mobile]] - First iPad native app! Live market data, news feeds, mining pool statistics, full screen exchange price charts, bitcoin network statistical charts. (iPad only, iPhone/iPod Touch coming soon!)&lt;br /&gt;
*[https://github.com/teeman/BitcoinTrader BitcoinTrader] - Spend/receive BTC via QR codes, trade, deposit/withdraw, etc. Supports Mt. Gox, TradeHill, ExchB, CampBX, and InstaWallet.&lt;br /&gt;
*[[Bit-pay]] - Mobile Checkout, set prices in any currency and receive mobile-to-mobile payment&lt;br /&gt;
*[http://blog.coinbase.com/post/64824441934/the-coinbase-ios-app-has-launched Coinbase iPhone App]&lt;br /&gt;
*[[Easywallet.org]] - Web based wallet, works with QR Code scanner on iPhone/iPad/iPod touch&lt;br /&gt;
*[https://itunes.apple.com/us/app/btc-miner/id648411895?ls=1&amp;amp;mt=8 BTC Miner (iPhone)] - monitor mining results from various mining pools on iPhone/iPad/iPod touch&lt;br /&gt;
*[[BitTick]] -  Real-time Bitcoin ticker. Real-time currency convert(support 50+ currency. USD, GBP, EUR, CNY, JPY, CAD, RUB, AUD, BRL, NZD, PLN, KRW…) &lt;br /&gt;
&lt;br /&gt;
==== Android ====&lt;br /&gt;
* Direct link to Android Market bitcoin apps. https://play.google.com/store/search?q=bitcoin&lt;br /&gt;
*[[BitCare]] - Track bitcoin wallet balance, trade on Mt.Gox, monitor mining pool hashrate, balance, worker status. &lt;br /&gt;
*[[Bitcoin Alert]] - monitoring price (Android)&lt;br /&gt;
*[[Bitcoin-android]] - Does not appear to be being maitained anymore. https://market.android.com/details?id=com.bitcoinandroid&lt;br /&gt;
*[[Bitcoin Wallet Balance]] - view your balance in real time on your android phone&lt;br /&gt;
*[[Bitcoin Wallet]] - This is the most functional Android bitcoin wallet application. https://market.android.com/details?id=de.schildbach.wallet&lt;br /&gt;
*[[BitcoinSpinner]] - Single address, easy to use, lightweight and open source client. Keys stored on device.&lt;br /&gt;
*[[BitcoinX]] - monitoring price (Android)&lt;br /&gt;
*[[BitPay]] - https://market.android.com/details?id=com.bitcoin.bitpay (Is not related to the bit-pay.com online payment processor.)&lt;br /&gt;
*[[Bridgewalker]] - euro-denominated wallet for the Bitcoin economy&lt;br /&gt;
*[https://blockchain.info/wallet/android-app Blockchain] - Lightweight Android Bitcoin Client - Also works with blockchain.info web interface and iphone app.&lt;br /&gt;
*[https://play.google.com/store/apps/details?id=com.coinbase.android&amp;amp;hl=en Coinbase Wallet] - supports buying, selling, sending, requesting, and more.&lt;br /&gt;
*[https://play.google.com/store/apps/details?id=com.coinbase.android.merchant&amp;amp;hl=en Coinbase Merchant] - makes it easy to accept bitcoin at a retail location&lt;br /&gt;
*[[http://coincliff.com CoinCliff]] - Monitors price and fires alarms to wake you up, or notifications, as in text messages (Android)&lt;br /&gt;
*[[Easywallet.org]] - Web based wallet, works with QR Code scanner on Android devices&lt;br /&gt;
*[[Miner Status]] - monitoring miner status (Android)&lt;br /&gt;
*[[SMS Bitcoins]] - transactions by SMS&lt;br /&gt;
&lt;br /&gt;
==== Windows Phone 7 ====&lt;br /&gt;
*Direct link to Windows Phone Marketplace Bitcoin apps: [http://www.windowsphone.com/en-us/store/search?q=bitcoin]&lt;br /&gt;
&lt;br /&gt;
==== Windows Phone 8 ====&lt;br /&gt;
*[[Bitcoin Can]] - Monitoring prices, account balances and mobile trading on multiple exchanges including MtGox, Coinbase, and CampBX. http://www.windowsphone.com/en-us/store/app/bitcoin-can/57fcf4d6-497a-4663-8da3-93cb26c83b11&lt;br /&gt;
&lt;br /&gt;
see also [[Bitcoin Payment Apps]]&lt;br /&gt;
&lt;br /&gt;
===Operating systems===&lt;br /&gt;
*[[MinePeon]] - Bitcoin mining on the Raspberry PI&lt;br /&gt;
*BAMT - a minimal Linux based OS intended for headless mining.  Initially announced [https://bitcointalk.org/index.php?topic=65915.0 here]  (not maintained)&lt;br /&gt;
*[[LinuxCoin]] - a lightweight Debian-based OS, with the Bitcoin client and GPU mining software (not maintained)&lt;br /&gt;
&lt;br /&gt;
===Mining apps===&lt;br /&gt;
Main page: [[Mining software]]&lt;br /&gt;
*[[50Miner]] - A GUI frontend for Windows(Poclbm, Phoenix, DiabloMiner, cgminer)&lt;br /&gt;
*[[BFGMiner]] - Modular ASIC/FPGA/GPU miner in C&lt;br /&gt;
*[http://www.groupfabric.com/bitcoin-miner/ Bitcoin Miner by GroupFabric] - Free easy-to-use DirectX GPU miner on the Windows Store&lt;br /&gt;
*[[BTCMiner]] - Bitcoin Miner for ZTEX FPGA Boards&lt;br /&gt;
*[[Bit Moose]] - Run Miners as a Windows Service.&lt;br /&gt;
*[[Poclbm]] - Python/OpenCL GPU miner ([[Poclbm-gui|GUI(Windows &amp;amp; MacOS X)]])&lt;br /&gt;
*[[CGMiner]] - ASIC/FPGA/GPU miner in C&lt;br /&gt;
*[[Poclbm-mod]] - more efficient version of [[Poclbm]] ([[Poclbm-mod-gui|GUI]])&lt;br /&gt;
*[[DiabloMiner]] - Java/OpenCL GPU miner ([[DiabloMiner.app|MAC OS X GUI]])&lt;br /&gt;
*[[RPC Miner]] - remote RPC miner ([[RPCminer.app|MAC OS X GUI]])&lt;br /&gt;
*[[Phoenix miner]] - miner&lt;br /&gt;
*[[Cpu Miner]] - miner&lt;br /&gt;
*[[Ufasoft miner]] - miner&lt;br /&gt;
*[[Pyminer]] - Python miner, reference implementation&lt;br /&gt;
*[[Remote miner]] - mining pool software&lt;br /&gt;
*[[Open Source FGPA Bitcoin Miner]] - a miner that makes use of an FPGA Board&lt;br /&gt;
*[https://github.com/mkburza/Flash-Player-Bitcoin-Miner Flash Player Bitcoin Miner] - A proof of concept Adobe Flash Player miner&lt;br /&gt;
*[http://fabulouspanda.co.uk/macminer/ MacMiner] - A native Mac OS X Bitcoin/Litecoin miner based on cgminer, bfgminer, cpuminer and poclbm&lt;br /&gt;
*[[Asteroid]] - Mac-specific GUI based on cgminer&lt;br /&gt;
*[[MultiMiner]] - GUI based on cgminer/bfgminer for Windows, OS X and Linux, allows switching between currencies based on profitability&lt;br /&gt;
&lt;br /&gt;
===Mining Pool Servers (backend)===&lt;br /&gt;
Main page: [[Poolservers]]&lt;br /&gt;
&lt;br /&gt;
*[[ecoinpool]] - Erlang poolserver (not maintained)&lt;br /&gt;
*[[Eloipool]] - Fast Python3 poolserver&lt;br /&gt;
*[[Pushpoold]] - Old mining poolserver in C (not maintained)&lt;br /&gt;
*[[Poold]] - Old Python mining poolserver (not maintained)&lt;br /&gt;
*[[PoolServerJ]] - Java mining poolserver (not maintained)&lt;br /&gt;
&lt;br /&gt;
===Utilities, libraries, and interfaces:===&lt;br /&gt;
*[[BitcoinCrypto]] - a lightweight Bitcoin crypto library for Java/Android&lt;br /&gt;
*[[Bitcoin Dissector]] - a wireshark dissector for the bitcoin protocol&lt;br /&gt;
*[[Bitcointools]] - a set of Python tools accessing the transaction database and the wallet&lt;br /&gt;
*[[Finance::MtGox]] - a Perl module which interfaces with the Mt. Gox API&lt;br /&gt;
*[[libblkmaker]] - C library implementation of [[getblocktemplate]] decentralized mining protocol&lt;br /&gt;
*[[python-blkmaker]] - Python module implementation of [[getblocktemplate]] decentralized mining protocol&lt;br /&gt;
&lt;br /&gt;
===Lists of software===&lt;br /&gt;
*[[BitGit]] - list of Bitcoin-related opensource projects hosted at Git&lt;br /&gt;
&lt;br /&gt;
===Developer resources===&lt;br /&gt;
*[[:Category:Developer|Category:Developer]]&lt;br /&gt;
*[[:Category:Technical|Category:Technical]]&lt;br /&gt;
*[[Original Bitcoin client/API calls list]]&lt;br /&gt;
*[[API reference (JSON-RPC)]]&lt;br /&gt;
*[[PHP_developer_intro|PHP Developer Introduction]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
*[[Namecoin]] - a distributed naming system based on Bitcoin technology&lt;br /&gt;
*[[Bitcoin Consultancy]] - an organization providing open source software and Bitcoin-related consulting&lt;br /&gt;
*[[Open Transactions]] - a financial crypto and digital cash software library, complementary to Bitcoin&lt;br /&gt;
*[[Moneychanger]] - Java-based GUI for [[Open Transactions]]&lt;br /&gt;
*[http://btcnames.org/ BTCnames] - a webbased aliasing service which allows to handle unlimited names for your BTC deposit hashes&lt;br /&gt;
*[[Devcoin]] - the open source developer coin&lt;br /&gt;
&lt;br /&gt;
[[Category:Software|*]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Software&amp;diff=44809</id>
		<title>Software</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Software&amp;diff=44809"/>
		<updated>2014-03-07T15:43:23Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Bitcoin clients */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;List of Bitcoin-related &#039;&#039;&#039;software&#039;&#039;&#039;. See also [[:Category:Software|Category:Software]].&lt;br /&gt;
&lt;br /&gt;
Be sure to keep on top of the latest [[CVEs|security vulnerabilities]]!&lt;br /&gt;
&lt;br /&gt;
==Bitcoin clients==&lt;br /&gt;
===Bitcoin clients===&lt;br /&gt;
::&#039;&#039;Main article and feature comparison: [[Clients]]&#039;&#039;&lt;br /&gt;
*[[Bitcoin-Qt]] - C++/Qt based tabbed UI. Linux/MacOSX/Windows. Full-featured [[Thin Client Security|thick client]] that downloads the entire [[block chain]], using code from the original Bitcoin client.&lt;br /&gt;
*[[bitcoind]] - GUI-less version of the original Bitcoin client, providing a [[API reference (JSON-RPC)|JSON-RPC]] interface&lt;br /&gt;
*[[MultiBit]] - lightweight [[Thin Client Security|thin client]] for Windows, MacOS and Linux with support for opening multiple wallets simultaneously&lt;br /&gt;
*[[Electrum]] - a &amp;quot;blazing fast, open-source, multi-OS Bitcoin client/wallet with a very active community&amp;quot; - also a [[Thin Client Security|thin client]].&lt;br /&gt;
*[[Bitcoin-js-remote]] - JavaScript RPC client, support for QR codes&lt;br /&gt;
*[https://github.com/TheSeven/Bitcoin-WebUI Bitcoin WebUI] - JavaScript RPC client&lt;br /&gt;
*[https://github.com/zamgo/bitcoin-webskin Bitcoin Webskin] - PHP web interface to bitcoind and namecoind&lt;br /&gt;
*[https://bitcointalk.org/index.php?topic=50721.0 subvertx] - command line bitcoin tools&lt;br /&gt;
*[[Bitcoiner]] - Java RPC client (Android)&lt;br /&gt;
*[[Armory]] - Python-based client currently in beta-level&lt;br /&gt;
*[[Spesmilo]] - Python/PySide RPC client (abandoned)&lt;br /&gt;
*[[Gocoin]] - WebUI client written in Go language, with a cold deterministic brain-wallet.&lt;br /&gt;
*[https://github.com/conformal/btcd btcd] An alternative full node bitcoin implementation written in Go (golang)&lt;br /&gt;
&lt;br /&gt;
====Frontends to eWallet====&lt;br /&gt;
*[https://blockchain.info/wallet Blockchain] - Javascript bitcoin client with client side encryption.&lt;br /&gt;
*[https://en.bitcoin.it/wiki/Xcoinmoney xCoinMoney] Advanced API to create invoices for subscription.&lt;br /&gt;
&lt;br /&gt;
====Experimental====&lt;br /&gt;
*[[Freecoin]] - C++ client, supports alternative currencies like [https://bitcointalk.org/index.php?topic=9493.0 Beertoken]&lt;br /&gt;
*[[BitDroid]] - Java client&lt;br /&gt;
*[[Bitdollar]] - C++/Qt client, unstable beta version&lt;br /&gt;
&lt;br /&gt;
===Libraries===&lt;br /&gt;
*[https://bitcointalk.org/index.php?topic=30646.0 libbitcoin]&lt;br /&gt;
*[[BitCoinJ]] - Java client library, early development stage but used in live projects already&lt;br /&gt;
*[[BCCAPI]] (Bitcoin Client API) - a java library designed for making secure light-weight bitcoin clients.&lt;br /&gt;
&lt;br /&gt;
==Bitcoin Trade Data==&lt;br /&gt;
*[[Bitcoin Charts]] – Prices, volume, and extensive charting on virtually all Bitcoin markets.&lt;br /&gt;
*[[MtGox Live]] - An innovative chart showing a live feed of [[MtGox]] trades and market depth.  (Must Use Chrome)&lt;br /&gt;
*[http://btccharts.com BTCCharts] - An innovative chart showing a live feed of multiple markets, currencies and timeframes.&lt;br /&gt;
*[http://MY-BTC.info MY-BTC.INFO] - A free profit/loss portfolio manager for Bitcoins and other digital currencies including many charts.&lt;br /&gt;
*[http://BitcoinExchangeRate.org BitcoinExchangeRate.org] - Bitcoin and USD converter with convenient URL scheme and Auto-updating Portfolio Spreadsheet.&lt;br /&gt;
*[[Bitcoin Sentiment Index]] - A financial index that collects and disseminates sentiment data about bitcoin.&lt;br /&gt;
*[[Preev]] - Bitcoin converter with live exchange rates.&lt;br /&gt;
*[[Skami]] - Bitcoin Market Exchange comparison charts.&lt;br /&gt;
*[[BitcoinSentiment]] - Crowdvoting site offering means of voting and viewing voters sentiment towards bitcoin.&lt;br /&gt;
*[[TradingView]] – network where traders exchange ideas about Bitcoin using advanced free online charts&lt;br /&gt;
&lt;br /&gt;
==Bitcoin software==&lt;br /&gt;
&lt;br /&gt;
===Web interfaces for merchants===&lt;br /&gt;
&lt;br /&gt;
*[[BitMerch]] - Embeddable HTML buttons, instant sign-up, instant payouts, automatic price adjustment for other currencies. No programming skills required to set up.&lt;br /&gt;
*[[Bitcoin Evolution]] - Non wallet-based Buy Now button to insert into websites (handles sales tracking; client must be used for actual transaction)&lt;br /&gt;
*[[BitPay]] - Buy Now buttons, Checkout posts/callbacks, Mobile Checkout, JSON API&lt;br /&gt;
*[[Btceconomy]] - a JavaScript widget listing items for sale&lt;br /&gt;
*[[BTCMerch]] - Payment processor for bitcoins and other cryptocurrencies. 0.5% transaction fee. Sandbox is available.&lt;br /&gt;
*[https://coinbase.com/merchants Coinbase] - Provides bitcoin payment processing for Overstock.com, Reddit, Khan Academy, OkCupid, and more.&lt;br /&gt;
*[[GoCoin]] - Payment gateway for bitcoin and litecoin. Supports JavaScript, PHP, Java, Ruby, and .NET&lt;br /&gt;
*[[Javascript Bitcoin Converter]] - currency conversion&lt;br /&gt;
*[[WalletBit]] - Easy JavaScript Buy Now buttons, Instant Payment Notification, Application Programming Interface (JSON API), Mobile Checkout, QR-Code&lt;br /&gt;
* [https://PikaPay.com PikaPay] ([[PikaPay|info]]) Buy Now buttons, Twitter Integration, JSON API&lt;br /&gt;
&lt;br /&gt;
===Shopping Cart Integration in eCommerce-Systems===&lt;br /&gt;
*[[GoCoin]] - Plugin for WooCommerce support and coming soon Magento&lt;br /&gt;
*[[Zen Cart Bitcoin Payment Module]] - a payment module that interacts with bitcoind for the Zen Cart eCommerce shopping chart.&lt;br /&gt;
*[https://coinbase.com/docs/merchant_tools/shopping_cart_plugins Coinbase Shopping Cart Plugins] - Supports Wordpress, WooCommerce, Magento, Zencart, WP e-commerce, and more.&lt;br /&gt;
*[[Karsha Shopping Cart Interface]] -  is a mobile payment-interface which enables its users to accept payments.&lt;br /&gt;
*[[Bitcoin-Cash]] - an easy to use payment module for xt:Commerce&lt;br /&gt;
*[[BitPay]] - bitcoin plugins for Magento, Opencart, Zencart, PHP, JSON API&lt;br /&gt;
*[[WalletBit]] - Plugins for PrestaShop, OpenCart, PHP, JSON API&lt;br /&gt;
* [https://www.xcoinmoney.com/info/api-general-info xCoinMoney] Advanced API for instant payment and subscriptions&lt;br /&gt;
*[[OpenCart Bitcoin]] - An OpenCart payment module that communicates with a bitcoin client using JSON RPC.&lt;br /&gt;
*[[OsCommerce_Bitcoin_Payment_Module|OsCommerce Bitcoin Payment Module]] - a payment module that uses a python monitoring script to interact with bitcoind for OsCommerce&lt;br /&gt;
* [http://drupal.org/project/uc_bitcoin Drupal Ubercart Bitcoin payment method] enables you to accept Bitcoin as payment for your Drupal/Ubercart enabled website product/services.&lt;br /&gt;
&lt;br /&gt;
=== Enterprise server ===&lt;br /&gt;
*[http://bitsofproof.com Bits of Proof] - a modular enterprise-ready implementation of the Bitcoin protocol.&lt;br /&gt;
&lt;br /&gt;
===Web apps===&lt;br /&gt;
*[[Bitcoin Central]] - currency exchange&lt;br /&gt;
*[https://en.bitcoin.it/wiki/Coinbase_(business) Coinbase] - an international digital wallet that allows you to securely buy, use, and accept bitcoin currency&lt;br /&gt;
*[[Coinnext]] - Cryptocurrency Exchange&lt;br /&gt;
*[[Bitcoin Poker Room]] - poker site&lt;br /&gt;
*[[Abe]] - block chain viewer&lt;br /&gt;
*[[Simplecoin]] - PHP web frontend for a pool&lt;br /&gt;
*[[bitcoin_simple_php_tools]] simple php tools for webmasters&lt;br /&gt;
* [http://www.coinsummary.com/ CoinSummary] - multi-coin wallet manager with built-in valuation in Bitcoin and major world currencies.&lt;br /&gt;
&lt;br /&gt;
===Browser extensions===&lt;br /&gt;
*[[Bitcoin Extension]] - check balance and send bitcoins (Chrome)&lt;br /&gt;
*[[Bitcoin Prices (extension)]] - monitoring price (Firefox)&lt;br /&gt;
*[[Bitcoin Ticker]] - monitoring price (Chrome)&lt;br /&gt;
*[[Biticker]] - Bitcoin ticker, currency converter and history price graph (Chrome)&lt;br /&gt;
*[https://chrome.google.com/webstore/detail/bitcoin-microformats/bkanicejfbhlidgjkpenmddnacjengld?hl=en Bitcoin Microformats] Show bitcoin address metadata embedded in a page (Chrome)&lt;br /&gt;
*[https://chrome.google.com/webstore/detail/bitcoin-address-lookup/pmlblkdmadbidammhjiponepngbfcpge?hl=en Bitcoin Address Lookup] Right click an address to view its value. (Chrome)&lt;br /&gt;
&lt;br /&gt;
===PC apps===&lt;br /&gt;
*[https://sourceforge.net/projects/bitcointrader/ Qt Bitcoin Trader] - Open Source Mt.Gox, BTC-e, Bitstamp, Bitfinex and BTCChina trading client for Windows, Mac OS X and Linux&lt;br /&gt;
*[[http://www.mybtc-trader.com MyBTC-Trader.com]] - a MtGox Bitcoin trading client for windows with GUI&lt;br /&gt;
*[[Mining Explorer]] - monitoring tool for bitcoin mining&lt;br /&gt;
*[[Bitcoin SMS Alert]] - sends SMS text alerts to a user&#039;s phone based on BTC price / percent thresholds.&lt;br /&gt;
*[[BTConvert]] - currency conversion&lt;br /&gt;
*[[Sierra Chart MtGox Bridge]] - real-time charting&lt;br /&gt;
*[[BitTicker]] - monitoring price (Mac OS X)&lt;br /&gt;
*[[ToyTrader]] - a command line trading tool for [[MtGox]]&lt;br /&gt;
*[[goxsh]] - a command-line frontend to the [[MtGox|Mt. Gox Bitcoin Exchange]] (Python)&lt;br /&gt;
*[[MyBitcoins gadget]] - monitoring pool earnings / price (Windows gadget)&lt;br /&gt;
*[[Bitcoin QR Popup]] - streamlined interface to bitcoin for POS systems (Windows)&lt;br /&gt;
*[http://gnome-help.org/content/show.php/Bitcoin+Rate?content=138572 Bitcoin Rate] - Desktop widget with BTC exchange rate (KDE)&lt;br /&gt;
*[http://kde-apps.org/content/show.php?content=142344 Bitcoin Monitor] - Desktop widget to monitor status of your Bitcoin miners on mining pools (KDE)&lt;br /&gt;
&lt;br /&gt;
===Mobile apps===&lt;br /&gt;
==== iPhone / iPad ====&lt;br /&gt;
*[https://blockchain.info/wallet/iphone-app Blockchain] - Fully featured iphone bitcoin app.&lt;br /&gt;
*[[Bitcoin Ticker (iPhone)]] - monitoring price w/push notifications&lt;br /&gt;
*[[BitCoins Mobile]] - First iPad native app! Live market data, news feeds, mining pool statistics, full screen exchange price charts, bitcoin network statistical charts. (iPad only, iPhone/iPod Touch coming soon!)&lt;br /&gt;
*[https://github.com/teeman/BitcoinTrader BitcoinTrader] - Spend/receive BTC via QR codes, trade, deposit/withdraw, etc. Supports Mt. Gox, TradeHill, ExchB, CampBX, and InstaWallet.&lt;br /&gt;
*[[Bit-pay]] - Mobile Checkout, set prices in any currency and receive mobile-to-mobile payment&lt;br /&gt;
*[http://blog.coinbase.com/post/64824441934/the-coinbase-ios-app-has-launched Coinbase iPhone App]&lt;br /&gt;
*[[Easywallet.org]] - Web based wallet, works with QR Code scanner on iPhone/iPad/iPod touch&lt;br /&gt;
*[https://itunes.apple.com/us/app/btc-miner/id648411895?ls=1&amp;amp;mt=8 BTC Miner (iPhone)] - monitor mining results from various mining pools on iPhone/iPad/iPod touch&lt;br /&gt;
*[[BitTick]] -  Real-time Bitcoin ticker. Real-time currency convert(support 50+ currency. USD, GBP, EUR, CNY, JPY, CAD, RUB, AUD, BRL, NZD, PLN, KRW…) &lt;br /&gt;
&lt;br /&gt;
==== Android ====&lt;br /&gt;
* Direct link to Android Market bitcoin apps. https://play.google.com/store/search?q=bitcoin&lt;br /&gt;
*[[BitCare]] - Track bitcoin wallet balance, trade on Mt.Gox, monitor mining pool hashrate, balance, worker status. &lt;br /&gt;
*[[Bitcoin Alert]] - monitoring price (Android)&lt;br /&gt;
*[[Bitcoin-android]] - Does not appear to be being maitained anymore. https://market.android.com/details?id=com.bitcoinandroid&lt;br /&gt;
*[[Bitcoin Wallet Balance]] - view your balance in real time on your android phone&lt;br /&gt;
*[[Bitcoin Wallet]] - This is the most functional Android bitcoin wallet application. https://market.android.com/details?id=de.schildbach.wallet&lt;br /&gt;
*[[BitcoinSpinner]] - Single address, easy to use, lightweight and open source client. Keys stored on device.&lt;br /&gt;
*[[BitcoinX]] - monitoring price (Android)&lt;br /&gt;
*[[BitPay]] - https://market.android.com/details?id=com.bitcoin.bitpay (Is not related to the bit-pay.com online payment processor.)&lt;br /&gt;
*[[Bridgewalker]] - euro-denominated wallet for the Bitcoin economy&lt;br /&gt;
*[https://blockchain.info/wallet/android-app Blockchain] - Lightweight Android Bitcoin Client - Also works with blockchain.info web interface and iphone app.&lt;br /&gt;
*[https://play.google.com/store/apps/details?id=com.coinbase.android&amp;amp;hl=en Coinbase Wallet] - supports buying, selling, sending, requesting, and more.&lt;br /&gt;
*[https://play.google.com/store/apps/details?id=com.coinbase.android.merchant&amp;amp;hl=en Coinbase Merchant] - makes it easy to accept bitcoin at a retail location&lt;br /&gt;
*[[http://coincliff.com CoinCliff]] - Monitors price and fires alarms to wake you up, or notifications, as in text messages (Android)&lt;br /&gt;
*[[Easywallet.org]] - Web based wallet, works with QR Code scanner on Android devices&lt;br /&gt;
*[[Miner Status]] - monitoring miner status (Android)&lt;br /&gt;
*[[SMS Bitcoins]] - transactions by SMS&lt;br /&gt;
&lt;br /&gt;
==== Windows Phone 7 ====&lt;br /&gt;
*Direct link to Windows Phone Marketplace Bitcoin apps: [http://www.windowsphone.com/en-us/store/search?q=bitcoin]&lt;br /&gt;
&lt;br /&gt;
==== Windows Phone 8 ====&lt;br /&gt;
*[[Bitcoin Can]] - Monitoring prices, account balances and mobile trading on multiple exchanges including MtGox, Coinbase, and CampBX. http://www.windowsphone.com/en-us/store/app/bitcoin-can/57fcf4d6-497a-4663-8da3-93cb26c83b11&lt;br /&gt;
&lt;br /&gt;
see also [[Bitcoin Payment Apps]]&lt;br /&gt;
&lt;br /&gt;
===Operating systems===&lt;br /&gt;
*[[MinePeon]] - Bitcoin mining on the Raspberry PI&lt;br /&gt;
*BAMT - a minimal Linux based OS intended for headless mining.  Initially announced [https://bitcointalk.org/index.php?topic=65915.0 here]  (not maintained)&lt;br /&gt;
*[[LinuxCoin]] - a lightweight Debian-based OS, with the Bitcoin client and GPU mining software (not maintained)&lt;br /&gt;
&lt;br /&gt;
===Mining apps===&lt;br /&gt;
Main page: [[Mining software]]&lt;br /&gt;
*[[50Miner]] - A GUI frontend for Windows(Poclbm, Phoenix, DiabloMiner, cgminer)&lt;br /&gt;
*[[BFGMiner]] - Modular ASIC/FPGA/GPU miner in C&lt;br /&gt;
*[http://www.groupfabric.com/bitcoin-miner/ Bitcoin Miner by GroupFabric] - Free easy-to-use DirectX GPU miner on the Windows Store&lt;br /&gt;
*[[BTCMiner]] - Bitcoin Miner for ZTEX FPGA Boards&lt;br /&gt;
*[[Bit Moose]] - Run Miners as a Windows Service.&lt;br /&gt;
*[[Poclbm]] - Python/OpenCL GPU miner ([[Poclbm-gui|GUI(Windows &amp;amp; MacOS X)]])&lt;br /&gt;
*[[CGMiner]] - ASIC/FPGA/GPU miner in C&lt;br /&gt;
*[[Poclbm-mod]] - more efficient version of [[Poclbm]] ([[Poclbm-mod-gui|GUI]])&lt;br /&gt;
*[[DiabloMiner]] - Java/OpenCL GPU miner ([[DiabloMiner.app|MAC OS X GUI]])&lt;br /&gt;
*[[RPC Miner]] - remote RPC miner ([[RPCminer.app|MAC OS X GUI]])&lt;br /&gt;
*[[Phoenix miner]] - miner&lt;br /&gt;
*[[Cpu Miner]] - miner&lt;br /&gt;
*[[Ufasoft miner]] - miner&lt;br /&gt;
*[[Pyminer]] - Python miner, reference implementation&lt;br /&gt;
*[[Remote miner]] - mining pool software&lt;br /&gt;
*[[Open Source FGPA Bitcoin Miner]] - a miner that makes use of an FPGA Board&lt;br /&gt;
*[https://github.com/mkburza/Flash-Player-Bitcoin-Miner Flash Player Bitcoin Miner] - A proof of concept Adobe Flash Player miner&lt;br /&gt;
*[http://fabulouspanda.co.uk/macminer/ MacMiner] - A native Mac OS X Bitcoin/Litecoin miner based on cgminer, bfgminer, cpuminer and poclbm&lt;br /&gt;
*[[Asteroid]] - Mac-specific GUI based on cgminer&lt;br /&gt;
*[[MultiMiner]] - GUI based on cgminer/bfgminer for Windows, OS X and Linux, allows switching between currencies based on profitability&lt;br /&gt;
&lt;br /&gt;
===Mining Pool Servers (backend)===&lt;br /&gt;
Main page: [[Poolservers]]&lt;br /&gt;
&lt;br /&gt;
*[[ecoinpool]] - Erlang poolserver (not maintained)&lt;br /&gt;
*[[Eloipool]] - Fast Python3 poolserver&lt;br /&gt;
*[[Pushpoold]] - Old mining poolserver in C (not maintained)&lt;br /&gt;
*[[Poold]] - Old Python mining poolserver (not maintained)&lt;br /&gt;
*[[PoolServerJ]] - Java mining poolserver (not maintained)&lt;br /&gt;
&lt;br /&gt;
===Utilities, libraries, and interfaces:===&lt;br /&gt;
*[[BitcoinCrypto]] - a lightweight Bitcoin crypto library for Java/Android&lt;br /&gt;
*[[Bitcoin Dissector]] - a wireshark dissector for the bitcoin protocol&lt;br /&gt;
*[[Bitcointools]] - a set of Python tools accessing the transaction database and the wallet&lt;br /&gt;
*[[Finance::MtGox]] - a Perl module which interfaces with the Mt. Gox API&lt;br /&gt;
*[[libblkmaker]] - C library implementation of [[getblocktemplate]] decentralized mining protocol&lt;br /&gt;
*[[python-blkmaker]] - Python module implementation of [[getblocktemplate]] decentralized mining protocol&lt;br /&gt;
&lt;br /&gt;
===Lists of software===&lt;br /&gt;
*[[BitGit]] - list of Bitcoin-related opensource projects hosted at Git&lt;br /&gt;
&lt;br /&gt;
===Developer resources===&lt;br /&gt;
*[[:Category:Developer|Category:Developer]]&lt;br /&gt;
*[[:Category:Technical|Category:Technical]]&lt;br /&gt;
*[[Original Bitcoin client/API calls list]]&lt;br /&gt;
*[[API reference (JSON-RPC)]]&lt;br /&gt;
*[[PHP_developer_intro|PHP Developer Introduction]]&lt;br /&gt;
&lt;br /&gt;
===Other===&lt;br /&gt;
*[[Namecoin]] - a distributed naming system based on Bitcoin technology&lt;br /&gt;
*[[Bitcoin Consultancy]] - an organization providing open source software and Bitcoin-related consulting&lt;br /&gt;
*[[Open Transactions]] - a financial crypto and digital cash software library, complementary to Bitcoin&lt;br /&gt;
*[[Moneychanger]] - Java-based GUI for [[Open Transactions]]&lt;br /&gt;
*[http://btcnames.org/ BTCnames] - a webbased aliasing service which allows to handle unlimited names for your BTC deposit hashes&lt;br /&gt;
*[[Devcoin]] - the open source developer coin&lt;br /&gt;
&lt;br /&gt;
[[Category:Software|*]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=41889</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=41889"/>
		<updated>2013-10-22T21:32:21Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Full list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bitcoin API call list (as of version 0.8.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;
| addmultisigaddress || &amp;lt;nrequired&amp;gt; &amp;lt;&#039;[&amp;quot;key&amp;quot;,&amp;quot;key&amp;quot;]&#039;&amp;gt; [account] || Add a nrequired-to-sign multisignature address to the wallet. Each key is a bitcoin address or hex-encoded public key. If [account] is specified, assign address to [account]. || N&lt;br /&gt;
|-&lt;br /&gt;
| addnode || &amp;lt;node&amp;gt; &amp;lt;add/remove/onetry&amp;gt; || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Attempts add or remove &amp;lt;node&amp;gt; from the addnode list or try a connection to &amp;lt;node&amp;gt; once. || N&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;
| createmultisig || &amp;lt;nrequired&amp;gt; &amp;lt;&#039;[&amp;quot;key,&amp;quot;key&amp;quot;]&#039;&amp;gt; || Creates a multi-signature address and returns a json object ||&lt;br /&gt;
|-&lt;br /&gt;
| createrawtransaction || [{&amp;quot;txid&amp;quot;:txid,&amp;quot;vout&amp;quot;:n},...] {address:amount,...} || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Creates a [[Raw Transactions|raw transaction]] spending given inputs. || N&lt;br /&gt;
|-&lt;br /&gt;
| decoderawtransaction || &amp;lt;hex string&amp;gt; || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Produces a human-readable JSON object for a [[Raw Transactions|raw transaction]]. || N&lt;br /&gt;
|-&lt;br /&gt;
| dumpprivkey || &amp;lt;bitcoinaddress&amp;gt; || Reveals the private key corresponding to &amp;lt;bitcoinaddress&amp;gt; || Y&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;
| getaddednodeinfo || &amp;lt;dns&amp;gt; [node] || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Returns information about the given added node, or all added nodes&lt;br /&gt;
(note that onetry addnodes are not listed here)&lt;br /&gt;
If dns is false, only a list of added nodes will be provided,&lt;br /&gt;
otherwise connected information will also be available.&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;
| getbestblockhash || || &#039;&#039;&#039;recent git checkouts only&#039;&#039;&#039; Returns the hash of the best (tip) block in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblock || &amp;lt;hash&amp;gt; || Returns information about the block with the given hash. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockcount || || Returns the number of blocks in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockhash || &amp;lt;index&amp;gt; || Returns hash of block in best-block-chain at &amp;lt;index&amp;gt;; index 0 is the [[genesis block]] || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocknumber || || &#039;&#039;&#039;Deprecated&#039;&#039;&#039;. &#039;&#039;&#039;Removed in version 0.7&#039;&#039;&#039;. Use getblockcount. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocktemplate || [params] || Returns data needed to construct a block to work on.  See [[ BIP_0022]] for more info on params.|| 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. || N&lt;br /&gt;
|-&lt;br /&gt;
| getinfo || || Returns an object containing various state info. || N&lt;br /&gt;
|-&lt;br /&gt;
| getmemorypool || [data] || &#039;&#039;&#039;Replaced in v0.7.0 with getblocktemplate, submitblock, getrawmempool``` || N&lt;br /&gt;
|-&lt;br /&gt;
| getmininginfo || || Returns an object containing mining-related information:&lt;br /&gt;
* blocks&lt;br /&gt;
* currentblocksize&lt;br /&gt;
* currentblocktx&lt;br /&gt;
* difficulty&lt;br /&gt;
* errors&lt;br /&gt;
* generate&lt;br /&gt;
* genproclimit&lt;br /&gt;
* hashespersec&lt;br /&gt;
* pooledtx&lt;br /&gt;
* testnet&lt;br /&gt;
|| N&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]. || N&lt;br /&gt;
|-&lt;br /&gt;
| getpeerinfo || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns data about each connected node. || N&lt;br /&gt;
|-&lt;br /&gt;
| getrawchangeaddress || [account]|| &#039;&#039;&#039;recent git checkouts only&#039;&#039;&#039; Returns a new Bitcoin address, for receiving change.  This is for use with raw transactions, NOT normal use. || Y&lt;br /&gt;
|-&lt;br /&gt;
| getrawmempool || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns all transaction ids in memory pool || N&lt;br /&gt;
|-&lt;br /&gt;
| getrawtransaction || &amp;lt;txid&amp;gt; [verbose=0] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Returns [[Raw Transactions|raw transaction]] representation for given transaction id. || N&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) || N&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. While some might consider this obvious, value reported by this only considers *receiving* transactions. It does not check payments that have been made *from* this address. In other words, this is not &amp;quot;getaddressbalance&amp;quot;. Works only for addresses in the local wallet, external addresses will always show 0. || N&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 associated with the transaction&amp;lt;ref&amp;gt;From block timestamp, unless transaction was already in memory pool then the local time when the client added the transaction to its memory pool&amp;lt;/ref&amp;gt;.&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;
** &amp;quot;fee&amp;quot;&lt;br /&gt;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| gettxout || &amp;lt;txid&amp;gt; &amp;lt;n&amp;gt; [includemempool=true] || Returns details about an unspent transaction output (UTXO) || N&lt;br /&gt;
|-&lt;br /&gt;
| gettxoutsetinfo ||  || Returns statistics about the unspent transaction output (UTXO) set || N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| help || [command] || List commands, or get help for a command. || N&lt;br /&gt;
|-&lt;br /&gt;
| importprivkey || &amp;lt;bitcoinprivkey&amp;gt; [label] [rescan=true]|| Adds a private key (as returned by dumpprivkey) to your wallet. This may take a while, as a [[How_to_import_private_keys#Import_Private_key.28s.29|rescan]] is done, looking for existing transactions. &#039;&#039;&#039;Optional [rescan] parameter added in 0.8.0.&#039;&#039;&#039; || Y&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. || N&lt;br /&gt;
|-&lt;br /&gt;
| listaddressgroupings || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns all addresses in the wallet and info used for coincontrol. || N&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;
|| N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| listsinceblock|| [blockhash] [target-confirmations] || Get all transactions in blocks since block [blockhash], or all transactions if omitted. || N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| listunspent || [minconf=1] [maxconf=999999] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Returns array of unspent transaction inputs in the wallet. || N&lt;br /&gt;
|-&lt;br /&gt;
| listlockunspent || || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Returns list of temporarily unspendable outputs&lt;br /&gt;
|-&lt;br /&gt;
| lockunspent || &amp;lt;unlock?&amp;gt; [array-of-objects] || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Updates list of temporarily unspendable outputs&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 || N&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;
| sendrawtransaction || &amp;lt;hexstring&amp;gt; || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Submits [[Raw Transactions|raw transaction]] (serialized, hex-encoded) to local node and network. || N&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. || N&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. || N&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 || N&lt;br /&gt;
|-&lt;br /&gt;
| signmessage || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;message&amp;gt; || Sign a message with the private key of an address. || Y&lt;br /&gt;
|-&lt;br /&gt;
| signrawtransaction || &amp;lt;hexstring&amp;gt; [{&amp;quot;txid&amp;quot;:txid,&amp;quot;vout&amp;quot;:n,&amp;quot;scriptPubKey&amp;quot;:hex},...] [&amp;lt;privatekey1&amp;gt;,...] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Adds signatures to a [[Raw Transactions|raw transaction]] and returns the resulting raw transaction. || Y/N&lt;br /&gt;
|-&lt;br /&gt;
| stop || || Stop bitcoin server. || N&lt;br /&gt;
|-&lt;br /&gt;
| submitblock || &amp;lt;hex data&amp;gt; [optional-params-obj] || Attempts to submit new block to network. || N&lt;br /&gt;
|-&lt;br /&gt;
| validateaddress || &amp;lt;bitcoinaddress&amp;gt; || Return information about &amp;lt;bitcoinaddress&amp;gt;. || N&lt;br /&gt;
|-&lt;br /&gt;
| verifymessage || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;signature&amp;gt; &amp;lt;message&amp;gt; || Verify a signed message. || N&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. || N&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;. || N&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Error Codes==&lt;br /&gt;
&lt;br /&gt;
I don&#039;t see a list of error codes, so I figured I could just paste them here, or on some other page as I find them.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Raw !! Error  !! Code !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: value is type str, expected real] code: -1 } || value is type str, expected real || -1&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Invalid amount] code: -3 } || Invalid amount || -3&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Insufficient funds] code: -4 }|| Insufficient funds || -4 || seems to happen when they need to pay a fee&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Account has insufficient funds] code: -6 } || Account has insufficient funds || -6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original Bitcoin client]]&lt;br /&gt;
* [[Protocol specification]]&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;
* [http://code.gogulski.com/bitcoin-php/class_bitcoin_client.html PHP BitcoinClient Class Reference]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=41700</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=41700"/>
		<updated>2013-10-11T20:46:35Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Full list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bitcoin API call list (as of version 0.8.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;
| addmultisigaddress || &amp;lt;nrequired&amp;gt; &amp;lt;&#039;[&amp;quot;key&amp;quot;,&amp;quot;key&amp;quot;]&#039;&amp;gt; [account] || Add a nrequired-to-sign multisignature address to the wallet. Each key is a bitcoin address or hex-encoded public key. If [account] is specified, assign address to [account]. || N&lt;br /&gt;
|-&lt;br /&gt;
| addnode || &amp;lt;node&amp;gt; &amp;lt;add/remove/onetry&amp;gt; || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Attempts add or remove &amp;lt;node&amp;gt; from the addnode list or try a connection to &amp;lt;node&amp;gt; once. || N&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;
| createmultisig || &amp;lt;nrequired&amp;gt; &amp;lt;&#039;[&amp;quot;key,&amp;quot;key&amp;quot;]&#039;&amp;gt; || Creates a multi-signature address and returns a json object ||&lt;br /&gt;
|-&lt;br /&gt;
| createrawtransaction || [{&amp;quot;txid&amp;quot;:txid,&amp;quot;vout&amp;quot;:n},...] {address:amount,...} || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Creates a [[Raw Transactions|raw transaction]] spending given inputs. || N&lt;br /&gt;
|-&lt;br /&gt;
| decoderawtransaction || &amp;lt;hex string&amp;gt; || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Produces a human-readable JSON object for a [[Raw Transactions|raw transaction]]. || N&lt;br /&gt;
|-&lt;br /&gt;
| dumpprivkey || &amp;lt;bitcoinaddress&amp;gt; || Reveals the private key corresponding to &amp;lt;bitcoinaddress&amp;gt; || Y&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;
| getaddednodeinfo || &amp;lt;dns&amp;gt; [node] || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Returns information about the given added node, or all added nodes&lt;br /&gt;
(note that onetry addnodes are not listed here)&lt;br /&gt;
If dns is false, only a list of added nodes will be provided,&lt;br /&gt;
otherwise connected information will also be available.&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;
| getbestblockhash || || &#039;&#039;&#039;recent git checkouts only&#039;&#039;&#039; Returns the hash of the best (tip) block in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblock || &amp;lt;hash&amp;gt; || Returns information about the block with the given hash. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockcount || || Returns the number of blocks in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockhash || &amp;lt;index&amp;gt; || Returns hash of block in best-block-chain at &amp;lt;index&amp;gt;; index 0 is the [[genesis block]] || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocknumber || || &#039;&#039;&#039;Deprecated&#039;&#039;&#039;. &#039;&#039;&#039;Removed in version 0.7&#039;&#039;&#039;. Use getblockcount. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocktemplate || [params] || Returns data needed to construct a block to work on || 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. || N&lt;br /&gt;
|-&lt;br /&gt;
| getinfo || || Returns an object containing various state info. || N&lt;br /&gt;
|-&lt;br /&gt;
| getmemorypool || [data] || &#039;&#039;&#039;Replaced in v0.7.0 with getblocktemplate, submitblock, getrawmempool``` || N&lt;br /&gt;
|-&lt;br /&gt;
| getmininginfo || || Returns an object containing mining-related information:&lt;br /&gt;
* blocks&lt;br /&gt;
* currentblocksize&lt;br /&gt;
* currentblocktx&lt;br /&gt;
* difficulty&lt;br /&gt;
* errors&lt;br /&gt;
* generate&lt;br /&gt;
* genproclimit&lt;br /&gt;
* hashespersec&lt;br /&gt;
* pooledtx&lt;br /&gt;
* testnet&lt;br /&gt;
|| N&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]. || N&lt;br /&gt;
|-&lt;br /&gt;
| getpeerinfo || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns data about each connected node. || N&lt;br /&gt;
|-&lt;br /&gt;
| getrawchangeaddress || [account]|| &#039;&#039;&#039;recent git checkouts only&#039;&#039;&#039; Returns a new Bitcoin address, for receiving change.  This is for use with raw transactions, NOT normal use. || Y&lt;br /&gt;
|-&lt;br /&gt;
| getrawmempool || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns all transaction ids in memory pool || N&lt;br /&gt;
|-&lt;br /&gt;
| getrawtransaction || &amp;lt;txid&amp;gt; [verbose=0] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Returns [[Raw Transactions|raw transaction]] representation for given transaction id. || N&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) || N&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. While some might consider this obvious, value reported by this only considers *receiving* transactions. It does not check payments that have been made *from* this address. In other words, this is not &amp;quot;getaddressbalance&amp;quot;. Works only for addresses in the local wallet, external addresses will always show 0. || N&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 associated with the transaction&amp;lt;ref&amp;gt;From block timestamp, unless transaction was already in memory pool then the local time when the client added the transaction to its memory pool&amp;lt;/ref&amp;gt;.&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;
** &amp;quot;fee&amp;quot;&lt;br /&gt;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| gettxout || &amp;lt;txid&amp;gt; &amp;lt;n&amp;gt; [includemempool=true] || Returns details about an unspent transaction output (UTXO) || N&lt;br /&gt;
|-&lt;br /&gt;
| gettxoutsetinfo ||  || Returns statistics about the unspent transaction output (UTXO) set || N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| help || [command] || List commands, or get help for a command. || N&lt;br /&gt;
|-&lt;br /&gt;
| importprivkey || &amp;lt;bitcoinprivkey&amp;gt; [label] [rescan=true]|| Adds a private key (as returned by dumpprivkey) to your wallet. This may take a while, as a [[How_to_import_private_keys#Import_Private_key.28s.29|rescan]] is done, looking for existing transactions. &#039;&#039;&#039;Optional [rescan] parameter added in 0.8.0.&#039;&#039;&#039; || Y&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. || N&lt;br /&gt;
|-&lt;br /&gt;
| listaddressgroupings || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns all addresses in the wallet and info used for coincontrol. || N&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;
|| N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| listsinceblock|| [blockhash] [target-confirmations] || Get all transactions in blocks since block [blockhash], or all transactions if omitted. || N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| listunspent || [minconf=1] [maxconf=999999] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Returns array of unspent transaction inputs in the wallet. || N&lt;br /&gt;
|-&lt;br /&gt;
| listlockunspent || || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Returns list of temporarily unspendable outputs&lt;br /&gt;
|-&lt;br /&gt;
| lockunspent || &amp;lt;unlock?&amp;gt; [array-of-objects] || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Updates list of temporarily unspendable outputs&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 || N&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;
| sendrawtransaction || &amp;lt;hexstring&amp;gt; || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Submits [[Raw Transactions|raw transaction]] (serialized, hex-encoded) to local node and network. || N&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. || N&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. || N&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 || N&lt;br /&gt;
|-&lt;br /&gt;
| signmessage || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;message&amp;gt; || Sign a message with the private key of an address. || Y&lt;br /&gt;
|-&lt;br /&gt;
| signrawtransaction || &amp;lt;hexstring&amp;gt; [{&amp;quot;txid&amp;quot;:txid,&amp;quot;vout&amp;quot;:n,&amp;quot;scriptPubKey&amp;quot;:hex},...] [&amp;lt;privatekey1&amp;gt;,...] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Adds signatures to a [[Raw Transactions|raw transaction]] and returns the resulting raw transaction. || Y/N&lt;br /&gt;
|-&lt;br /&gt;
| stop || || Stop bitcoin server. || N&lt;br /&gt;
|-&lt;br /&gt;
| submitblock || &amp;lt;hex data&amp;gt; [optional-params-obj] || Attempts to submit new block to network. || N&lt;br /&gt;
|-&lt;br /&gt;
| validateaddress || &amp;lt;bitcoinaddress&amp;gt; || Return information about &amp;lt;bitcoinaddress&amp;gt;. || N&lt;br /&gt;
|-&lt;br /&gt;
| verifymessage || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;signature&amp;gt; &amp;lt;message&amp;gt; || Verify a signed message. || N&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. || N&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;. || N&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Error Codes==&lt;br /&gt;
&lt;br /&gt;
I don&#039;t see a list of error codes, so I figured I could just paste them here, or on some other page as I find them.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Raw !! Error  !! Code !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: value is type str, expected real] code: -1 } || value is type str, expected real || -1&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Invalid amount] code: -3 } || Invalid amount || -3&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Insufficient funds] code: -4 }|| Insufficient funds || -4 || seems to happen when they need to pay a fee&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Account has insufficient funds] code: -6 } || Account has insufficient funds || -6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original Bitcoin client]]&lt;br /&gt;
* [[Protocol specification]]&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;
* [http://code.gogulski.com/bitcoin-php/class_bitcoin_client.html PHP BitcoinClient Class Reference]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Original_Bitcoin_client/API_calls_list&amp;diff=41699</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=41699"/>
		<updated>2013-10-11T19:35:36Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Full list */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bitcoin API call list (as of version 0.8.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;
| addmultisigaddress || &amp;lt;nrequired&amp;gt; &amp;lt;&#039;[&amp;quot;key&amp;quot;,&amp;quot;key&amp;quot;]&#039;&amp;gt; [account] || Add a nrequired-to-sign multisignature address to the wallet. Each key is a bitcoin address or hex-encoded public key. If [account] is specified, assign address to [account]. || N&lt;br /&gt;
|-&lt;br /&gt;
| addnode || &amp;lt;node&amp;gt; &amp;lt;add/remove/onetry&amp;gt; || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Attempts add or remove &amp;lt;node&amp;gt; from the addnode list or try a connection to &amp;lt;node&amp;gt; once. || N&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;
| createmultisig || &amp;lt;nrequired&amp;gt; &amp;lt;&#039;[&amp;quot;key,&amp;quot;key&amp;quot;]&#039;&amp;gt; || Creates a multi-signature address and returns a json object ||&lt;br /&gt;
|-&lt;br /&gt;
| createrawtransaction || [{&amp;quot;txid&amp;quot;:txid,&amp;quot;vout&amp;quot;:n},...] {address:amount,...} || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Creates a [[Raw Transactions|raw transaction]] spending given inputs. || N&lt;br /&gt;
|-&lt;br /&gt;
| decoderawtransaction || &amp;lt;hex string&amp;gt; || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Produces a human-readable JSON object for a [[Raw Transactions|raw transaction]]. || N&lt;br /&gt;
|-&lt;br /&gt;
| dumpprivkey || &amp;lt;bitcoinaddress&amp;gt; || Reveals the private key corresponding to &amp;lt;bitcoinaddress&amp;gt; || Y&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;
| getaddednodeinfo || &amp;lt;dns&amp;gt; [node] || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Returns information about the given added node, or all added nodes&lt;br /&gt;
(note that onetry addnodes are not listed here)&lt;br /&gt;
If dns is false, only a list of added nodes will be provided,&lt;br /&gt;
otherwise connected information will also be available.&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;
| getbestblockhash || || &#039;&#039;&#039;version 0.8.4&#039;&#039;&#039; Returns the hash of the best (tip) block in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblock || &amp;lt;hash&amp;gt; || Returns information about the block with the given hash. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockcount || || Returns the number of blocks in the longest block chain. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblockhash || &amp;lt;index&amp;gt; || Returns hash of block in best-block-chain at &amp;lt;index&amp;gt;; index 0 is the [[genesis block]] || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocknumber || || &#039;&#039;&#039;Deprecated&#039;&#039;&#039;. &#039;&#039;&#039;Removed in version 0.7&#039;&#039;&#039;. Use getblockcount. || N&lt;br /&gt;
|-&lt;br /&gt;
| getblocktemplate || [params] || Returns data needed to construct a block to work on || 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. || N&lt;br /&gt;
|-&lt;br /&gt;
| getinfo || || Returns an object containing various state info. || N&lt;br /&gt;
|-&lt;br /&gt;
| getmemorypool || [data] || &#039;&#039;&#039;Replaced in v0.7.0 with getblocktemplate, submitblock, getrawmempool``` || N&lt;br /&gt;
|-&lt;br /&gt;
| getmininginfo || || Returns an object containing mining-related information:&lt;br /&gt;
* blocks&lt;br /&gt;
* currentblocksize&lt;br /&gt;
* currentblocktx&lt;br /&gt;
* difficulty&lt;br /&gt;
* errors&lt;br /&gt;
* generate&lt;br /&gt;
* genproclimit&lt;br /&gt;
* hashespersec&lt;br /&gt;
* pooledtx&lt;br /&gt;
* testnet&lt;br /&gt;
|| N&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]. || N&lt;br /&gt;
|-&lt;br /&gt;
| getpeerinfo || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns data about each connected node. || N&lt;br /&gt;
|-&lt;br /&gt;
| getrawchangeaddress || [account]|| &#039;&#039;&#039;version 0.8.4&#039;&#039;&#039; Returns a new Bitcoin address, for receiving change.  This is for use with raw transactions, NOT normal use. || Y&lt;br /&gt;
|-&lt;br /&gt;
| getrawmempool || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns all transaction ids in memory pool || N&lt;br /&gt;
|-&lt;br /&gt;
| getrawtransaction || &amp;lt;txid&amp;gt; [verbose=0] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Returns [[Raw Transactions|raw transaction]] representation for given transaction id. || N&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) || N&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. While some might consider this obvious, value reported by this only considers *receiving* transactions. It does not check payments that have been made *from* this address. In other words, this is not &amp;quot;getaddressbalance&amp;quot;. Works only for addresses in the local wallet, external addresses will always show 0. || N&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 associated with the transaction&amp;lt;ref&amp;gt;From block timestamp, unless transaction was already in memory pool then the local time when the client added the transaction to its memory pool&amp;lt;/ref&amp;gt;.&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;
** &amp;quot;fee&amp;quot;&lt;br /&gt;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| gettxout || &amp;lt;txid&amp;gt; &amp;lt;n&amp;gt; [includemempool=true] || Returns details about an unspent transaction output (UTXO) || N&lt;br /&gt;
|-&lt;br /&gt;
| gettxoutsetinfo ||  || Returns statistics about the unspent transaction output (UTXO) set || N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| help || [command] || List commands, or get help for a command. || N&lt;br /&gt;
|-&lt;br /&gt;
| importprivkey || &amp;lt;bitcoinprivkey&amp;gt; [label] [rescan=true]|| Adds a private key (as returned by dumpprivkey) to your wallet. This may take a while, as a [[How_to_import_private_keys#Import_Private_key.28s.29|rescan]] is done, looking for existing transactions. &#039;&#039;&#039;Optional [rescan] parameter added in 0.8.0.&#039;&#039;&#039; || Y&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. || N&lt;br /&gt;
|-&lt;br /&gt;
| listaddressgroupings || || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Returns all addresses in the wallet and info used for coincontrol. || N&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;
|| N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| listsinceblock|| [blockhash] [target-confirmations] || Get all transactions in blocks since block [blockhash], or all transactions if omitted. || N&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;
|| N&lt;br /&gt;
|-&lt;br /&gt;
| listunspent || [minconf=1] [maxconf=999999] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039;  Returns array of unspent transaction inputs in the wallet. || N&lt;br /&gt;
|-&lt;br /&gt;
| listlockunspent || || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Returns list of temporarily unspendable outputs&lt;br /&gt;
|-&lt;br /&gt;
| lockunspent || &amp;lt;unlock?&amp;gt; [array-of-objects] || &#039;&#039;&#039;version 0.8&#039;&#039;&#039; Updates list of temporarily unspendable outputs&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 || N&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;
| sendrawtransaction || &amp;lt;hexstring&amp;gt; || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Submits [[Raw Transactions|raw transaction]] (serialized, hex-encoded) to local node and network. || N&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. || N&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. || N&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 || N&lt;br /&gt;
|-&lt;br /&gt;
| signmessage || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;message&amp;gt; || Sign a message with the private key of an address. || Y&lt;br /&gt;
|-&lt;br /&gt;
| signrawtransaction || &amp;lt;hexstring&amp;gt; [{&amp;quot;txid&amp;quot;:txid,&amp;quot;vout&amp;quot;:n,&amp;quot;scriptPubKey&amp;quot;:hex},...] [&amp;lt;privatekey1&amp;gt;,...] || &#039;&#039;&#039;version 0.7&#039;&#039;&#039; Adds signatures to a [[Raw Transactions|raw transaction]] and returns the resulting raw transaction. || Y/N&lt;br /&gt;
|-&lt;br /&gt;
| stop || || Stop bitcoin server. || N&lt;br /&gt;
|-&lt;br /&gt;
| submitblock || &amp;lt;hex data&amp;gt; [optional-params-obj] || Attempts to submit new block to network. || N&lt;br /&gt;
|-&lt;br /&gt;
| validateaddress || &amp;lt;bitcoinaddress&amp;gt; || Return information about &amp;lt;bitcoinaddress&amp;gt;. || N&lt;br /&gt;
|-&lt;br /&gt;
| verifymessage || &amp;lt;bitcoinaddress&amp;gt; &amp;lt;signature&amp;gt; &amp;lt;message&amp;gt; || Verify a signed message. || N&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. || N&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;. || N&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Error Codes==&lt;br /&gt;
&lt;br /&gt;
I don&#039;t see a list of error codes, so I figured I could just paste them here, or on some other page as I find them.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Raw !! Error  !! Code !! Notes&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: value is type str, expected real] code: -1 } || value is type str, expected real || -1&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Invalid amount] code: -3 } || Invalid amount || -3&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Insufficient funds] code: -4 }|| Insufficient funds || -4 || seems to happen when they need to pay a fee&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| { [Error: Account has insufficient funds] code: -6 } || Account has insufficient funds || -6&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original Bitcoin client]]&lt;br /&gt;
* [[Protocol specification]]&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;
* [http://code.gogulski.com/bitcoin-php/class_bitcoin_client.html PHP BitcoinClient Class Reference]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=API_reference_(JSON-RPC)&amp;diff=41698</id>
		<title>API reference (JSON-RPC)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=API_reference_(JSON-RPC)&amp;diff=41698"/>
		<updated>2013-10-11T19:00:00Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Perl */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Controlling Bitcoin ==&lt;br /&gt;
&lt;br /&gt;
Run &#039;&#039;bitcoind&#039;&#039; or &#039;&#039;bitcoin-qt -server&#039;&#039;. You can control it via the command-line or by [http://json-rpc.org/wiki/specification HTTP JSON-RPC] commands.&lt;br /&gt;
&lt;br /&gt;
You must create a bitcoin.conf configuration file setting an rpcuser and rpcpassword; see [[Running Bitcoin]] for details.&lt;br /&gt;
&lt;br /&gt;
Now run:&lt;br /&gt;
  $ ./bitcoind -daemon&lt;br /&gt;
  bitcoin server starting&lt;br /&gt;
  $ ./bitcoind help&lt;br /&gt;
  # shows the help text&lt;br /&gt;
&lt;br /&gt;
A [[Original Bitcoin client/API Calls list|list of RPC calls]] will be shown.&lt;br /&gt;
&lt;br /&gt;
  $ ./bitcoind getbalance&lt;br /&gt;
  2000.00000&lt;br /&gt;
&lt;br /&gt;
== JSON-RPC ==&lt;br /&gt;
&lt;br /&gt;
Running Bitcoin with the -server argument (or running bitcoind) tells it to function as a [http://json-rpc.org/wiki/specification HTTP JSON-RPC] server, but &lt;br /&gt;
[http://en.wikipedia.org/wiki/Basic_access_authentication Basic access authentication] must be used when communicating with it, and, for security, by default, the server only accepts connections from other processes on the same machine.  If your HTTP or JSON library requires you to specify which &#039;realm&#039; is authenticated, use &#039;jsonrpc&#039;.&lt;br /&gt;
&lt;br /&gt;
Bitcoin supports SSL (https) JSON-RPC connections beginning with version 0.3.14.  See the [[Enabling SSL on original client daemon|rpcssl wiki page]] for setup instructions and a list of all bitcoin.conf configuration options.&lt;br /&gt;
&lt;br /&gt;
Allowing arbitrary machines to access the JSON-RPC port (using the rpcallowip [[Running_Bitcoin|configuration option]]) is dangerous and &#039;&#039;&#039;strongly discouraged&#039;&#039;&#039;-- access should be strictly limited to trusted machines.&lt;br /&gt;
&lt;br /&gt;
To access the server you should find a [http://json-rpc.org/wiki/implementations suitable library] for your language.&lt;br /&gt;
&lt;br /&gt;
== Proper money handling ==&lt;br /&gt;
&lt;br /&gt;
See the [[Proper Money Handling (JSON-RPC)|proper money handling page]] for notes on avoiding rounding errors when handling bitcoin values.&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
&lt;br /&gt;
[http://json-rpc.org/wiki/python-json-rpc python-jsonrpc] is the official JSON-RPC implementation for Python.&lt;br /&gt;
It automatically generates Python methods for RPC calls.&lt;br /&gt;
However, due to its design for supporting old versions of Python, it is also rather inefficient.&lt;br /&gt;
[[User:jgarzik|jgarzik]] has forked it as [https://github.com/jgarzik/python-bitcoinrpc Python-BitcoinRPC] and optimized it for current versions.&lt;br /&gt;
Generally, this version is recommended.&lt;br /&gt;
&lt;br /&gt;
While BitcoinRPC lacks a few obscure features from jsonrpc, software using only the ServiceProxy class can be written the same to work with either version the user might choose to install:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
  from jsonrpc import ServiceProxy&lt;br /&gt;
  &lt;br /&gt;
  access = ServiceProxy(&amp;quot;http://user:password@127.0.0.1:8332&amp;quot;)&lt;br /&gt;
  access.getinfo()&lt;br /&gt;
  access.listreceivedbyaddress(6)&lt;br /&gt;
  #access.sendtoaddress(&amp;quot;11yEmxiMso2RsFVfBcCa616npBvGgxiBX&amp;quot;, 10)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Ruby ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ruby&amp;quot;&amp;gt;&lt;br /&gt;
require &#039;net/http&#039;&lt;br /&gt;
require &#039;uri&#039;&lt;br /&gt;
require &#039;json&#039;&lt;br /&gt;
&lt;br /&gt;
class BitcoinRPC&lt;br /&gt;
  def initialize(service_url)&lt;br /&gt;
    @uri = URI.parse(service_url)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def method_missing(name, *args)&lt;br /&gt;
    post_body = { &#039;method&#039; =&amp;gt; name, &#039;params&#039; =&amp;gt; args, &#039;id&#039; =&amp;gt; &#039;jsonrpc&#039; }.to_json&lt;br /&gt;
    resp = JSON.parse( http_post_request(post_body) )&lt;br /&gt;
    raise JSONRPCError, resp[&#039;error&#039;] if resp[&#039;error&#039;]&lt;br /&gt;
    resp[&#039;result&#039;]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  def http_post_request(post_body)&lt;br /&gt;
    http    = Net::HTTP.new(@uri.host, @uri.port)&lt;br /&gt;
    request = Net::HTTP::Post.new(@uri.request_uri)&lt;br /&gt;
    request.basic_auth @uri.user, @uri.password&lt;br /&gt;
    request.content_type = &#039;application/json&#039;&lt;br /&gt;
    request.body = post_body&lt;br /&gt;
    http.request(request).body&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
  class JSONRPCError &amp;lt; RuntimeError; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
if $0 == __FILE__&lt;br /&gt;
  h = BitcoinRPC.new(&#039;http://user:password@127.0.0.1:8332&#039;)&lt;br /&gt;
  p h.getbalance&lt;br /&gt;
  p h.getinfo&lt;br /&gt;
  p h.getnewaddress&lt;br /&gt;
  p h.dumpprivkey( h.getnewaddress )&lt;br /&gt;
  # also see: https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
&lt;br /&gt;
The [http://jsonrpcphp.org/ JSON-RPC PHP] library also makes it very easy to connect to Bitcoin.  For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
  require_once &#039;jsonRPCClient.php&#039;;&lt;br /&gt;
  &lt;br /&gt;
  $bitcoin = new jsonRPCClient(&#039;http://user:password@127.0.0.1:8332/&#039;);&lt;br /&gt;
   &lt;br /&gt;
  echo &amp;quot;&amp;lt;pre&amp;gt;\n&amp;quot;;&lt;br /&gt;
  print_r($bitcoin-&amp;gt;getinfo()); echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Received: &amp;quot;.$bitcoin-&amp;gt;getreceivedbylabel(&amp;quot;Your Address&amp;quot;).&amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Java ==&lt;br /&gt;
&lt;br /&gt;
The easiest way to tell Java to use HTTP Basic authentication is to set a default Authenticator:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
  final String rpcuser =&amp;quot;...&amp;quot;;&lt;br /&gt;
  final String rpcpassword =&amp;quot;...&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
  Authenticator.setDefault(new Authenticator() {&lt;br /&gt;
      protected PasswordAuthentication getPasswordAuthentication() {&lt;br /&gt;
          return new PasswordAuthentication (rpcuser, rpcpassword.toCharArray());&lt;br /&gt;
      }&lt;br /&gt;
  });&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once that is done, any JSON-RPC library for Java (or ordinary URL POSTs) may be used to communicate with the Bitcoin server.&lt;br /&gt;
&lt;br /&gt;
== Perl ==&lt;br /&gt;
&lt;br /&gt;
The JSON::RPC package from CPAN can be used to communicate with Bitcoin.  You must set the client&#039;s credentials; for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;perl&amp;quot;&amp;gt;&lt;br /&gt;
  use JSON::RPC::Client;&lt;br /&gt;
  use Data::Dumper;&lt;br /&gt;
   &lt;br /&gt;
  my $client = new JSON::RPC::Client;&lt;br /&gt;
  &lt;br /&gt;
  $client-&amp;gt;ua-&amp;gt;credentials(&lt;br /&gt;
     &#039;localhost:8332&#039;, &#039;jsonrpc&#039;, &#039;user&#039; =&amp;gt; &#039;password&#039;  # REPLACE WITH YOUR bitcoin.conf rpcuser/rpcpassword&lt;br /&gt;
      );&lt;br /&gt;
  &lt;br /&gt;
  my $uri = &#039;http://localhost:8332/&#039;;&lt;br /&gt;
  my $obj = {&lt;br /&gt;
      method  =&amp;gt; &#039;getinfo&#039;,&lt;br /&gt;
      params  =&amp;gt; [],&lt;br /&gt;
   };&lt;br /&gt;
   &lt;br /&gt;
  my $res = $client-&amp;gt;call( $uri, $obj );&lt;br /&gt;
   &lt;br /&gt;
  if ($res){&lt;br /&gt;
      if ($res-&amp;gt;is_error) { print &amp;quot;Error : &amp;quot;, $res-&amp;gt;error_message; }&lt;br /&gt;
      else { print Dumper($res-&amp;gt;result); }&lt;br /&gt;
  } else {&lt;br /&gt;
      print $client-&amp;gt;status_line;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Go ==&lt;br /&gt;
&lt;br /&gt;
The [https://github.com/conformal/btcjson btcjson package] can be used to communicate with Bitcoin.  You must provide credentials to match the client you are communicating with.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;go&amp;quot;&amp;gt;&lt;br /&gt;
 import &amp;quot;github.com/conformal/btcjson&amp;quot;&lt;br /&gt;
 msg, err := btcjson.CreateMessage(&amp;quot;getinfo&amp;quot;)&lt;br /&gt;
 if err != nil {&lt;br /&gt;
    // Do your error handling&lt;br /&gt;
 }&lt;br /&gt;
 // Use your username and password here.&lt;br /&gt;
 reply, err := btcjson.RpcCommand(&amp;quot;user&amp;quot;, &amp;quot;password&amp;quot;, &amp;quot;localhost:8332&amp;quot;, msg)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== .NET (C#) ==&lt;br /&gt;
The communication with rpc service can be achieved using the standard httprequest/response objects.&lt;br /&gt;
A library for serialising and deserialising Json will make your life a lot easier:&lt;br /&gt;
&lt;br /&gt;
* JayRock for .NET 4.0&lt;br /&gt;
* Json.Net for .NET 2.0 and above &lt;br /&gt;
&lt;br /&gt;
The following example uses Json.Net:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
 HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(&amp;quot;http://localhost.:8332&amp;quot;);&lt;br /&gt;
 webRequest.Credentials = new NetworkCredential(&amp;quot;user&amp;quot;, &amp;quot;pwd&amp;quot;);&lt;br /&gt;
 /// important, otherwise the service can&#039;t desirialse your request properly&lt;br /&gt;
 webRequest.ContentType = &amp;quot;application/json-rpc&amp;quot;;&lt;br /&gt;
 webRequest.Method = &amp;quot;POST&amp;quot;;&lt;br /&gt;
  &lt;br /&gt;
 JObject joe = new JObject();&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;jsonrpc&amp;quot;, &amp;quot;1.0&amp;quot;));&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;id&amp;quot;, &amp;quot;1&amp;quot;));&lt;br /&gt;
 joe.Add(new JProperty(&amp;quot;method&amp;quot;, Method));&lt;br /&gt;
 // params is a collection values which the method requires..&lt;br /&gt;
 if (Params.Keys.Count == 0)&lt;br /&gt;
 {&lt;br /&gt;
  joe.Add(new JProperty(&amp;quot;params&amp;quot;, new JArray()));&lt;br /&gt;
 }&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
     JArray props = new JArray();&lt;br /&gt;
     // add the props in the reverse order!&lt;br /&gt;
     for (int i = Params.Keys.Count - 1; i &amp;gt;= 0; i--)&lt;br /&gt;
     {&lt;br /&gt;
        .... // add the params&lt;br /&gt;
     }&lt;br /&gt;
     joe.Add(new JProperty(&amp;quot;params&amp;quot;, props));&lt;br /&gt;
     }&lt;br /&gt;
  &lt;br /&gt;
     // serialize json for the request&lt;br /&gt;
     string s = JsonConvert.SerializeObject(joe);&lt;br /&gt;
     byte[] byteArray = Encoding.UTF8.GetBytes(s);&lt;br /&gt;
     webRequest.ContentLength = byteArray.Length;&lt;br /&gt;
     Stream dataStream = webRequest.GetRequestStream();&lt;br /&gt;
     dataStream.Write(byteArray, 0, byteArray.Length);&lt;br /&gt;
     dataStream.Close();&lt;br /&gt;
     &lt;br /&gt;
     &lt;br /&gt;
     WebResponse webResponse = webRequest.GetResponse();&lt;br /&gt;
     &lt;br /&gt;
     ... // deserialze the response&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There is also a wrapper for Json.NET called Bitnet (https://sourceforge.net/projects/bitnet)&lt;br /&gt;
implementing Bitcoin API in more convenient way:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
     BitnetClient bc = new BitnetClient(&amp;quot;http://127.0.0.1:8332&amp;quot;);&lt;br /&gt;
     bc.Credentials = new NetworkCredential(&amp;quot;user&amp;quot;, &amp;quot;pass&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
     var p = bc.GetDifficulty();&lt;br /&gt;
     Console.WriteLine(&amp;quot;Difficulty:&amp;quot; + p.ToString());&lt;br /&gt;
&lt;br /&gt;
     var inf = bc.GetInfo();&lt;br /&gt;
     Console.WriteLine(&amp;quot;Balance:&amp;quot; + inf[&amp;quot;balance&amp;quot;]);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Node.js ==&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/freewil/node-bitcoin node-bitcoin] (npm: bitcoin) &lt;br /&gt;
&lt;br /&gt;
Example using node-bitcoin:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
var bitcoin = require(&#039;bitcoin&#039;);&lt;br /&gt;
var client = new bitcoin.Client({&lt;br /&gt;
  host: &#039;localhost&#039;,&lt;br /&gt;
  port: 8332,&lt;br /&gt;
  user: &#039;user&#039;,&lt;br /&gt;
  pass: &#039;pass&#039;&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
client.getDifficulty(function(err, difficulty) {&lt;br /&gt;
  if (err) {&lt;br /&gt;
    return console.error(err);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  console.log(&#039;Difficulty: &#039; + difficulty);&lt;br /&gt;
});&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example using Kapitalize:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&#039;javascript&#039;&amp;gt;&lt;br /&gt;
var client = require(&#039;kapitalize&#039;)()&lt;br /&gt;
&lt;br /&gt;
client.auth(&#039;user&#039;, &#039;password&#039;)&lt;br /&gt;
&lt;br /&gt;
client&lt;br /&gt;
.getInfo()&lt;br /&gt;
.getDifficulty(function(err, difficulty) {&lt;br /&gt;
  console.log(&#039;Dificulty: &#039;, difficulty)&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Command line (cURL) ==&lt;br /&gt;
&lt;br /&gt;
You can also send commands and see results using [http://curl.haxx.se/ cURL] or some other command-line HTTP-fetching utility; for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
  curl --user user --data-binary &#039;{&amp;quot;jsonrpc&amp;quot;: &amp;quot;1.0&amp;quot;, &amp;quot;id&amp;quot;:&amp;quot;curltest&amp;quot;, &amp;quot;method&amp;quot;: &amp;quot;getinfo&amp;quot;, &amp;quot;params&amp;quot;: [] }&#039; &lt;br /&gt;
    -H &#039;content-type: text/plain;&#039; http://127.0.0.1:8332/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will be prompted for your rpcpassword, and then will see something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
  {&amp;quot;result&amp;quot;:{&amp;quot;balance&amp;quot;:0.000000000000000,&amp;quot;blocks&amp;quot;:59952,&amp;quot;connections&amp;quot;:48,&amp;quot;proxy&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;generate&amp;quot;:false,&lt;br /&gt;
     &amp;quot;genproclimit&amp;quot;:-1,&amp;quot;difficulty&amp;quot;:16.61907875185736,&amp;quot;error&amp;quot;:null,&amp;quot;id&amp;quot;:&amp;quot;curltest&amp;quot;}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Clojure ==&lt;br /&gt;
&lt;br /&gt;
[https://github.com/aviad/clj-btc clj-btc] is a Clojure wrapper for the bitcoin API.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;clojure&amp;quot;&amp;gt;&lt;br /&gt;
user=&amp;gt; (require &#039;[clj-btc.core :as btc])&lt;br /&gt;
nil&lt;br /&gt;
user=&amp;gt; (btc/getinfo)&lt;br /&gt;
{&amp;quot;timeoffset&amp;quot; 0, &amp;quot;protocolversion&amp;quot; 70001, &amp;quot;blocks&amp;quot; 111908, &amp;quot;errors&amp;quot; &amp;quot;&amp;quot;,&lt;br /&gt;
 &amp;quot;testnet&amp;quot; true, &amp;quot;proxy&amp;quot; &amp;quot;&amp;quot;, &amp;quot;connections&amp;quot; 4, &amp;quot;version&amp;quot; 80500,&lt;br /&gt;
 &amp;quot;keypoololdest&amp;quot; 1380388750, &amp;quot;paytxfee&amp;quot; 0E-8M,&lt;br /&gt;
 &amp;quot;difficulty&amp;quot; 4642.44443532M, &amp;quot;keypoolsize&amp;quot; 101, &amp;quot;balance&amp;quot; 0E-8M,&lt;br /&gt;
 &amp;quot;walletversion&amp;quot; 60000}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also==&lt;br /&gt;
&lt;br /&gt;
* [[Original_Bitcoin_client/API_Calls_list|API calls list]]&lt;br /&gt;
* [[Running Bitcoin]]&lt;br /&gt;
* [[Lazy API]]&lt;br /&gt;
* [[PHP developer intro]]&lt;br /&gt;
* [[Raw_Transactions|Raw Transactions API]]&lt;br /&gt;
* [http://blockchain.info/api/json_rpc_api Web Based JSON RPC interface.]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
[[zh-cn:API_reference_(JSON-RPC)]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Proper_Money_Handling_(JSON-RPC)&amp;diff=41697</id>
		<title>Proper Money Handling (JSON-RPC)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Proper_Money_Handling_(JSON-RPC)&amp;diff=41697"/>
		<updated>2013-10-11T18:53:29Z</updated>

		<summary type="html">&lt;p&gt;Jcv: /* Perl */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The original bitcoin client stores all bitcoin values as 64-bit integers, with 1 BTC stored as 100,000,000 (one-hundred-million of the smallest possible bitcoin unit).  Values are expressed as double-precision Numbers in the JSON API, with 1 BTC expressed as 1.00000000&lt;br /&gt;
&lt;br /&gt;
If you are writing software that uses the JSON-RPC interface you need to be aware of possible floating-point conversion issues.  You, or the JSON library you are using, should convert amounts to either a fixed-point Decimal representation (with 8 digits after the decimal point) or ideally a 64-bit integer representation. In either case, rounding values is required.&lt;br /&gt;
&lt;br /&gt;
Improper value handling can lead to embarrassing errors; for example, if you truncate instead of doing proper rounding and your software will display the value &amp;quot;0.1 BTC&amp;quot; as &amp;quot;0.09999999 BTC&amp;quot; (or, worse, &amp;quot;0.09 BTC&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
The original bitcoin client does proper, full-precision rounding for all values passed to it via the RPC interface.  So, for example, if the value 0.1 is converted to the value &amp;quot;0.099999999999&amp;quot; by your JSON-RPC library, that value will be rounded to the nearest 0.00000001 bitcoin and will be treated as exactly 0.10 BTC.&lt;br /&gt;
&lt;br /&gt;
The rest of this page gives sample code for various JSON libraries and programming languages.&lt;br /&gt;
&lt;br /&gt;
== BASH ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
 function JSONtoAmount() {&lt;br /&gt;
     printf &#039;%.8f&#039; &amp;quot;$1&amp;quot; | tr -d &#039;.&#039;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== C/C++ ==&lt;br /&gt;
C/C++ JSON libraries return the JavaScript Number type as type &#039;double&#039;.  To convert, without loss of precision, from a double to a 64-bit integer multiply by 100,000,000 and round to the nearest integer:&lt;br /&gt;
 int64_t JSONtoAmount(double value) {&lt;br /&gt;
     return (int64_t)(value * 1e8 + (value &amp;lt; 0.0 ? -.5 : .5));&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
To convert to a JSON value divide by 100,000,000.0, and make sure your JSON implementation outputs doubles with 8 or more digits after the decimal point:&lt;br /&gt;
  double forJSON = (double)amount / 1e8;&lt;br /&gt;
&lt;br /&gt;
== ECMAScript ==&lt;br /&gt;
&lt;br /&gt;
 function JSONtoAmount(value) {&lt;br /&gt;
     return Math.round(1e8 * value);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Perl ==&lt;br /&gt;
 sub JSONtoAmount {&lt;br /&gt;
     return sprintf &#039;%.0f&#039;, 1e8 * shift;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Go ==&lt;br /&gt;
The [https://github.com/conformal/btcjson btcjson package] provides a more complete version of this function (error checking and so on), but for illustrative purposes, this is useful.&lt;br /&gt;
&lt;br /&gt;
 func JSONToAmount(jsonAmount float64) (int64) {&lt;br /&gt;
   var amount int64&lt;br /&gt;
   tempVal := 1e8 * jsonAmount&lt;br /&gt;
   if tempVal &amp;lt; 0 {&lt;br /&gt;
      tempVal = tempVal - 0.5&lt;br /&gt;
   }&lt;br /&gt;
   if tempVal &amp;gt; 0 {&lt;br /&gt;
     tempVal = tempVal + 0.5&lt;br /&gt;
   }&lt;br /&gt;
   // Then just rely on the integer truncating&lt;br /&gt;
   amount = int64(tempVal)&lt;br /&gt;
   return amount&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
 function JSONtoAmount($value) {&lt;br /&gt;
     return round($value * 1e8);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
 def JSONtoAmount(value):&lt;br /&gt;
     return long(round(value * 1e8))&lt;br /&gt;
 def AmountToJSON(amount):&lt;br /&gt;
     return float(amount / 1e8)&lt;br /&gt;
&lt;br /&gt;
== Common Lisp ==&lt;br /&gt;
  (defun json-to-amount (n)&lt;br /&gt;
    (coerce (round (* n 1e8)) &#039;integer))&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CAUTION&#039;&#039;&#039;: The CL-JSON library parses numbers as &#039;&#039;single&#039;&#039; precision floating-point by&lt;br /&gt;
default. The default parsing behavior can be overridden as follows:&lt;br /&gt;
&lt;br /&gt;
   (set-custom-vars :real (lambda (n)&lt;br /&gt;
                             (json::parse-number (concatenate &#039;string n &amp;quot;d0&amp;quot;))))&lt;br /&gt;
[[Category:Technical]]&lt;br /&gt;
[[Category:Developer]]&lt;br /&gt;
&lt;br /&gt;
[[de:Korrektes_Handling_von_Geldbeträgen_(JSON-RPC)]]&lt;/div&gt;</summary>
		<author><name>Jcv</name></author>
	</entry>
</feed>