Questions tagged [json-rpc]

This tag should be used for questions relating to the Bitcoin Core/bitcoind JSON-RPC interface.

Filter by
Sorted by
Tagged with
3
votes
1answer
742 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 ...
7
votes
7answers
17k 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 ...
3
votes
1answer
3k 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 Content-Length:...
33
votes
10answers
28k 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 ...
4
votes
1answer
3k views

I built a miner, got a hash block, now what? Where do I send it?

So as an exercise I want to build a mining client, just because I'm curious. I understand that I'm supposed to create a hash, but once I have the hash, where do I send it? How do I submit it back ...
2
votes
1answer
188 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
1k 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 ...
5
votes
1answer
5k 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
2k 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?
4
votes
2answers
6k 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 (https://en.bitcoin.it/wiki/API_reference_(JSON-...
3
votes
1answer
396 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?
7
votes
8answers
6k 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 ...
3
votes
1answer
1k 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 = ...
12
votes
2answers
5k 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 ...
7
votes
3answers
2k 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 ...
6
votes
3answers
2k 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 ...
4
votes
2answers
15k 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
226 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
456 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
411 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 ...
24
votes
1answer
27k 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 ...
2
votes
0answers
309 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 ...
6
votes
2answers
2k 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 ...
9
votes
1answer
2k 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
298 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.
15
votes
2answers
20k 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?
2
votes
1answer
797 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 ...
5
votes
1answer
405 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
155 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?
4
votes
1answer
1k 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
190 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 ...
8
votes
1answer
432 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 ...
26
votes
4answers
8k 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 ...
3
votes
1answer
3k views

“No more backup pools left. Using primary and starting over.”

I am not using a pool, I am using my graphics cards mining with poclbm over rpc. i do not understand why I get these messages. localhost:8332 15/08/2012 22:40:13, No more backup pools left. Using ...
9
votes
1answer
554 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
767 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 ...
5
votes
1answer
1k 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
145 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
307 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
532 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 ...
5
votes
3answers
4k 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
727 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
210 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
273 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
347 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
vote
0answers
457 views

Move all coins from an address via RPC

Let's say I generated some coins with a given address and I want to send a specific amount of coins to a specific addresses, and move the remaining balance to another specific address. I want to do it ...
2
votes
1answer
342 views

Which Bitcoin miners allow one to use paths in URLs?

I've recently been experimenting with implementing a pool and testing it against GUIminer. To my surprise, it was not able to handle paths in URL of the pool, only subdomains. For example, calling: ...
4
votes
1answer
222 views

Can one send bitcoind transactions that will only be valid after a certain amount of time?

The standard client only allows one to spend coins from a transaction after getting 6 confirmations (120 in case of mining rewards). Can one send bitcoind a JSON-RPC command telling it to send those ...
2
votes
1answer
1k views

Bitcoin RPC SSL error

I recently tried running Bitcoin-QT as a server with SSL enabled, but when I was testing the connection, with this command: openssl s_client -connect 111.11.111.111:8332 I got this error: CONNECTED(...
4
votes
1answer
205 views

API calls - “not yet implemented”?

I tried sending some commands to my Bitcoin-QT running on Mac, and when I called "encryptwallet", I got this response: Not Yet Implemented: use GUI to encrypt wallet, not RPC command What API calls ...