Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms (1)

0
votes
1answer
12 views

Wrong getrawtransaction response?

Bitcoin client returns something strange with this transaction (getrawtransaction 90f...fda 1) : there is only one output address, and six input address. Yet, one of the input address targets a ...
5
votes
1answer
29 views

How to check if node is on TestNet or MainNet via `bitcoin-cli`?

Is there a way, by using bitcoin-cli using RPC querying, if the node I'm querying is running on MainNet or TestNet? Thanks
3
votes
2answers
48 views

Bitcoind uses only ~1.5% CPU for RPC command “getnewaddress”

I'm running bitcoind and generate a bunch of bitcoin addresses. I use a PHP script and an Apache2 server to make calls to the RPC API. bitcoind uses ~ 0.7%-2.2% of the CPU and writes ~3 MB/s on the ...
1
vote
1answer
28 views

Automated Testing using bitcoind in regtest mode, problems due to race condition

So I have multiple instances of bitcoind in regtest mode. 1 instance is for the app wallet and one stimulates a wallet of a possible user. I want to perform various functional and integration tests ...
0
votes
1answer
40 views

Random 'The operation has timed out' errors in JSON-RPC

I run Bitcoin Core QT and ASP.NET website on the same webserver. My website communicates with Bitcoin Core QT via JSON-RPC. There are hundreds of requests behind the scenes. Sometimes a request ...
2
votes
1answer
53 views

Is there a way to know the Bitcoin Network transaction fee BEFORE actually submitting the transaction?

I am using the RPC API to submit automated transactions to my Bitcond, the user introduces the Amount and I check it against its balance before submitting the transaction. I would like to also check ...
3
votes
1answer
34 views

What's the difference between synced_blocks and synced_headers?

My P2P is a bit rusty, but as far as I understand; if we're running a full node, other nodes will connect to us to share blocks. So I can see why it would be useful to be able to see how far behind ...
0
votes
0answers
45 views

Error - Electrum RPC methods not supported

I install Electrum under Linux. sudo apt-get install python-qt4 python-pip sudo pip install https://download.electrum.org/2.6.4/Electrum-2.6.4.tar.gz After this i run daemon on port 7777: ...
0
votes
1answer
56 views

How to use JSON-RPC in C++ in Linux?

Which library I must use for JSON? Where is RPC call example ? How to use RPC of bitcoind or bitcoin-cli? or better Electrum API to get all new (maybe pending) transactions which appears in Bitcoin ...
1
vote
2answers
39 views

Is the getnewaddress command available before synchronization is completed?

Can I expect the getnewaddress command to work before my bitcoind has finished synchronizing?
1
vote
4answers
50 views

How can a lightweight client make sure output has not been spent yet?

It's simple to prove the creation of a UTXO: You just need to provide the transaction data, the Merkle branch, and block of the creating transaction. Then, as a full-node, it is simple to check ...
1
vote
1answer
119 views

JSON-RPC Connection Problem!

I use bitcoind. And I have simple bitcoin wallet with simple login-register system. Error Code; Fatal error: Uncaught exception 'Exception' with message 'Incorrect response id (request id: 1, ...
1
vote
0answers
45 views

Using PHP with RPC and cookie

Since 0.12 RPC uses a "random cookie":https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.12.0.md#rpc-random-cookie-rpc-authentication for authentication, but it's not ...
0
votes
0answers
18 views

counterparty Token JSON image

I, on the Token made with counterparty, can not set the URL of the JSON code. And not be able to set the image. In this JSON source, the next of which elements, you do not know may be me for a URL ...
0
votes
1answer
38 views

Do I need to be synced with the network to make remote RPC calls?

I want to make some RPC calls from my local computer to a server I have which is currently syncing with the network via $ bitcoind I am trying to make RPC calls for things like getinfo but my ...
1
vote
0answers
55 views

How to add parameters like “-regtest=1” to a JSON-RPC call in C#?

I'm trying to modify the CoiniumServ codebase ( https://github.com/int6/CoiniumServ ), so it supports bitcoind in regtest mode. I know using bitcoin-cli you need to add -regtest to the bitcoin-cli ...
3
votes
1answer
64 views

Why does getNewAddress take so long? Often times out python-bitcoinrpc

