Questions tagged [json-rpc]

This tag should be used for questions relating to the Bitcoin Core/bitcoind JSON-RPC interface.

Filter by
Sorted by
Tagged with
5
votes
1answer
406 views

Why does calling BlockExplorer's checkaddress JSON API do nothing?

I need some help with using JSON and the bitcoin / blockexplorer json calls. I'm not even sure if this is going to work. Basically I'm trying to validate a bitcoin wallet address. I want it to check ...
5
votes
2answers
785 views

Why are some Bitcoind commands comparatively slow?

For example, running bitcoin-cli getbalance <address> on an arbitrary, watch-only address takes around 6-7 seconds for a response. Is there any way to improve the response time? How do API ...
5
votes
2answers
858 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 single ...
5
votes
1answer
5k views

How to create an new account on a bitcoind server

What is the correct rpc call to start a new account on a bitcoind server?
5
votes
2answers
373 views

RPC call to bitcoin node on local machine respond back with code: 401

I am trying RPC request to bitcoind node,using Kotlin. My code looks like import khttp.delete as httpDelete val node_url = "http://rpcusr:rpcpass@127.0.0.1:18443" val json_resp = khttp.post(url = ...
5
votes
2answers
3k views

64: too-long-mempool-chain

I am using bitcoind json rpc api to send bitcoin to multiple bitcoin addresses. I am using sendrawtransaction. When i have 24 unconfirmed payments sent from my account, i can't send anymore because i ...
5
votes
1answer
2k views

How to run Bitcoinj on Heroku?

Does anyone know where I might find a tutorial on how to deploy a bitcoinj server (essentially a replica of a bitcoind server with an rpc API) on Heroku?
5
votes
1answer
622 views

Bitcoin Core coin control via RPC (CLI)

Bitcoin Core introduced nice Coin Control feature accessible via the GUI client. To my surprise though, I don't see any obvious way how to make use of Coin Control via RPC/bitcoin-cli. How can I pick ...
5
votes
1answer
471 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 ...
5
votes
1answer
267 views

Bitcoind Keypool Best Practices For Web App

I'm creating a web application where many, many transactions will take place in a day. I have the bitcoin daemon running on a VPS and talking to my web app via JSON-RPC. The users on my website will ...
4
votes
2answers
2k views

bitcoin-cli commands like createrawtransaction not working with json on command line

I am trying to create raw transaction using the createrawtransaction api on testnet using the Windows7 command line. I always get an "error parsing JSON": C:\Users\amjad>bitcoin-cli -testnet ...
4
votes
2answers
6k views

Errors Connecting to Bitcoind Server with RPC

I have been trying to connect to a remote bitcoind -daemon running server. I can access it with the curl command explained at the end of the page here (https://en.bitcoin.it/wiki/API_reference_(JSON-...
4
votes
1answer
5k 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
1answer
1k views

How Do HD Wallets Keep Track of all accounts?

If a HD Wallet generates 1,000 accounts for example. How would they keep track of all of the account's balances, if someone for example, paid into the 455th account, they would want to update the ...
4
votes
2answers
2k 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 ...
4
votes
1answer
1k 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 ...
4
votes
1answer
3k views

I built a miner, got a hash block, now what? Where do I send it?

So as an exercise I want to build a mining client, just because I'm curious. I understand that I'm supposed to create a hash, but once I have the hash, where do I send it? How do I submit it back ...
4
votes
1answer
430 views

Is there a way to know the Bitcoin Network transaction fee BEFORE actually submitting the transaction?

I am using the RPC API to submit automated transactions to my Bitcond, the user introduces the Amount and I check it against its balance before submitting the transaction. I would like to also check ...
4
votes
2answers
8k 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" ...
4
votes
1answer
1k 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 ...
4
votes
2answers
16k views

How do I call JSON RPC API using C#?

How do I access the JSON RPC API in C# in such a way that I can also read the errors that the interface provides?
4
votes
1answer
205 views

API calls - “not yet implemented”?

I tried sending some commands to my Bitcoin-QT running on Mac, and when I called "encryptwallet", I got this response: Not Yet Implemented: use GUI to encrypt wallet, not RPC command What API calls ...
4
votes
1answer
1k views

JSON-RPC getwork data field

I recently tried playing around with the getwork command for JSON-RPC and I'm trying to understand what I got out of it. According to the API Call List wiki entry, the "data" field should contain the ...
4
votes
1answer
421 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 ...
4
votes
3answers
243 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 ...
4
votes
1answer
1k views

How to return Bitcoins to sender through Bitcoin API?

I want to get information about the creator of a given transaction through Bitcoin API. More specifically, any or all addresses they sent their Bitcoins from, so I can return some of the money back. ...
4
votes
1answer
769 views

Will calling “walletpassphrase” twice in a short amount of time increase the time the wallet stays unlocked?

The Bitcoin API call for walletpassphrase allows one to open the wallet for a set amount of time. If one calls it again while the wallet is still unlocked, we get an error of 'Error: Wallet is already ...
4
votes
1answer
223 views

Can one send bitcoind transactions that will only be valid after a certain amount of time?

The standard client only allows one to spend coins from a transaction after getting 6 confirmations (120 in case of mining rewards). Can one send bitcoind a JSON-RPC command telling it to send those ...
4
votes
2answers
1k 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 ...
4
votes
1answer
1k views

JSON-RPC signrawtransaction returns false when using private keys

I've been working with BitcoinLib testing various parameters on the signrawtransaction rpc call. It's been mostly successful, however there seems to be a persisting problem when using only private ...
4
votes
1answer
453 views

Which version of the JSON-RPC does Bitcoin use?

Which version of the JSON-RPC protocol does Bitcoin use? 1.0 or 2.0? (This question is asked, but that was almost 3 years ago. link) If try to use version 2.0 all works well curl --data-binary '{"...
4
votes
1answer
3k views

JSON RPC call from webpage to Bitcoin Core

I want to make API calls to my Bitcoin Core wallet from my webpage but when I try to connect it gives me Internal Server Error I'm using easybitcoin.php JSON from Github. I'm trying with this JSON ...
4
votes
3answers
13k 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 ...
4
votes
2answers
415 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 ...
4
votes
2answers
336 views

Merged mining custom bitcoind

What are the core changes to bitcoind that allow one to merge-mine? Are there any new JSON-RPC commands that are enabled, or changes to the existing ones?
4
votes
0answers
131 views

Obtaining historical orphaned blocks (chaintips) without old node

I'm attempting to do some research surrounding orphaned blocks within the Bitcoin network. From my understanding the best and really only way to obtain data for blocks that no longer exist in the main ...
4
votes
2answers
349 views

Which RPC may I use to query bitcoind for raw transactions coming through?

I need to capture and store the raw transactions coming through my local full-node bitcoin instance. I read here that it is possible, but there is no mention of the particular RPC calls. I also see ...
4
votes
1answer
359 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?
3
votes
2answers
5k 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 ...
3
votes
2answers
2k views

How to check if an output has been spent?

Using an rpc client (e.g. bitcoin-cli), for a given transaction and index of an output of it, how can I tell if the output is currently an utxo, or if it has already been spent? In the latter case, I'...
3
votes
2answers
958 views

Is calling the bitcoind RPC multi-thread safe?

My application uses bitcoind RPC with a Python wrapper. I want to write one thread that periodically watches a number of addresses by calling "listtransactions". Other threads might need to call other ...
3
votes
1answer
2k views

How to access any transaction detail in Bitcoin version 0.8 and above?

Since the Standard Client version 0.8 removed the full index of all historical transactions, some Bitcoin applications that relied on that functionality have stopped working. For example, one is no ...
3
votes
1answer
396 views

Which version of the JSON-RPC protocol does Bitcoin use?

I would like to get some clarification on which version of the JSON-RPC protocol does Bitcoin use? 1.0 or 2.0?
3
votes
1answer
1k 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 ...
3
votes
1answer
2k 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 ...
3
votes
1answer
2k 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” ...
3
votes
2answers
2k 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 ...
3
votes
2answers
1k 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 ...
3
votes
2answers
3k 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 ...
3
votes
1answer
160 views

Do bitcoin clients automatically add more fee than specified?

Sometimes when I'm sending a transaction using json-rpc calls to bitcoind, the client adds more than 0.0001 fee. 0.0001 is the TX fee I specified in the settings. My understanding is that when the TX ...

1
2
3 4 5
14