Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms

2
votes
2answers
75 views

Calculating address balance

Is there some method how you can calculate the balance of an address without resorting to web-based API's? When I import a private key the rescanning of bitcoind takes hours. I know to get a balance ...
0
votes
0answers
50 views

Senders Address with Bitcoind in PHP

I've not been able to figure out why I can't relaiably get the senders address using bitcoind 8.1 on the json API with php. foreach ($bitcoin->listtransactions() as $transaction) { if ...
2
votes
0answers
17 views

What is the difference between time, blocktime and timereceived?

What is exactly the difference between time, blocktime and timereceived in transaction information returned by Bitcoind JSON RPC API? For example: ...
2
votes
1answer
73 views

What's wrong with this getrawtransaction JSON-RPC call?

This is a very simple question. I'm trying implement a client for Bitcoind JSON API and I'm stuck on this getrawtransaction call: {"id":"getrawtransaction", ...
1
vote
2answers
260 views

Simplest way of obtaining MtGox exchange rate via an API?

I want to do a simple app that refreshes every minute to tell me the current exchange rate by Mtgox but I have a problem interpreting the JSON that some APIs return: Mtgox's fast ticker returns this ...
1
vote
1answer
100 views

Authorization required error when accessing bitcoin using json RPC

I'm trying to make a simple request to bitcoind using perl I followed the example from the API reference, but it fails saying "401 Authorization Required" #!/usr/bin/perl -w use JSON::RPC::Client; ...
1
vote
1answer
103 views

bitcoind json-rpc requests per second

I'm starting up a new bitcoin based commerce site and am wondering how many transactions per second the bitcoin JSON-RPC API can accept? A user can have an account balance in bitcoin and I was ...
0
votes
2answers
190 views

How to install a Bitcoin client on Ubuntu Server

I've googled a lot for this issue. Hehe. I have found some tutorials, but they were of no use because they are for systems that do have a GUI. I have no plans to install a GUI on that system, and I ...
1
vote
0answers
72 views

Please explain getwork

Request: POST / HTTP/1.1 Host: de.btcguild.com:8332 Accept: */* Accept-Encoding: deflate, gzip Content-type: application/json X-Mining-Extensions: longpoll midstate rollntime submitold ...
2
votes
2answers
132 views

How to check if the block chain is up to date using bitcoind or json-rpc?

I read the full api method list and did not seem to find one. I suppose there is no command specifically for that purpose, so what is the general way of doing this? I would consider checking the ...
0
votes
0answers
33 views

get senders address with XML-RPC without blockchain or blockexplorer [duplicate]

I've checked possible duplicates. I do getrawtransaction/decoderawtransaction from a received, confirmed payment. I get "txid" : "4aa12c91faf414b9b9ef55da9e96206ee3c0465190d6ab415bf48e9df356f68d", ...
1
vote
1answer
66 views

Looking for unit testing data for Block.Bits to & from a JSON-RPC string

I'm trying to convert the JSON-RPC result of a Block's compressed bits property into a C# float with the following constraint //3 bytes mantissa, the leading byte as exponent (where only the 5 ...
1
vote
1answer
120 views

How can I programmatically use several different (isolated) wallets?

I want to use several different wallets (as if one wallet = one account), and want to make sure the spending and receiving activities are exclusive to one wallet at a time. How can I interface with ...
3
votes
1answer
158 views

How to create an new account on a bitcoind server

What is the correct rpc call to start a new account on a bitcoind server?
5
votes
1answer
100 views

How to run Bitcoinj on Heroku?

Does anyone know where I might find a tutorial on how to deploy a bitcoinj server (essentially a replica of a bitcoind server with an rpc API) on Heroku?
2
votes
2answers
223 views

Errors Connecting to Bitcoind Server with RPC

I have been trying to connect to a remote bitcoind -daemon running server. I can access it with the curl command explained at the end of the page here ...
2
votes
1answer
69 views

Which version of the JSON-RPC protocol does Bitcoin use?

I would like to get some clarification on which version of the JSON-RPC protocol does Bitcoin use? 1.0 or 2.0?
2
votes
2answers
161 views

How to communicate between Java and bitcoind?

I am having problems communicating between Java and bitcoind - every JSON RPC library I try has some issues. Can anyone provide a working implementation of even the most basic JSON RPC communication ...
0
votes
1answer
90 views

Bitcoind returning “Invalid JSON-RPC 2.0 response”?

I am starting to use a basic implementation of Bitcoin JSON RPC (dzhuvinov library), and I am getting a strange result. Here is my code: public static void main(String[] args) { URL serverURL = ...
3
votes
2answers
475 views

How to setup a LAN network with only one bitcoind client downloading the blockchain?

I want to do the following: I have one small server PC at home. I want to install bitcoind on that machine to download the blockchain information. Then I want this machine to accept RPC calls from my ...
3
votes
2answers
228 views

Is it safe to run bitcoind on another server

I'm making first, rough concepts of some ideas for bitcoin-enabled services I have in mind. One thing that I wonder is, is there a best-practise approach on running bitcoind on another server that ...
4
votes
3answers
363 views

How to know when a payment has been received by bitcoind?

I want to create a website which involves the creation of a new single-use address that a user would send bitcoins to. I'd like to know programmatically when the user has sent bitcoins to the address ...
3
votes
1answer
624 views

How do I call JSON RPC API using C#?

How do I access the JSON RPC API in C# in such a way that I can also read the errors that the interface provides?
1
vote
1answer
61 views

ListAccounts JSON array data isn't consistently formatted (compared to ListReceivedByAccount)

When I perform a ListAccounts query I get this: { "result": { "": 0.0, "account": 0.0, "account3": 0.0, "account7": 0.0 }, "error": null, "id": "1" } However ...
2
votes
1answer
87 views

Should a JSON-RPC user be required to use a password when backing up the wallet?

I was surprised I was able to back up my wallet over JSON RPC without requiring the wallet password (or even without a secondary backup-only password) I'm concerned that this could create a DOS ...
2
votes
1answer
48 views

In ListReceivedByAddress, what is the meaning of Confirmations if the address is reused?

The API ListReceivedByAddress allows me to view a list a sum* of all the transactions that an address has received. This returns an array listing the sum of what was sent. If the address is reused ...
5
votes
1answer
227 views

What is the difference between the rpc port 8332 and port 8333?

What is the difference between the protocol and commands used on default ports 8332 and port 8333? From what I gather, port 8332 is the RPC port, it's "sensitive", only allowed by local host by ...
1
vote
0answers
99 views

API: keeping account balance positive (+knowing in advance the transaction fee)

I'm using the json API. I need to keep all the account balances positive: I call getbalance first, check if it has enough bitcoins to proceed, and then move or sendfrom. This approach causes two ...
4
votes
2answers
226 views

Manually creating transactions

Due to complete lack of documentation on the subject, how would the pseucode for creating a transaction look using the following functions: createrawtransaction signrawtransaction and ...
7
votes
1answer
187 views

Passing a JSON argument to bitcoind in Windows command prompt

I've been trying to use sendmany on my local installation of Bitcoin-qt (version 0.7.0) from the Windows command prompt. I've seen examples but when I try them all I get is a JSON parsing error. I ...
6
votes
1answer
117 views

Alternative clients and the Bitcoin API

Which of the alternative clients support any/some/all of the standard API calls? I am looking for a possible alternative client to replace Bitcoind on my server.
5
votes
1answer
728 views

What is rpcuser?

Can I just make up a value for rpcuser/rpcpassword in bitcoin.conf? Or do I have to set one up somewhere?
1
vote
1answer
114 views

Can a scriptPubKey have multiple addresses?

When working directly with bitcoind, I can getRawTransaction for any transaction in the network. The vout has multiple outgoing addresses usually which contain a scriptPubKey. The scriptPubKey has a ...
4
votes
1answer
120 views

Why does calling BlockExplorer's checkaddress JSON API do nothing?

I need some help with using JSON and the bitcoin / blockexplorer json calls. I'm not even sure if this is going to work. Basically I'm trying to validate a bitcoin wallet address. I want it to check ...
3
votes
1answer
51 views

How do I read the time field from the json-rpc calls from bitcoind?

The JSON-RPC would return the time in this format "time": 1346289025. How exactly do I read it? I don't know what kind of format it is. So what time is 1346289025?
3
votes
1answer
351 views

How to return Bitcoins to sender through Bitcoin API?

I want to get information about the creator of a given transaction through Bitcoin API. More specifically, any or all addresses they sent their Bitcoins from, so I can return some of the money back. ...
2
votes
1answer
66 views

What is the meaning of target-confirmation?

The API call listsinceblock has an optional parameter called target-confirmations. Exactly what does it mean and how does it differ from the minconf optional parameter that many other calls take? I ...
6
votes
1answer
273 views

Is there an API for price estimation?

I need to display at my website what a certain amount of Bitcoins will likely cost. I can fetch the latest price using the MtGox API and multiply it by the amount, but for large amounts this is ...
13
votes
2answers
713 views

how to monitor +20,000 addresses for new received transactions?

I have around 20000 generated addresses which I want to monitor for new transactions. More addresses should probably come. Customers should use every address only once but I would like to monitor ...
5
votes
1answer
107 views

Importprivkey's “label” - is it the same as an account?

The "importprivkey" API call allows one to import a private key and save it with a label. Is the "label" in the API call synonymous with an account used in the wallet?
4
votes
1answer
123 views

Will calling “walletpassphrase” twice in a short amount of time increase the time the wallet stays unlocked?

The Bitcoin API call for walletpassphrase allows one to open the wallet for a set amount of time. If one calls it again while the wallet is still unlocked, we get an error of 'Error: Wallet is already ...
3
votes
1answer
462 views

Why is bitcoind so slow on VPSs?

Sometimes it takes bitcoind more than a minute to respond to basic RPC calls such as getbalance (and on average, it takes at least 5 seconds), even though the "STAT" according to the Linux 'ps' ...
1
vote
1answer
114 views

Getmemorypool responses

What is the expected response for a getmemorypool RPC call to a standard client, when calling it with data field? I'm mainly interested in such factors as: Will the call return true if a sent block ...
3
votes
2answers
186 views

Getmemorypool example?

I'm currently trying to figure out how to properly use Getmemorypool for mining and I'm having some problems with it. Are there any examples provided somewhere on how to properly call that RPC with ...
3
votes
1answer
247 views

Running Miner as embedded system (No OS) - Can it be done?

I've been messing about with TCP/IP stacks on some fairly powerful MCU's lately (mostly the ARM M4 series), and this sort of led to the crazy idea, that I could somehow create an embedded platform ...
3
votes
2answers
1k views

How can I code a Bitcoin JSON-RPC “getwork” request in Java?

I'm not entirely sure whether to ask this question on Bitcoin-SE or Stack Overflow, but I decided to post it here due to the direct relevancy of the question to Bitcoin and the general prominence of ...
2
votes
2answers
245 views

How would one inject a blockchain fork to the Bitcoin network?

For theoretical purposes, how would one inject a blockchain fork in to the Bitcoin network? For example, lets say we have a small chain of blocks prepared in a program that is not a standard client / ...
0
votes
1answer
149 views

Which miners support generating their own midstate?

Currently I was testing RPCMiner on my Mac running a custom pool, and it appears to crash because I can't generate a proper midstate value. Which miners support generating their own midstate (as per ...
2
votes
1answer
138 views

Getwork and GetMemoryPool - why is previous block hash different?

When I called: print bitcoin.getmemorypool() print bitcoin.getwork() using Python JSON for a testnet BitcoinQT server, I got the following responces: {'previousblockhash': ...
3
votes
1answer
158 views

How to merged mine with getmemorypool RPC command?

The getmemorypool RPC command lists all transactions that are to be included in a block, with the exclusion of the generating transaction. In merged mining, one needs to add an extra transaction ...

1 2