Bitcoin 0.11 on a Raspberry Pi 2: https://github.com/jgarzik/python-bitcoinrpc I am using this RPC auth proxy to talk to bitcoind from Python. I have a script that requests getmempoolinfo every 1 ...
0
votes
1answer
33 views

Can you reset 'used' addresses that were actually never used?

Bitcoin RPC command getnewaddress returns a P2PKH address from the keypool, and marks it as "used" so it will not be returned by the same RPC call again. I'm going to be doing a lot of testing on ...
0
votes
1answer
158 views

Are there Ethereum API wrappers? [closed]

I'm looking into developing some Go software on Ethereum and I'm wondering - are there any API wrappers around for Ethereum (something like BTCSuite's BTCRPCClient is for Bitcoin)? I know there is a ...
1
vote
1answer
115 views

bitcoind sendfrom with minconf=0

Is it possible using bitcoind JSON-RPC API to receive funds from someone and send it immediately to another third-party address? I do not want to wait for 1 confirmation. getbalance with minconf=0 ...
0
votes
1answer
37 views

Is there a way to get the node's local time when a block was received?

As in, not the miner's timestamp in the blockheader which can be +/- 2 hours, but the receiving node's local time. My concern is the real-world time that elapses between blocks.
2
votes
1answer
31 views

How to derive the 'addresses' field on an output from a serialized tx

I'm trying to figure out how to derive the addresses field from a serialized tx. Take for instance this transaction on the test network ...
1
vote
1answer
85 views

EasyBitcoin-PHP very slow

I am trying to use bitcoins on my website. For this I use EasyBitcoin-PHP. It works good except that it is very slow. It takes about 5 seconds to load a simple script like this: <?php require_once ...
1
vote
1answer
138 views

bitcoin-cli very slow to respond to RPC calls (Raspberry Pi)

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software). Blockchain is fully synced, 13 connections. In htop, I see I'm ...
1
vote
0answers
27 views

Help with understanding Semaphore grants in OpenNetworkConnection

