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
0
votes
1answer
35 views

“comment” and “to” of malleated transactions

I'm using the bitcoin core wallet and trying to build some programs around it. I see that comment and to can be added to transactions locally. If I understand it correctly, both are stored in local ...
1
vote
0answers
32 views

“label” field in the transaction list

Looking at this dev reference guide I found a returned field called label. Is this the same label specified to each key when using importmulti?
0
votes
1answer
191 views

building a multisig transaction using RPC

I´m trying to build a multisig transaction using RPC. Till now my code looks similar to this: At first I get the unspend outputs calling listunspend() With those UTXOs I´ll try to create the ...
1
vote
1answer
420 views

Bitcoind estimatesmartfee

I am trying to get transaction fee for sending all btc to another account. I use estimatesmartfee to get tx fee, I have total btc amount of 0.0195btc, so I pass 0.0195, but I get JSON integer out of ...
2
votes
1answer
120 views

Does running a full node make rpc calls faster?

Hello I am running a pruning node on my VPS, and some of the RPC calls such as get balance take minutes to load. I need to check the balance every time the users access the website. I was wondering if ...
1
vote
1answer
200 views

Bitcoind Cannot assign requested address

I'm trying to run a regtest bitcoind node but I'm always receiving the following error connect() to [2a05:d01c:a35:2902:6e18:7290:ff27:e9aa]:18444 failed: Cannot assign requested address (99) ...
1
vote
2answers
188 views

How to sweep a Bitcoin Core wallet?

I have created an account in a bitcoind wallet which has got some 1.055btc which has to be wiped out to 0.00BTC to another account. so the actual BTC has to be sent is 1.055 - transaction fee. Is ...
0
votes
1answer
195 views

Handling change addresses without using rawtransactions?

Since I'm using the wonderful accounts feature which is soon to be deprecated (shame on me, i know - but i simply didn't have resources and time as a single person to do an internal accounting system ...
1
vote
1answer
294 views

Where can I find documentation about interacting with bitcoind's json-rpc?

I have created a coin by forking Bitcoin. Now I want to create web wallet for this, but do not know how to create json-rpc apis to communicate with the daemon server. Is there any proper documentation ...
1
vote
1answer
176 views

Bitcoin RPC: Can I test for standardness?

I want to test if a script or is standard or not. Is it possible with Bitcoin Core's RPC?
0
votes
1answer
84 views

Is it possible to use the RPC's Label feature in it's current state over the deprecated Accounts feature?

I'm doing my bachelor project in web development using Bitcoin RPC. At the moment it uses the deprecated accounts feature, but i'd really like to upgrade to using the newer label feature instead. ...
1
vote
1answer
308 views

Bitcoin cash - Transaction history as JSON

Is there a way/a service to retrieve all bitcoin cash transaction for a bitcoin cash address in JSON format? Like the API of blockchain.info offers for bitcoin core?
1
vote
1answer
319 views

Error connecting to json rpc server

For testing purposes, I need to connect from a web page in my shared hosting account (on the public internet) to my json rpc server which is running on my laptop . So bitcoind is running on my laptop, ...
4
votes
1answer
692 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 ...
2
votes
1answer
371 views

How can I get the raw tx hex from bitcoind with the txid?

Is there any way to get the raw tx hex when I know the txid using bitcoind not third party. Currently I'm using a thirdparty (blockcypher) but now I want to switch to bitcoind.
1
vote
1answer
264 views

How do I get my private key?

Background I saw this on the internet I didn't think signing / verifying was possible with P2SH addresses, so I guess this wallet must be using something like signmessagewithprivkey ¯\_(ツ)_/¯ ...
2
votes
1answer
439 views

How to generate a P2WSH address

