Tagged Questions

Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms (1)

2
votes
1answer
33 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
30 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
15 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
1answer
20 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
16 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
24 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
27 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
32 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 ...
1
vote
1answer
26 views

RPC addmultisigaddress call

I tried the following RPC call via the debug window: addmultisigaddress 2 '["0304a7aadeb1ae96482a10fa634825d86d80dbad8d43cd9177664eaf6f0ff7d890", ...
1
vote
1answer
41 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
25 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
35 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
31 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
28 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
23 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'; ...
0
votes
2answers
41 views

getbalance not working

I am getting this error when I type getbalance: error: {"code":-1,"message":"std::bad_alloc"} Basically, I type getbalance and wait for about 2 minutes and this error appears finally. What does it ...
4
votes
1answer
187 views

What does “Safe mode: Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.” mean?

My bitcoind client that runs on testnet has started returning a lot of errors today. It has been doing so for a few of hours (as of 2014-08-29 9:50 UTC). When I call it via RPC, I get the following ...
1
vote
0answers
17 views

Logical flow to check for receipt of a bitcoin payment [duplicate]

I'm experimenting with writing some Bitcoin software in Node.JS using the node-bitcoin lib to talk directly to my own bitcoind via JSON-RPC, and I am trying to work out the best-practice way to ...
0
votes
1answer
47 views

Ripple - how to properly set flags?

At the moment I'm trying to add flags to my custom Ripple transactions that I submit through JSON RPC. However, when I send my request: { "id":1, "method":"sign", "params":[ { ...
0
votes
0answers
93 views

JSON-RPC “couldn't connect to server” via bitcoind CLI (curl works fine)

This is an odd one. I am running bitcoind 0.9.1 on Ubuntu 14.04 and have this behaviour: Doesn't work: $ bitcoind getinfo error: couldn't connect to server (timeout after 30s) Works fine: $ curl ...
0
votes
0answers
96 views

403 error from localhost for any RPC call

got back from 3 days on the road. before I left I had no problem with RPC calls on my netbook running bitcoind. now I get 403 errors for everything: jcomeau@aspire:~$ bitcoind getbalance error: ...
1
vote
1answer
53 views

RPC connection fails after too many queries

I'm building a node.js app that uses a json-rpc connection to fetch information from the bitcoin daemon. It works great, except every once in a while, the RPC connection "fails." It goes down for ...
2
votes
1answer
67 views

What is the best way to implement withdrawal in online service?

Suppose we have a service, which holds user balance in Bitcoin. How to implement withdrawal from bitcoin perspective? Which RPC call to use? How to archive transaction to have a proof of sending ...
0
votes
1answer
165 views

What is chainwork?

If I run the RPC call getBlock on the bitcoin-qt client it gives me field called chainwork containing a hash. I cant find any information what this value is about. Request: getblock ...
3
votes
1answer
89 views

How can I connect to bitcoin-qt client with public ip address

I used the bitcoin client but i want to connect to it using public ip adress not localhost. From that machine i could reach bitcoin using localhost but when I am using public ip address with the ...
1
vote
1answer
47 views

How can I get the block number of given transaction?

For a given transaction, I have its incoming transactions and I am trying to get the number of the block of those transactions. This seems like something that cannot achieve directly. I am working on ...
2
votes
1answer
44 views

Can I lower fees with stratagy

Say I have two accounts in my wallet. Account A has one address, account B though has 5 address. Each address in account B has a dust amount of coin in it. If I were to use the rpc 'move' command, ...
4
votes
2answers
175 views

How to receive payments online to single address per user in scalable way?

Suppose we are building online casino/market and want to receive payments. To be scalable, safe and have good user experience, we: cannot generate new address for every single payment. Having ...
1
vote
1answer
63 views

moving money without fees

what's the best way to move money within your own wallet between your own accounts and/or addresses without incurring fees? setaccount Sets the account associated with the given address. ...
1
vote
1answer
13 views

Bitcoin wiki docs, account or address?

listtransactions [account] [count=10] [from=0] Returns up to [count] most recent transactions skipping the first [from] transactions for account [account]. If [account] not provided it'll ...
2
votes
1answer
32 views

What's p2sh in decodescript RPC method ouput?

