Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms

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
28 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
30 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
1answer
37 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
0answers
54 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
143 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
76 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
44 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
161 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
56 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
12 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 ...
1
vote
0answers
31 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
89 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 ...
1
vote
1answer
66 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
73 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 ...
0
votes
0answers
42 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
43 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
76 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
114 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
74 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
116 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
87 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
71 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
52 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
43 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
307 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
324 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
175 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
146 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 ...
0
votes
0answers
47 views

Bitcoin-RPC PHP: It just dawned on me, should i be json decoding arrays returned from the client?

My question is should i be using json_decode() to decode the arrays prior to using them in php? here's an example: public function CheckAddress($address) { $truth = ...
0
votes
1answer
62 views

What does the Bitcoin RPC mean and how is it used?

What does Bitcoin RPC mean and how is it used? I see the term RPC referenced multiple times, but not show what it means and how its used. I see it in JSON-RPC. I know json is just a data format, ...
0
votes
0answers
75 views

RPC error when sending withdrawal(PHP)

Same problem i had previously, but a bit different. here's my script if you can help. EDIT: OH BOY do i feel dumb. i went into the json rpc client file, and made it print r the response. below was ...
2
votes
0answers
72 views

Bitcoind Performance for production usage

Lets say we have one instance of bitcoind running on the production server. And our exchange software/application interacts with it using RPC callbacks for: address generation withdrawal ...
1
vote
2answers
118 views

Store bitcoin transactions in mysql

How can I use the jsonRPC for the bitcoin client to export the chain into mysql and then sync the two as transactions come in? I'm writing a blockchain explorer for a new alt coin and unfortunately ...
0
votes
1answer
94 views

How do I iterate through the entire Blockchain using RPC?

I'd like to iterate through the entire block chain using RPC. The process I intend to do is: getblockhash 1 getblock (input of #1 here) iterate through each transaction with GetRawtransaction ...
1
vote
1answer
151 views

What is point of encrypting wallet, if Bitcoin API's sendtoaddress needs passphrase?

The Bitcoin API enables programs on the server to use JSON RPC to interact with the Bitcoin wallet. Most commands do not need the wallet locked (which I assume is the same thing as encrypted). ...
0
votes
1answer
153 views

How to fix CoinBase pay too much error [duplicate]

ERROR: ConnectBlock() : coinbase pays too much (actual=20000000 vs limit=20000000) I got this error at my debug.log anyone know how to fix this issue? I am coding a new coin, changing its rewards, ...
0
votes
1answer
66 views

Withdraw and wallet lock race conditions?

I'm working on a site that has wallet-like functionality in ruby/rails. I'm wondering the best way to process withdraws. My first inclination is to do something like this: def process_withdraw ...
0
votes
1answer
93 views

Decode transaction

I get this output from gettransaction: { "txid" : "48476129249868825168d72ec6224d8be8ed70a204a7ac4b6523cf3eb8782e83", "txid" : "48476129249868825168d72ec6224d8be8ed70a204a7ac4b6523cf3eb8782e83", ...
2
votes
2answers
61 views

Doest 'coinbasevalue' in GBT call include fees, or just the total block value?

BIP 22 doesn't seem to specify... Pretty important if you're building a coinbase by hand.
-1
votes
1answer
144 views

Anybody using bitcore.io? I can't seem to make it work properly

I've installed bitcore.io on a folder for my nodejs, using the npm command. npm install bitcore npm install classtool Of course, I tried to run an example code, the one is shown at their website. I ...
0
votes
2answers
360 views

Is there a lightweight blockchain parser library/server?

I'm using bitcoin-qt and have a local copy of the blockchain, in which I'm running some analysis with the JSON-RPC API using mostly getblock and getrawtransaction. I have no need writing or sending ...
0
votes
0answers
66 views

JSON-RPC vs GETDATA, which is faster when fetching a transaction from your own node?

With the introduction of Bitcore, which makes Bitcoin a ton more accessible for Node.js, it's now possible to utilize the actual Bitcoin protocol instead of the JSON-RPC interface. So would it be ...
2
votes
2answers
167 views

How do I find out the reward value of a generated block

Using the bitcoin client's JSON API (or any other altcoin client) how do I find out the reward given for finding that block?
0
votes
1answer
146 views

Can anyone explain the differences in behavior of getrawtransaction and gettransaction in RPC?

I right clicked the transaction history in the QT client and pasted in the TxID below. Q1 In the following test, can anyone explain what the purpose of the suffix -000 is and what it's used for? ...
1
vote
0answers
85 views

Bitcoin daemon sends “Empty reply from server” when in test net

I'm trying to work with the bitcoin daemon and rpc. Using the user & password I set I can't connect to it, trying with curl I always get "Empty reply from server". It works just fine in the real ...
0
votes
1answer
270 views

gettransaction (The remote server returned an error: (500) Internal Server Error.)

Im trying to get how many confirmations a transaction has. However I just get error when I try to get gettransaction. ...
1
vote
0answers
77 views

Can bitcoind/bitcoin-qt (via RPC or command-line-options) be used to discover when two competing best-blocks exist?

The standard bitcoind/bitcoin-qt client lets you ask for the highest known block, via RPC, or get notifications when a new 'best block' is locally acknowledged (via the -blocknotify option). But, is ...