getnewaddress "" bech32 generates a P2WPKH address (e.g. tb1qw508d6qejxtdg4y5r3zarvary0c5xw7kxpjzsx). How can I generate a P2WSH address (e.g. ...
0
votes
1answer
53 views

How can I detect which network I'm connected to?

I'm in a unit test and I would like to use different test addresses depending on which network I'm connected to, to keep test output limited to the network I'm actually connected to. I know I can run ...
0
votes
2answers
3k views

bitcoin-cli could not locate RPC credentials

I'm running a bitcoind 0.16 and it seem working, blockchain in sync etc.. I've used the "new" rpcauth, which is non deprecated so kind of referennce as explained here: https://github.com/bitcoin/...
1
vote
0answers
160 views

Bitcoin-cli using getblock to retrieve historical data

I have recently set up a bitcoin node using bitcoind and want to perform some historical queries on the blockchain using getblock with verbosity set to 2. I am using the default bitcoin.conf file but ...
1
vote
0answers
256 views

Bitcoin rpc-json for web javascript

So is there any js file that you can use to connect a json-rpc server on a client side website? I seem to find one for PHP but not JavaScript or there isn't one?
0
votes
1answer
71 views

Less circuitous way to get network fee in raw transaction

I have my code working correctly now to create and send a transaction with the correct network fee. Here is my pseudo-code using the json rpc: Estimate network fee using estimatesmartfee "ECONOMICAL" ...
0
votes
1answer
146 views

How to get lost passphrase?

I set up the bitcoin daemon and galaxycash daemon on my server. And i was using this library easybitcoin.php to contact the daemon via rpc . Somehow i remeber that i used this function ...
2
votes
3answers
1k views

get the real last block

I have this code: from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException import logging rpc_user='-------' #User name is hidden rpc_password='-------' #Password hidden logging....
1
vote
2answers
346 views

Query publicly available full nodes

I don't want to run a full node yet, but I want to build an application. How and what do I use to query publicly available nodes? What nodes besides blockchain.info are publicly available for me to ...
0
votes
1answer
269 views

Sending RPC calls asynchronously

I have ubuntu server running Bitcoin core v0.16. I'm sending RPC calls asynchronously using Guzzle (PHP library), but, e.g., if I'm importing 1000 address using importmulti command, any further ...
0
votes
3answers
272 views

Is there a rpc/cli method for payment protocol in bitcoin-core?

I have a full node running bitcoin-core 0.16 bitcoind (not bitcoin-qt). Today I tried and failed to pay a bitpay "secure" payment protocol uri invoice via the cli. The uri was in the form bitcoin:?r=...
0
votes
1answer
162 views

Bitcoin & Bitcoin-cash in Ubuntu same server : Use same Block Data for both

Configured Bitcoin server/rpc working good in Digital Ocean Ubuntu VPS. I also want to set Bitcoin-Cash server parallel in same server. So do I require to download all blocks of bitcoin-cash node? ...
1
vote
1answer
253 views

Listen on multiple RPC ports

Running Ubuntu 17.10 server bitcoin.conf contains a setting: rpcport=<port> Is there any way to cause bitcoind (0.16) to listen on multiple RPC ports at the same time? example: rpcport=1234,...
2
votes
1answer
482 views

Does Bitcoin RPC API have a realtime websocket?

I am trying to create some app based on RPC API call from bitcoin core. I want to make my btc core daemon send a notification whenever a new transaction is observed. Does BTC core RPC API have a ...
1
vote
2answers
792 views

PHP functions not working in bitcoin JSON-RPC version 16 (bitcoin-cli is working properly)

Trying to implement Bitcoin JSON-RPC using Digital Ocean Ubuntu using bitcoin version 16. Here is my php code <?php require_once('easybitcoin.php'); $bitcoin = new Bitcoin('someusername', '...
0
votes
1answer
216 views

bitcoinrpc error

I was happily using bitcoinrpc until I moved to python3 (python3.6.4 at the moment) and it stops working. Now I'm trying to use this one: https://github.com/XertroV/bitcoin-python3 After completing ...
0
votes
1answer
144 views

getrawtransaction asm returns with [ALL], should it be?

.\bitcoin-cli.exe getrawtransaction af66f73a42d33a446e52f1c8e82a99fcd9d788a0ec5c70de6f633 213a7546cdb true "scriptSig": {"asm": "30460221009c8...acc0a2a [ALL] the same transaction on blockchain ...
1
vote
0answers
201 views

Does listsinceblock list all transactions, or only transactions my wallet is interested in?

Wondering if I call listsinceblock "", will I get all transactions that ever occurred on the blockchain regardless of whether my wallet was party to it, or will it only be a list of transactions ...
0
votes
1answer
122 views

Using the output of listtransactions how can I calculate the balance of certain addresses?

I have a JSON array of the transactions from the listtransactions call. How do I calculate the balance of addresses? My plan. Add up the amounts from all transactions of the receive category for a ...
0
votes
1answer
338 views

Error connecting to RPC server

Ok, so my bitcoin node (0.15.1) is running, and fully synced up with the network. I'm using python and the 'bitcoinrpc' package. I want to access the RPC server from outside my network. I have RPC set ...
1
vote
1answer
116 views

Building the merkle root from transactions in a template block

I want to compute the merkle root for transactions in a given template block - bitcoind:getblocktemplate(). I understand the merkle root is a hash of all the transactions in a block from the last ...
1
vote
1answer
129 views

Calculate Any Address Balance Using Bitcoinn RPC getrawtransaction

I'm trying to use getrawtransaction to get transaction details (for any address) from my local blockchain. What I have is an address in readable format, "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa" but the ...
0
votes
1answer
476 views

Import all existing addresses in local bitcoind

I started local bitcoind client. And started it as RPC server. I know that i able to get balance only for my account address. But how i can work with all existing addresses? How i can get balances and ...
3
votes
1answer
1k views

Bitcoin RPC ECONNREFUSED

Trying to RPC my local active Bitcoin Full Node, but getting ECONNREFUSED on client.getBalance. Am I missing additional configuration? Is there a better RPC wrapper to use? Any advice or working ...
1
vote
1answer
76 views

How can I pass Multiple addresses in Move command

I have to pass multiple addresses in move command but I am not able to pass as it is not accepting more than one wallet address Is there is any another way to move the balance to multiple addresses.
0
votes
1answer
309 views

Can I, and how do I query the Bitcoin Core wallet to give me a list of all transactions for any specified address?

I've read some conflicting things on this. Given any address, what would be the json command and or how would I import into python, such a query to my bitcoin core wallet for an array of all the tx ...
1
vote
1answer
250 views

What bad things could happens if Bitcoind RPC is public?

It is always suggested to enforce authentication on Bitcoind RPC. However, in case the RPC authentication get compromised (or if it is public), what kind of bad things could happens? First I could ...
0
votes
2answers
324 views

What is the simplest python program that would query the bitcoin core client for a raw tx?

I put this one together that claims "no JSON object could be decoded". from bitcoinrpc.authproxy import AuthServiceProxy access = AuthServiceProxy("http://user:password@127.0.0.1:8332") ...
0
votes
1answer
114 views

jsonrpc-lean VS. cURL?

I wanna try and develop a small miner where anyone could see the backbone of it, so that everyone would know how everything works. Now I wanna ask whether what to use should I use for communicating ...
1
vote
1answer
218 views

bitcoin.conf does nothing for RPC calls

My problem i that I'm trying to communicate my python code with bitcoin-cli (Bitcoin ABC) and I'm suppose to set rpcuser, and rpcpassword on bitcoin.conf file on .bitcoin folder. Right? Well, when I ...
0
votes
1answer
24 views

How to look about transtion is complated?

I'm trying to build my own blockexplorer, and to this i need to update a single transtion with confrims, my problems is i can't see how meny confrims there shut be and when my transtion is 100% ...
1
vote
1answer
469 views

Can I connect to Litecoin, Dash, BitcoinCash, Doge, etc. RPC with Bitcoin RPC client?

I want to set up a few nodes for different Bitcoin-derived cryptocurrencies and regularly query them for data via the JSON-RPC API. The thing is: I can't find much information on any other RPC API ...
0
votes
3answers
1k views

Can sendtoaddress use account other than “”?

sendtoaddress is using the "" account by default. Is it possible to make it use any other account name?
1
vote
0answers
175 views

sendtoaddress not deducting from account

I have two accounts called "hot" and "cold" and have few address and transactions in each of them. I am trying to move some funds between "hot" to "cold" and using sendtoaddress like this bitcoin-...