Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms (1)

4
votes
0answers
22 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
22 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
94 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 ...
2
votes
1answer
34 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 ...
1
vote
1answer
12 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
25 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 ...
0
votes
1answer
23 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
47 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 ...
0
votes
0answers
14 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& ...
0
votes
0answers
43 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 ...
0
votes
1answer
31 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
48 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 ...
2
votes
0answers
22 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
15 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 ...
1
vote
1answer
56 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 ...
2
votes
1answer
74 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
74 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
37 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: ...
2
votes
1answer
54 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
11 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
20 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
39 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
41 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
22 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 ...
2
votes
0answers
44 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
37 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
49 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
72 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
27 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 ...
6
votes
1answer
289 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
32 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
177 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
131 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
64 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 ...
2
votes
1answer
64 views

Does bitcoind accept batch RPC calls?

Am currently sending RPC calls to bitcoind in Python3 in series using JSON: import json, requests def pull(command, foo): headers = {'content-type': 'application/json'} payload = ...
2
votes
4answers
116 views

How can I get the DateTime of when bitcoind last received a block?

Is there a command to get the DateTime of when bitcoind last received a block?
1
vote
1answer
18 views

rpc get hex not json

how can i get the hex output in bitcoin-rpc for blocks? i'm using python-bitcoinrpc. in bitcoin-cli i can go: $ bitcoin-cli getblock 00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048 ...
0
votes
0answers
153 views

how to add extranonce-subscribe to mining pool?

i setup a pool my pool. miner can mine without new protocol extranonce using "no-extranonce=true" setting . but some miner seems pool dead without it. i want to add extranonce-subscribe support to ...
1
vote
0answers
55 views

How to fork blockchain intentionally without RPC commands?

Are there any methods other than RPC command invalidateblock <hash> for creating forks? I know that forks occur when two miners (nearly) simultanously each generate a block for a previous common ...
1
vote
1answer
69 views

Estimatefee value not corresponding to actual fee

When I call estimatefee 1 in testnet it returns: 0.00044444 Then when I call sendtoaddress xxxxxx 0,1 (which got the first confirmation within a couple of minutes after sending) I see that the fee ...
0
votes
0answers
74 views

block found in wallet, receving rewards, but not tracked by pool

i setup altcoin mining pool . some of wallets shows block found and receive rewards by miner , but not tracked block in pool. there are some wallets working well. ...
0
votes
0answers
61 views

why to use blocknotify script, even if we can check for “share is block candidate” using target compare?

i have some complicate situation in altcoin wallet that wallet shows new block found with reward , but pool not show block found. could it be a reason that i not use block notify script. but checking ...
0
votes
1answer
46 views

Display missing parameters in cli help command on web page with JSONRPC

I am trying to get the entire contents of the "help" command to show up on a web page I am working on. Currently print_r($coin->help(); shows most of it, but all of the required parameters, except ...
2
votes
1answer
56 views

How do I find out what block a transaction is in?

I'm trying to do research on the age of transaction outputs at the time they are spent. I'm running bitcoind on my computer. I have transactions indexed with txindex=1. I want to take a given TXIN and ...
1
vote
1answer
179 views

how to send money using json-rpc in bitcoin-cli for php?

$bitcoin->sendfrom($this->session->userdata('account'), $_POST['address'], number_format($_POST['amount'], 8)); but this isn't working. i got everything via json-rpc. but can't send or move ...
0
votes
0answers
52 views

sendtoaddress() rpc-api call takes too long to execute

I'm developing web-application which utilises bitcoind rpc-api via https://github.com/sinisterchipmunk/bitcoin-client. Sometimes sendtoaddress call takes more than 30 seconds to execute, while other ...
1
vote
1answer
73 views

How to calculate the transaction size from the signed hex encoded?

Suppose I have a signed hex encoded transaction (as returned by RPC call signrawtransaction), how to get the size, in bytes, for purpuses of calculating if included transaction fee is acceptable by ...
2
votes
1answer
47 views

Full list of RPCs - including hidden RPCs

Where can I find a full list of RPCs that are not listed in the output of the help command? (such as invalidateblock etc.)
1
vote
2answers
83 views

Help me use python-bitcoinrpc

I have got the api working and i can run commands like access = AuthServiceProxy("http://root:123@127.0.0.1:8332") access.getinfo() However not sure how to use more complicated commands such as: ...
1
vote
0answers
78 views

bitcoind inconsistent authentication error

I am using a Linux computer. The issue I am having is that sometimes I have to use "kill -s 9 (bitcoind pid)" and restart bitcoind using "bitcoind -txindex" because bitcoind will sometimes not let me ...