Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms (1)

0
votes
1answer
18 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
32 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
12 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
29 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 = ...
1
vote
1answer
10 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
60 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
30 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
45 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
33 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
32 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
23 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 ...
1
vote
1answer
39 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 ...
0
votes
1answer
51 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
37 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
46 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
44 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
46 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
43 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 ...
2
votes
0answers
65 views

jsonRPCClient.php states its served a 401 error response

When I execute my php file from the command line I get this: <pre> PHP Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.0 401 Authorization ...
1
vote
1answer
63 views

os.getpid() in Bitcoin's python test scripts - What does it actually do?

I was looking at ../qa/rpc-tests/util.py in order to figure out how arbitrary ports are assigned to each created node. In the first lines of the code it says: ...def p2p_port(n):return 11000 + n + ...
1
vote
1answer
56 views

How to pass parameters for multisignature addresses from Perl to the JSON::RPC::Client?

I'm trying to create a multisig address with JSON::RPC::Client but I don't know how to pass the parameters. I can pass simple params such as in validateaddress that requires only ...
1
vote
1answer
66 views

How do I open my RPC console?

Someone just asked me to open the RPC console, as part of debugging something else. How do I do that? I'm using Bitcoin-Qt.
0
votes
3answers
54 views

Access to RPC console

I am new to Bitcoin, can anyone tell me how I can access to my RPC console and type in commands. I am using Bitcoin Core on my PC. If there is a tutorial for beginners to access to RPC please notify ...
1
vote
1answer
37 views

From mining to sending via RPC

Assuming that there is a magical mineblocks RPC command that can mine X blocks on demand, what is the complete set of command line commands to start a client, mine my coins to a specific address, see ...
0
votes
1answer
63 views

How can I list my mined coins using RPC? And spend them?

I've mined a few blocks on a blockchain, and I'm trying to figure how to actually see them. What is the correct RPC command ? I've managed to see all the coinbase transactions thanks to ...
1
vote
1answer
118 views

Using bitcoind JSON-RPC, how to get transaction from input address?

I have an address from which all unspent txouts were used in a single transaction. How can I find out what transaction was that? In my node instance, listtransactions will not list addresses that ...
0
votes
1answer
39 views

How to read a tx's comment?

How can I retrieve the comment field from a payment transaction that I made from my QT wallet? I can see the comment when I click "Show transaction details" in my QT but I cannot find a way to do ...
1
vote
0answers
111 views

on testnet: 'transaction already in blockchain'.. but it isn't

At least I don't think so! I'm trying to create a wallet infrastructure to minimise fees, and so I've been experimenting with raw transactions. I'm quite clueless but fortunately have enough sense to ...
0
votes
2answers
122 views

Bitcoin RPC works in bitcoin-cli but not in python-bitcoinrpc: No JSON object

I'm running a testnet node. I can use bitcoin-cli just fine: >bitcoin-cli.exe getinfo { "version" : 100000, "protocolversion" : 70002, "walletversion" : 60000, [... snipped] But when ...
3
votes
0answers
52 views

getblocktemplate times out after being called many times

I am writing a program about bitcoin mining. It calls the RPC method getblocktemplate every second. Sometimes bitcoind doesn't reply to my RPC getblocktemplate request, but bitcoind still accepted new ...
2
votes
1answer
98 views

watch-only addresses doesn't work properly in bitcoind v0.10.0

I imported a watch-only address to bitcoind by using below command: bitcoin-cli importaddress <myaddress> "testacc" true According to release notes it should support some rpc calls for this ...
1
vote
1answer
107 views

Difference between RPC calls addmultisigaddress and importaddress

I am trying to import a 2-of-3 multisignature address into my bitcoind wallet, watch-only. I have the public keys, but not the private keys. Two potential bitcoind JSON-RPC calls that seem to fit are: ...
0
votes
2answers
75 views

Bitcoind becomes non-responsive over JSON-RPC, have to manually restart all the time

I run bitcoind on AWS on Ubuntu. The machine has 4Gb of memory and free shows some of it remains free. Enough disk space too. Yet, I have to manually restart bitcoind quite often, because sending ...
1
vote
3answers
171 views

What's the difference between the Bitcoin's peer to peer protocol and the RPC API?

