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
528 views

bitcoind is refusing to connect to my other server [closed]

bitcoind is refusing to connect to my other server
1
vote
2answers
1k views

How do you change rpc password?

I'm trying to run bitcoind with a changed conf file, but for some reason the password it thinks is incorrect. Is there a way I can change the rpc username and password?
3
votes
2answers
1k views

getaddressesbyaccount RPC alternative?

I'm using Bitcoin Core v0.15.1. when I use getaddressesbyaccount in the debug console I can see the "account" is DEPRECATED. in fact all methods that uses "account" mark this parameter as DEPRECATED. ...
1
vote
1answer
412 views

sendFrom with fee inclusive

I am using Bitcoin JSON RPC 14 version so how can I use sendFrom command in the case of fee inclusive.
1
vote
0answers
98 views

What is QuoteAssetVolume and BaseAssetVolume?

This is a JSON result for a candle returned by an exchange API for ETHBTC: { openTime: 1517340600000, open: '0.10635000', high: '0.10742000', low: '0.10635000', close: '0.10687200', volume: ...
1
vote
2answers
149 views

Are there RPC calls for correct RBF calculations in Bitcoin Core?

Imagine I have a "stuck" transaction using Bitcoin Core (with correct BIP125 signalling), and I want to "unstuck" it using RBF. Is there some RPC call for the correct fee calculation? Meaning, is ...
1
vote
1answer
133 views

Sending RPC-JSON Commands to Bitcoin Peers

Is it possible to send some commands to Bitcoin Peers? for example decoderawtransaction command?
0
votes
1answer
319 views

LND describegraph and getnetworkinfo RPC response

The LND API documentation is here, but doesn't contain much information about what the responses to various calls mean. Can anyone explain what these responses are describing? describegraph['edges'] ...
1
vote
1answer
336 views

Checking for confirmations using getrawtransaction and decoderawtransaction

I am trying to check if a transaction is confirmed or not via RPC commands. At first I tried to use gettransaction, but it doesn't work. Then I use getrawtransaction and decode it: { "lock_time":...
1
vote
0answers
263 views

getpeerinfo peer port number

Working on regtest (Bitcoin Core 0.15.1) I've realized that some peers are identified just by ip instead of by ip:port when querying bitcoin-cli getpeerinfo. I've noticed that when it happens the ...
1
vote
1answer
3k views

rpc json outside localhost

I tried to to host bitcoin core json-rpc to listen other than localhost but it would not work even i set it to listen to ip 0.0.0.0 My config (for bitcoin.conf) testnet=1 server=1 daemon=1 listen=1 ...
0
votes
1answer
704 views

createrawtransaction and fundrawtransaction

I use createrawtransaction for create a rawtransaction with [] "zero inputs" and one output. I use fundrawtransaction for populate rawtrasaction with inputs. {"method":"createrawtransaction","params"...
1
vote
1answer
444 views

How do I determine whether an input or output is segwit?

I'm trying to go through the transactions in a block and determine how many segwit inputs or outputs there are. I've noticed in getrawtransaction that segwit inputs seem to have a 'txinwitness' field....
0
votes
1answer
138 views

Does moving funds from one account to another locally require a transaction fee?

I am developing a simple wallet with PHP. Right now I don't have the ability to "move" any funds around to test with. I am wondering does the "move" command require a transaction fee?
1
vote
0answers
49 views

Confusing about received transaction?

I have two addresses in my wallet and sent some coins to one and set change to the other, both addresses are wallet generated addresses(not watchonly ones), but the transaction returned from RPC shows ...
1
vote
0answers
74 views

Polling for transactions — possible scalability issues?

We are generating a few thousand addresses by an offline wallet, and plan to run a bitcoind node to check for incoming transfers. The idea is to check an address e.g. every second and get the list of ...
1
vote
1answer
203 views

Can anyone explain this pseudocode to find a returning address?

I was reading a popular answer which explains how to find the address of the person who sent a transaction and the pseudocode in that answer does not make much sense to me. txid = <relevant ...
2
votes
1answer
90 views

Where can I read more about the fields of the transaction returned by listtransactions API

I am looking at the results returned by listtransactions API and I do not understand the difference between blocktime, time and timereceived. Help tells me the following: "blocktime": xxx, (...
2
votes
1answer
328 views

Json-rpc fails with “No connection could be made because the target machine actively refused it”

Playing around with litecoin json-rpc running on windows (the API is the same as bitcoin, so I am using bitcoin's references). My litecoin.conf has the following data: rpcuser=user rpcpassword=pass ...
1
vote
1answer
893 views

JAVA JSON-RPC for Litecoin

I am looking for Java Json-Rpc for Litecoin or any implementation for Litecoin
2
votes
1answer
188 views

Why is there an output with op-return in regtest mode?

Here is an output from getrawtransaction: { "txid": "a2b9e3aa4adeb68a9b8b8b0bbc8d4890585cd711e89cda83e7f236397fac6218", "hash": "6d96c04d49eefe3eab4934188841ef3592c818bf789517b90b1f71ff75a14c26",...
0
votes
1answer
99 views

getrawmempool verbose returns ambiguous results

bitcoind v0.15.1 getrawmempool rpc in verbose mode returns size and vsize for a transaction: vsize: size for fees post-segwit (ceil(weight/4)) size: disksize But getrawmempool rcp also returns ...
5
votes
2answers
714 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 ...
1
vote
1answer
1k views

Unable to make Bitcoind commands

I am attempting to make Bitcoin-RPC commands in the Windows 10 terminal using Bitcoind from the Bitcoin Core. However, whenever I start C:\Program Files\Bitcoin\daemon>bitcoind the terminal hangs ...
1
vote
1answer
649 views

Integrate Bitcoin node RPC with website API

I am currently using block.io however with their "low" tag fee transactions are still $2+ and they do not offer a way to set custom withdraw fees in their API. I'm not too sure what my options are ...
0
votes
1answer
229 views

Unexpected result after calling RPC 'listaccounts', 'getaccountaddress', 'getreceivedbyaddress' sequentially

bitcoin > bitcoin-cli listaccounts { "": 5648.99996160 } bitcoin > bitcoin-cli getaccountaddress "" mui4xgNgZBr3XhdL4dDDHkRFEvSXZmSi7t bitcoin > bitcoin-cli getreceivedbyaddress ...
2
votes
1answer
1k views

Can't connect to Bitcoind remotely

I am running a Bitcoin Cash node on my server, and starting it like this: start bitcoind.exe --server=1 --rpcuser=user --rpcpassword=password --rest=1 --rpcport=8332 --datadir=F:\Bitcoin --bind=10.1....
0
votes
1answer
617 views

Error unlocking bitcoin core wallet with JSON RPC

I can't get bitcoin core wallet to accept my wallet passphrase so I can get my private key out. The password is correct, as I have tried it to send out and it accepts it, but when I try on the debug ...
2
votes
1answer
62 views

Is it possible to get CPFP information from full node, without requesting full mempool dump?

I want to get CPFP information out of full node - that is, ancestorsize and ancestorfees - in order to calculate the necessary fee for either CPFP, or RBF if possible. Can I get this information ...
1
vote
1answer
391 views

RPC FundRawTransaction: FeeRate

I want to pass feerate argument to Bitcoin Unlimited while using fundrawtransaction. I tried fundrawtransaction ["020000000001e80300000000000017a914f65d061c8966ae9d0d6add32879a492d99bce5848700000000"...
2
votes
0answers
399 views

Bitcoin RPC: How to find the transaction that spends a TXO?

I suspect there is no good way to do it. However is there any sub-optimal way to find the transaction that spends a transaction output (knowing the txid and index) with Bitcoin RPC? Assuming txindex=1 ...
1
vote
1answer
1k views

During transaction getting 'Insufficient funds' message from Bitcoin core

I am trying to make sendbtc transaction using bitcoin rpc call but getting failed message "Insufficient Funds" from bitcoin core. In addition, once I am trying to make transaction for small amount ...
0
votes
0answers
611 views

Bitcoind start at reboot but RPC calls wont work

I have a pine64 (aarch64) I have set a pruned node. My user name is pine, when I start the node using bitcoind -daemon I can use bitcoin-cli without problem and the RPC calls are OK. I want to set ...
2
votes
1answer
331 views

How to obtain inputs and outputs of a bitcoin block more quickly, using JSON RPC or similar

Currently, it takes me almost 1.5 hours to obtain all inputs and outputs of a bitcoin block from January using JSON RPC. At this pace, it will take a significant amount of time to go all the way back ...
1
vote
1answer
137 views

How to modify dynamically the fee of a transaction?

I want to modify dynamically the fee for each transaction made by the users who use my website. I calculate the fees dynamically but I don't know how can I apply that custom fee for each user. I am ...
3
votes
2answers
1k views

SegWit, Bitcoin JSON-RPC and (strange?) addresses

I'm trying to analyse this transaction: https://blockchain.info/tx/a388d6f88373aacf2a5c170eeff4adf51f2c6744da26375d5890f42d653a2e6c I used to be able to just run bitcoin-cli getrawtransaction txid 1 ...
2
votes
1answer
563 views

How to get total number of transactions from bitcoin core wallet using rpc

I'm trying to implement paginations using : https://chainquery.com/bitcoin-api/listtransactions I want to have reverse listing (oldest first), so I need to get total number of transaction returned ...
2
votes
1answer
2k views

How to get all income transactions of an address?

I want to get list of all address's income transactions since the genesis block import requests, json rpcPort = 8332 rpcUser = '[removed]' rpcPassword = '[removed]' #Accessing the RPC local server ...
2
votes
0answers
166 views

Can I balance load between two instances of bitcoin daemon by switching RPC request?

The question is pretty simple. I have two instances of bitcoin daemon. When I'm running my pool with parallel RPC requests to each instance it calls daemons too often and daemons queue of RPC calls ...
2
votes
1answer
2k views

Determine address balance using bitcoin core

I'm having a hard time figuring out how to compute the balance of a given bitcoin address using only the standard RPC API. I would like to extend this logic to bitcoin clones as well so the solution ...
5
votes
2answers
2k 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 ...
0
votes
1answer
310 views

Set fee in Electrum RPC

I'd like to pay people using the following command: curl --data-binary '{"id":"curltext","method":"payto","params":{"destination":"mwLmd5xMnKkf4bBUa6MDrg4HYQaazoHtkj", "amount":"0.001"}}' But I don'...
1
vote
1answer
442 views

Connect to Bitcoin Node behind tor network

I configured my full bitcoin node behind tor (nowadays there aren't much bitcoin nodes behind tor network, this website: https://bitnodes.21.co/nodes/?q=Tor%20network tell us that there are just 323 ...
1
vote
1answer
514 views

What is a workaround to fundrawtransaction for watchonly addresses

I have imported watchonly addresses in Bitcoin and trying to createrawtransaction with input watchonly listunspend which has spendable=false, scriptSig=empty. after that, I'm getting an error on ...
0
votes
2answers
800 views

Send bitcoin raw transaction to network via webserver?

What is the best way to send a raw transaction via a webserver, what role does a RPC play in this? Is a bitcoin-RPC used to send/transmit a raw transaction to the bitcoin network? Can the process of ...
2
votes
1answer
303 views

Alternative to the move command?

As you know, account commands are deprecated in the future. In the same wallet, how do we carry other address bitcoins in one address ?
0
votes
1answer
352 views

After creation, what I have to do with a coinbase transaction?

I have create a coinbase transaction successfully with the command: createrawtransaction '[{"txid":"0000000000000000000000000000000000000000000000000000000000000000","vout":0}]' '{"...
0
votes
1answer
4k views

Unable to create raw transaction with json-rpc command

I am trying create a coinbase transaction with the command: {"jsonrpc": "1.0", "id":"jsonrpc", "method":"createrawtransaction", "params":[{"txid":"...
0
votes
1answer
57 views

Bitcoin Server accounts

I run Bitcoind and when I type account lists I get 4 accounts. Why? How do I know which account is associated with bitcoin-qt? Also I never had any coins and using "move" command I moved 0.1 bitcoin ...
2
votes
1answer
477 views

How to connect to bitcoind from ruby rpc client?

I have started bitcoind. It is working fine but how can I connect to it from rails on localhost?