I am new to concurrent programming. Can any expert throw some light on the semaphore grant that one requires before acquiring a network connection ? bool OpenNetworkConnection(const CAddress& ...
1
vote
0answers
89 views

JSON RPC from external server

I'm having trouble connecting to my node via JSON RPC from an external server. On the same machine, I'm able to pass the commands through bitcoin-cli and also locally I am able to run this PHP file ...
1
vote
1answer
121 views

Why is my bitcoind daemon not listening on RPC port at 8332?

I have read a similar post which had no answer at this location. I am trying to use bitcoin-cli from a host that different from the host that runs bitcoind. I also would be happy with being able to ...
3
votes
1answer
57 views

Validate a payment using bitcoind and json rpc

I need to implement a BTC payment system on my web-store. But I'm still not sure about the mechanisms I'm supposed to use for payment confirmation. For example, a user registered on my store and I ...
1
vote
0answers
79 views

Bitcoind has too slow API call performance on large wallets

Bitcoind (bitcoin-0.11.2, linux32) has too slow performance when the wallet size gets bigger, i will post here some average timing behaviors. The wallet size is 410MB. A getbalance call requires 1.45 ...
0
votes
0answers
19 views

`listtransactions` JSON-RPC API not returning all deposits?

I'm using bitcoin core 0.10.0. With the QT UI I'm able to see all past transactions of my wallet. There are less received transactions (135) than sent transactions (about thousands). If I use the ...
0
votes
1answer
71 views

namecoin name_firstupdate

Hey I am trying to connect to my namecoin server. I have hosted and done the first name_firstupdate. I am using easybitcoin.php. I have stored the rnd and txid I need from the name_new step but when I ...
1
vote
1answer
252 views

Can I use curl to call getInfo from a the Bitcoin server?

I am wondering if its possible to use curl to getinfo from the bitcoin server thanks. <?php // init the resource $ch = curl_init(); // set a single option... $username = 'usernamefromconfig'; $...
2
votes
1answer
242 views

How to call JSON RPC API from C?

How do I make RPC calls from C? My question is related to the question: "How do I call JSON RPC API using C#?"
2
votes
0answers
96 views

Bitcoind stopped working [closed]

Hello i have been running Bitcoind and Dogecoind for more than 2 month and all has been working great but today bitcoind has stopped working I am receiving the error: Warning: fopen(http://...@127....
2
votes
1answer
79 views

How to get the “BTC” abbreviation via command line?

I'm writing a module that connects to multiple wallets at once and I would like to have a way I can simply query the coin daemon for its coins abbreviation (not the "microcoins" as asked in a comment ...
1
vote
0answers
18 views

bitcoind calls walletnotify before it's ready to process API calls

I have a walletnotify configured with bitcoind. When I start bitcoind this scipt is being called which in turn does bitcoind requests. However, in the startup phase, bitcoind calls the walletnotify ...
0
votes
1answer
21 views

Does getrecievedbyaddress work for all addresses?

In previous versions getrecievedbyaddress api call returned 0 for external addresses (not included into local wallet) and it was described in the docs. However, right now documentation for ...
2
votes
1answer
83 views

getnewaddress (RPC) on encrypted bitcoin wallet without wallet password?

Say for example an encrypted wallet has 5000 addresses already pre-generated in the keypool. Can getnewaddress be called via RPC command without knowing the actual wallet password? I envisage a ...
-1
votes
1answer
61 views

trying to transfer my bitcoins from my unsynced bitcoin qt wallet to new online wallet by createrawtransaction but it comes with error code [closed]

it comes up with error Error:error parsing JSON: [{txid:my txid,vout:my transaction number},...] so whats this mean and what can i do to correct it please? im not very it inclined cheers :-)
1
vote
0answers
31 views

Validate chain from `valid-headers` to `valid-fork`

The getchaintips JSON-RPC returns multiple branches of the blockchain. Chain tips can be in various statuses. The active and valid-fork are already validated chains. There is a valid-header valid-...
2
votes
0answers
60 views

Get as many blocks as possible (stale, invalid, orphans)

I would like to download (and access) as much blocks as possible - including stale (extinct) blocks, orphans blocks and invalid blocks. I have 0.11 official client. My node is already synchronized but ...
0
votes
1answer
71 views

Bitcoind listtransactions return only received transactions not showing send payment

I try to get all transaction of an account using this: listtransactions Ammadkhalid But this is show me received transaction not send here screenshot but in php:
0
votes
1answer
98 views

How can I get the Fee involved in a Bitcoin transaction using RPC client (bitcoin-cli)?

I performed a bitcoin payment in the testnet, here is what I get when I execute bitcoin-cli gettransaction "11b8d5f89793e83e9e10b7ee51fa1b3445f6029f7d7efe4c82b3b261ec513a0e", as you can see the info ...
1
vote
1answer
108 views

Continuous integration setup using bitcoind regtest on travis-ci

Subtitle: travis-ci fails to run generate JSON-RPC method on regtest I'm trying to setup CI process on https://travis-ci.org platform to install bitcoind and start new blockchain using regtest mode. ...
1
vote
1answer
40 views

How to spend bitcoins From Account and specify Fee

I am writing an application that uses bitcoin wallet accounts to specify what addresses belong to what user. I have been reading the documentation trying to find a way to spend Bitcoins specifying the ...
8
votes
1answer
439 views

Why is JSON-RPC over SSL “strongly discouraged”?

The Wiki contains a page that simply states: JSON-RPC over SSL is strongly discouraged Why? I found a method for enabling JSON_RPC over SSL here. The post mentions nothing about JSON-RPC over ...
0
votes
1answer
39 views

Is “previousblockhash” always returned from getblock RPC calls?

Does the getblock(hash) RPC call always return a "previousblockhash" field and if not: under what conditions does it not return this? Background: many algorithms suggest using this field as a way to ...
1
vote
1answer
278 views

jsonRPCClient.php not working

I got bitcoind working in the cmd prompt; Then I closed it and opened bitcoin-qt and that is now running in server mode; (bitcoinf server=1) Then I run some simple .php on my localhost (using xampp ...
0
votes
0answers
196 views

I cant connect to bitcoin

I can't connect to bitcoin, tried everything, googled extensively and tried but can't resolve. I have a bitcoin.conf file created but I am not sure it is being accessed during the run of "hello.php" ...
0
votes
1answer
79 views

rpc call gettransaction not work on bitcoin 0.10.2

Hello i have upgraded my bitcoind to 0.10.2, some of my rpc request now doesn't work. this is an example: bitcoin-cli gettransaction 6f5dfa31bef79d0c8cdd58530fc9f0ed2427e7085d421755f3fe78c a6ac326ef ...