Every time i call decodescript method with any input it returns p2sh bitcoin-cli decodescript 1234 { "asm" : "[error]", "type" : "nonstandard", "p2sh" : ...
1
vote
0answers
49 views

signrawtransaction hex

When calling RPC signrawtransaction it returns a hex-encoded string that contains the raw tx request with its signatures. Is this string: malleable? unique?
2
votes
2answers
160 views

Broadcast raw transaction without input validation

What tool/software can I use to broadcast a raw transaction, which would not reject a transaction because of invalid or double spend? Bitcoind with RPC has a validation step which rejects any raw ...
2
votes
2answers
99 views

How to remove a transaction from the memory pool

Using Bitcoind and Json-RPC, how to remove an unconfirmed transaction from the memory pool? The scenario being removing the unconfirmed transaction because it's not getting confirmed, and it's ...
-1
votes
1answer
27 views

How to get a complete list of transactions?

listtransactions - 9 provides the latest transactions and actually all =) How to get all transactions?
1
vote
2answers
99 views

What does the listaddressgroupings rpc method do?

Can anyone please explain the listaddressgroupings rpc method? Its documentation isn't clear in Bitcoin Core Lists groups of addresses which have had their common ownership made public by common use ...
1
vote
0answers
59 views

Accessing certain parts from the 'listunspent' array

I am developing a web application in PHP. I wish to be able to detect incoming transactions whenever they come, by using the 'listunspent' Bitcoin JSON RPC call. As expected, a long list of ...
1
vote
1answer
51 views

BitCoin RPC calls

What is the best method of getting the transaction id for the last payment sent to an address with n confirmations ? getbalance address with minconf will give me a balance but what I would like to do ...
0
votes
2answers
108 views

Unable to establish connection to bitcoin using json and php

I'm newbie to bitcoins. Im trying to get the info, as much as I can. I'm trying to get the information by using getinfo() method that is mention in api documentation. The code i have tried is ...
1
vote
1answer
165 views

listsinceblock parameter: target-confirmations

listsinceblock help returns: listsinceblock ( "blockhash" target-confirmations ) Get all transactions in blocks since block [blockhash], or all transactions if omitted Arguments: 1. "blockhash" ...
0
votes
0answers
93 views

Send Payment with Blockchain Json RPC Api

I'm looking for an example of how to authenticate and send a payment using Blockchains JSON RPC API. Defined Here . A set of curl commands would be quite helpful to get me started. Assume that I do ...
0
votes
1answer
181 views

http post via java to bitcoind does not work

I am using Ubuntu Server 12.04. My *.conf file: ... # Enable RPC server=1 # Uncomment to allow localhost to use RPC rpcallowip=127.0.0.1 # RPC information # THIS MUST BE CHANGED FOR YOUR SECURITY ...
0
votes
1answer
113 views

Bitcoind JSON/RPC extremely slow under load

I am data mining the blockchain using JSON/RPC on a bitcoind full node with txindex (0.9.1). I have 64 RPC connections simultaneously going to bitcoind from a remote client. My workload is mostly ...
0
votes
1answer
95 views

How to getreceivedbyaddress() with the python-bitcoinlib?

I'm trying to use the python-bitcoinlib in my bitcoin project. I now understand how I can send a payment, but I can't find anything similar to the getreceivedbyaddress() command I normally used. ...
2
votes
1answer
58 views

Check if wallet is encrypted or not through RPC API

How can one check if their wallet is encrypted through the RPC API without receiving an exception? I went through the Original Bitcoin client API calls list but didn't find any command that could ...
1
vote
0answers
47 views

JSON/RPC works fine for bitcoind but not for litecoind

I have managed to set up bitcoind, connect to its JSON/RPC API and run the getinfo command. I followed exactly the same steps and configuration for litecoind (bitcoin.conf and litecoin.conf contain ...
1
vote
1answer
591 views

RPC server with bitcoin-qt and bitcoind has a different set of commands?

When running bitcoin-qt -server, I am able to run the getbalance command, and the help command shows many items: ~ > bitcoin-qt -regtest -server # Running in another shell ~ > bitcoin-cli ...
1
vote
1answer
439 views

How do I use walletnotify?

I have bitcoin daemon and how want to use the walletnotify option with a json-rpc call. Some of the examples use a "transaction.sh" file for walletnotify. What is it for? What do I have to write in ...
0
votes
2answers
208 views

RPC calls fail in testnet mode, but not normal mode?

I'm running bitcoind on a debian web server. If I run in normal mode, i.e. "bitcoind -daemon," then it seems to work completely fine. [birdseye]$ ./bitcoind -daemon Bitcoin server starting ...
-2
votes
1answer
207 views

Can't connect locally with API

I try to connect locally with bitcoin client using the API but I get 404 on request testnet=1 server = 1 rpcport=8332 rpcuser=myuser rpcpassword=mypass I was installing bitcoind on ubuntu ...