Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms (1)

2
votes
0answers
17 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 ...
1
vote
1answer
23 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
25 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
1answer
32 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
48 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
45 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
24 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
34 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
57 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
72 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
66 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
71 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?
2
votes
1answer
95 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
72 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
45 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
87 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
43 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
76 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
80 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
52 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
45 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; ...
1
vote
0answers
66 views

Bitcoin, detecting deposits to the node.js server (code review)

I'm trying to detect deposits that user will made. I explained it with comment lines in below. Can you are there any flaw in it? var _ = require('underscore') var check = function(client, site) { ...
0
votes
1answer
23 views

getrawtransaction - find destination and “change” addresses

How to get destination address and amount from result of getrawtransaction and how to distinguish it from "change" address using rpc api.
0
votes
1answer
39 views

How do I use the RPC command “decodescript”?

I used "decodescript" on a transaction inputscript 304402206c4eba989dd5f87b7814f25ec8b9e08f955d30b299d963df8955639aa0a0f9bc02203c4d41b047d4dc616da101911c512e89255e2c3261733f030f9d1329ca2822dd01 I ...
1
vote
1answer
85 views

bitcoind JSON-RPC interface timeouts under unit tests

I am running unit tests against bitcoind which do JSON-RPC requests in high rate. Random failures are an issue. E.g. if you have something like this in printconsole logs: ThreadRPCServer ...
0
votes
1answer
126 views

listtransactions RPC call

bitcoin-cli help listtransactions returns: listtransactions ( "account" count from ) Returns up to 'count' most recent transactions skipping the first 'from' transactions for account 'account'. ...
0
votes
0answers
19 views

Using API/RPC to identify transactions with inputs from “dormant” addresses

Is it possible to identify, for eg, large transactions of Bitcoin which are using inputs from "dormant" (>24 months) addresses? Certainly it's possible with some coding and API calls but is there a ...
0
votes
1answer
54 views

How to detect a race attack and re-spend the already-spent outputs?

My service automatically accepts, processes and sends payments to its users. It connects to bitcoind through its JSON-RPC API and makes use of the raw transactions interface. What is going to happen ...
0
votes
2answers
66 views

Bitcoind confirmations during fork

I'm using bitcoind's JSONRPC interface to get transaction information for my wallet, specifically, I'm running a little script every time a block gets broadcast (using -blocknotify) which calls the ...
1
vote
1answer
64 views

JSON-RPC to detect double-spent TXs

How can I be positive that one of the incoming payments to my bitcoin-core was double-spent after it was confirmed once by the network, through the JSON-RPC interface? Related questions: How do I ...
1
vote
1answer
85 views

OP_Return in transactions at json_rpc_api at blockchain.info

I am writing a project in Ruby using JSON-RPC to communicate with blockchain.info. The API is available here: https://blockchain.info/api/json_rpc_api Is it possible to create a op_return txout using ...
1
vote
4answers
118 views

Would it be possible to add an RPC call to be able to determine if a node is fully synced?

After reading this answer, where Peter Wuille talks about how a node can't really tell if it is synced or not, it got me wondering if there is a way we can tell that a node is as synced as it possibly ...
2
votes
1answer
52 views

Why do the Bitcoin RPC Calls use decimals for coin amounts?

