Relating to the JSON-RPC remote procedure calls.

learn more… | top users | synonyms

-1
votes
0answers
22 views

What I'm doing wrong? PHP/RPC does not work (parse error)

I'm new to bitcoin in programming and I'm actually wanted to learn something by testing it on my local machine. So I've set up a webserver on my local machine and also installed bitcoin and started ...
2
votes
1answer
33 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
14 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 ...
0
votes
1answer
32 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
33 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
75 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
2answers
51 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
35 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
41 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
22 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 ...
0
votes
1answer
26 views

How do you make json-rpc calls in PHP dynamic?

I am using the easybitcoin.php script here: https://github.com/aceat64/EasyBitcoin-PHP When making a json-RPC call, such as: print_r($<username>->getbalance($_SESSION['username']) ); You ...
2
votes
0answers
53 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
1answer
55 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
0answers
29 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
93 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
96 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
48 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
68 views

Decode transaction

I get this output from gettransaction: { "txid" : "48476129249868825168d72ec6224d8be8ed70a204a7ac4b6523cf3eb8782e83", "txid" : "48476129249868825168d72ec6224d8be8ed70a204a7ac4b6523cf3eb8782e83", ...
2
votes
2answers
31 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.
0
votes
1answer
58 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
147 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
39 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 ...
1
vote
2answers
72 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
88 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
46 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
107 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. ...
0
votes
0answers
43 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 ...
0
votes
1answer
176 views

Bitcoin/Dogecoin Daemon RPC authentication - 401 status error

I'm trying to connect to a local dogecoin server with jsonRPC. The dogecoin daemon is launched with the following parameters: dogecoin-qt -server -testnet -gen -debug -debugnet -printtoconsole ...
0
votes
1answer
23 views

calling getaccount rpc method on foreign address

calling getaccountaddress method on an address associated with the default account return "" the name of the default account. The problem is calling getaccountaddress on foreign address that doesn't ...
0
votes
1answer
76 views

Add a Watch-only Wallet in Bitcoind

When running bitcoind under OSX/Linux, how can we add a watch-only wallet using the JSON RPC? Do we need the public key or is the bitcoin address sufficient?
3
votes
3answers
71 views

For Application Development is bitcoind RPC the Only Way?

I am looking at building an application using Bitcoins, and being a newbie the only real resources I have found regarding how to interact with the network is to issue RPC commands to the bitcoin-qt ...
1
vote
1answer
64 views

What encoding is “pubkey” from the JSONRPC validateaddress command?

I need to convert a public key into a form suitable for use with BouncyCastle. To do this I open the debugger and write: ListAddressGroupings I then pick an address and write validateaddress ...
1
vote
0answers
106 views

What JSON RPC commands are suitable for a multi-tenant wallet service?

I'm looking at the JSON-RPC commands available in the QT client so I can create a multi-tenant wallet service on top of it. In other words, people would sign up for my site and have the ability to ...
0
votes
2answers
116 views

Setting up remote bitcoin server control PHP

I'm pursuing an idea for a web app I had and I've hit a road block. I've worked with many other JSON APIs using php but I've never been introduced to this RPC side of things. I've done reading but ...
2
votes
0answers
104 views

is it just me or does blockchain.info json-rpc api return invalid json?

example response for getting a block: {"id":"0","result":{"tx":[1ddd2f103625405389705637ab69603de692a22e86f06428a2... there should be a " after the "tx":[
0
votes
0answers
7 views

How can I make repeating transactions over a given interval? (time, blocks, or times replayed?)

I want to make a recurring payment that is enforced by the blockchain and the scripting engine. If I have the following fixed source address, funded with 100 BTC 16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM ...
1
vote
1answer
81 views

How to verify signed bitcoin messages on my own website?

On my website, I want to be able to verify that messages are signed by a certain bitcoin address, similar to how it's done here. From my research it seems I have to use JSON RPC with some sort of ...
1
vote
1answer
240 views

Make remote RPC connection to bitcoind server secure

I set up a bitcoind server on an ubuntu server and I can remotly execute commands on the server. I am doing this with Java/RPC. To execute a command I need to provide username and password. But I ...
1
vote
0answers
55 views

Talking to bitcoind thru web browser returns empty JSON document

I am attempting to access bitcoind's http-json-rpc api thru firefox. I enter the following URL http://user:password@localhost:8332/getinfo and it returns There was an error parsing the JSON ...
0
votes
1answer
60 views

Bitcoin QT Rpc Transaction date format

I am trying to get information about my transactions from my wallet, I use Listtransactions, and get all the information, but the time/blocktime/receivetime - there are all in number i can't decipher ...
1
vote
0answers
49 views

How to retrieve all transactions from bitcoind?

I am working on a project that need to parse all transactions from bitcoind. I have been using bitcoind which the option txindex=1 and pulling transactions using RPC call getRawTransaction. It work, ...
0
votes
1answer
52 views

How can I copy an address (with the private key) using JSON-RPC?

I need to be able to create an address in 2 different Bitcoin-qt instances (actually 2 different PCs). I can create it using "getnewaddress" on the first one but how can I import it to the second one ...
1
vote
1answer
110 views

node-bitcoin express rpc

I can't get the node-bitcoin rpc module running correctly in my express app... Either I get a connection refused error or I get a invalid params -32602 Here's a little code snipped from my app.js ...
0
votes
1answer
58 views

Transactions not showing up in bitcoind log?

I have a bitcoind running on a server behind the www box which I poll every minute for new transactions and save new data into a table. Something strange is happening sometimes. If i send 1 btc from ...
1
vote
0answers
89 views

Bitcoind JSON-RPC - getbalance with 0 confirmations not included

When I access bitcoind through JSON-RPC and query: getbalance '*' 0 It does not include transactions with 0 confirmations. Only when a transaction has least 1 confirmation it is included in ...
0
votes
1answer
85 views

JSON RPC: Fatal error: Uncaught exception 'Exception' with message 'Request error: Array'

I run a small exchange, and we are having a problem with the DIMECOIN wallet. when sending amounts over 1 million coins. we get the following message when error reporting turned on. I can't for the ...
0
votes
0answers
263 views

[function.fopen]: failed to open stream: Connection timed out

I've been trying forever to get my daemon server to accept connections from JSONRPC library running on a different server. I have server A which runs my website and server B which runs my daemons on ...
1
vote
2answers
98 views

getrawtransaction method in details

Referring to https://en.bitcoin.it/wiki/Raw_Transactions, I`m using getrawtrasaction method call to define as much information about incoming payment transaction details as possibe. Is there any ...
1
vote
0answers
29 views

How to explore transaction chain via Original Bitcoin API as blockexplorer does it

Is there any possibility to explore transaction chain via Original Bitcoin API (https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list) as the blockexplorer does it. If not, why?
0
votes
1answer
138 views

Howto scale thousands of bitcoin accounts properly with bitcoind deamon?

It is said in the bitcoin wiki that: The accounts code does not scale up to thousands of accounts with tens of thousands of transactions, because by-account (and by-account-by-time) indices are ...