Bitcoin implements both a peer-to-peer synchronization protocol (normally on port 8333) and a JSON-RPC API (normally on port 8332). What are these designed to accomplish? If I'm trying to implement ...
5
votes
1answer
80 views

Using bitcoins JSON RPC, how can I confirm a transaction I published?

I have created, signed and sent a raw transaction via bitcoind RPC. Now I want to wait for it to have n confirmations. Considering transaction malleability, I can't just check the "confirmations" ...
0
votes
1answer
45 views

listtransactions via RPC returns false in PHP

In PHP I run $bitcoin->listtransactions("count = 5, offset = 0"); In the hope of getting 5 transactions only, but I get the response bool(false) When I run $bitcoin->listtransactions(); ...
1
vote
1answer
58 views

Does createrawtransction accept scriptPubKey and redeemScript as inputs?

According to the built-in RPC documentation the signature for createrawtransaction is: createrawtransaction [{"txid":"id","vout":n},...] {"address":amount,...}. Gavin in his example on 2-of-3 ...
0
votes
0answers
180 views

json_rpc_call solo mining with bitcoin running on Windows 7 for antminer

I setup BitcoinD on a Windows 7 PC. I configured for defaults except user/pw and rpcallowip=192.168.1.0/255.255.255.0. have also tried 192.168.1.* with no luck. I ultimately want to use an Antminer ...
2
votes
1answer
91 views

UPDATED: -25 when pushing multisig

I am trying to push this correctly signed 2/3 multisig to the network (based on Gavin's example) and I get RPC_VERIFY_ERROR = -25, //! General error during transaction or block submission: The ...
0
votes
0answers
229 views

Fatal error: Uncaught exception 'Exception' with message 'Invalid Response'

Fatal error: Uncaught exception 'Exception' with message 'Invalid Response' in C:\xampp\htdocs\jsonRPCClient.php:155 Stack trace: 0 C:\xampp\htdocs\jsonRPCClient.php(87): ...
1
vote
1answer
90 views

How to tell whether an address is local or remote?

For example, I have a BTC address. Can I (using RPC) get information is this address my local or remote?
3
votes
1answer
290 views

Receiving `error: {“code”:-25,“message”:“”}` on sendrawtransaction with v0.9.3

I'm running a bitcoind regtest node. When trying to relay a transaction (created using bitcoin-ruby) I receive error: {"code":-25,"message":""} When I restart the node and relay the exact same ...
0
votes
1answer
302 views

How do you delete an account in Bitcoin Core?

I am attempting to allow multiple bitcoin addresses to be created per account, but how can I delete them using the standard API? There doesn't seem to be a function for that. E.g. the acccount "Test" ...
1
vote
1answer
89 views

c# BitcoinLib: GetRawTransaction verbose=1 does not work

I want to find out confirmation number for non-wallet transaction. When I use ...
0
votes
0answers
128 views

Get work on custom solo mining software

I'm making a bitcoin solo miner, what is the URL to get the current block header a with JSON call? I also need the URL where the work will be sent if a valid solution is found. Right now I'm trying ...
0
votes
1answer
130 views

How to get a wallet address and set label via RPC?

I'm familiar with the basic RPC commands, but I'm having trouble retrieving/adding an address to a wallet, using purely RPC calls (i.e. bitcoind only, not bitcoin-qt). My understanding is that ...
1
vote
2answers
120 views

Historical BTC data in JSON

As of now, the only API I can find that serves historical data is https://blockchain.info/charts/market-price?timespan=60days&format=json. It only uses USD, and I need to serve non-USD data. My ...
0
votes
2answers
140 views

How to run multiple bitcoin RPC commands through the command window?

Yes, I can generate a new address through the bitcoin-qt command console, but how might I run a for loop to generate 100 different addresses? What kind of file does the bitcoin client take? Can I run ...
1
vote
1answer
149 views

Error trying to send payments with RPC sendmany

Need help fixing this error. Error trying to send payments with RPC sendmany {"code":-8,"message":"Invalid parameter, duplicated address I a running a NOMP mining pool that has payment job breaking ...
2
votes
0answers
58 views

When does the “reject” string have an empty reject reason upon submitting a new block?

I submitted a new block using the rpc command submit. And I just got a "reject" string without a reject reason. I checked the bitcoind source code, and found that it usually sends a reject reason; ...