The Bitcoin RPC calls all use 8 digit decimals ('reals') to encode amounts of satoshis. For example, if I get a transaction output, it might look like this: { "value" : 0.00050000, "n" : 1, ...
0
votes
1answer
51 views

What RPC can I use to query the balance of an arbitrary address [duplicate]

How do I get the balance of an arbitrary address using Bitcoin RPC calls? From the RPC calls I can see you are required to have the private key or an account to use the RPC. For illustrations sake, ...
1
vote
1answer
176 views

rpcallowip=192.168.0.* ?? invalid configuration

I recently downloaded bitcoin from github and changed the settings to allow for rpc. This is how I have it: rpcallowip=192.168.0.* This does not work anymore. However when running bitcoind, it ...
4
votes
2answers
92 views

Bitcoind transaction data verification

I find myself a victim of either my poor googling skills, or the lack of detail in the bitcoind docs. I have a walletNotify script running on a full node that whenever a transaction to / from my ...
0
votes
1answer
180 views

bitcoin-cli getbalance different from listunspent

I have probably misunderstood the meaning of bitcoind 'getbalance' command. I am using bitcoind in regtest mode. I am using imported multisig bitcoin watch-only addresses, which are the following: ...
0
votes
1answer
28 views

Why is the scriptPubKey required when using signrawtransaction?

The signrawtransaction rpc method calls for the following use: signrawtransaction "hexstring" ( [{"txid":"id","vout":n,"scriptPubKey":"hex","redeemScript":"hex"},...] ["privatekey1",...] sighashtype ...
1
vote
0answers
110 views

JSON RPC calls for Armory wallet

I'm trying to access an armory wallet via RPCs. For instance using the procedure listreceivedbyaddress should ideally return all of the addresses in my Armory wallet. However, when I run this from my ...
1
vote
1answer
82 views

Bitcoin RPC getbalance of address I sent coins to on regtest

Here is my terminal session: $ echo $address mvt7M16caMH1xoJyfWU5orjArfq97jhZ7k $ bitcoin-cli -regtest getbalance 5899.99990000 $ bitcoin-cli -regtest sendtoaddress $address 10.0 ...
1
vote
1answer
46 views

What is the easiest way to associate an utxo to a specific account?

I'm building a web application that uses bitcoind's accounts to track user balances. My dev env is currently in regtest mode. I am working on calculating the network transaction fee prior to creating ...
2
votes
1answer
90 views

How do I query a remote bitcoin node like RPC?

I know how to query the blockchain stored on my machine programmatically using bitcoind commands. Is it possible to do the same on a public node? For example, is it possible to send “getblockcount” ...
1
vote
1answer
79 views

How to get the number of the confirmed transactions from Bitcoin QT Rpc

We are building a generic wrapper around Bitcoin-Qt. I wonder if there is way to get the information about the confirmation count of a transaction from a Bitcoin-QT having an empty wallet using the ...
2
votes
1answer
118 views

RPC addmultisigaddress call

I tried the following RPC call via the debug window: addmultisigaddress 2 '["0304a7aadeb1ae96482a10fa634825d86d80dbad8d43cd9177664eaf6f0ff7d890", ...
1
vote
1answer
103 views

How to set a payment in Ripple without specifying currency issuers?

I want to send IOUs from one of my accounts to another through the use of the API. Both of the accounts trust the same IOU issuer, which is a separate address. According to the Transaction Format, I ...
0
votes
1answer
53 views

Local Testnet3, where do the new coins get sent to?

I'm trying to setup a local testnet with multiple nodes. Currently I have three nodes, and their mining powers are almost the same. When I use listaccounts RPC call, all the wallets have 0 coins. ...
1
vote
1answer
66 views

Bitcoin testnet: “Bitcoin is downloading blocks…” and other problem

I'm trying to setup a local testnet with multiple nodes. Currently I have three nodes, and their mining powers are almost the same. Things have been quite ok so far, except some problems that I need ...
2
votes
1answer
51 views

How secure is calling bitcoind JSON-RPC from same computer?

I am wondering if calling JSON-RPC from the computer it is running on is secure. I read How secure is calling bitcoind JSON-RPC? and understand why it is insecure to do so from a different computer. ...
0
votes
1answer
49 views

Does outbound port have to be open to make an Json-RPC call

lets say i am making a json-rpc call with the following connection : $connect = new jsonRPCClient('http://user:password@ipaddress:9332'); does outbound port 9332 of the sender need to be open as ...
0
votes
0answers
48 views

json RPC Blockchain not Working

I am unable to connect to the Blockchain API, here is the code: $rpc_host = 'rpc.blockchain.info';$rpc_port = '80'; $rpc_user = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'; $rpc_pass = 'PASSWORD'; ...