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
2
votes
1answer
1k views

bitcoind sendfrom with minconf=0

Is it possible using bitcoind JSON-RPC API to receive funds from someone and send it immediately to another third-party address? I do not want to wait for 1 confirmation. getbalance with minconf=0 ...
0
votes
1answer
78 views

json-rpc of bitcoin not working for testnet(curl command)

I am trying this command to get transaction from bitcoin testnet: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "gettransaction", "params": ["txId"] }' -H 'content-type: text/...
0
votes
1answer
1k views

json_rpc_call solo mining with bitcoin running on Windows 7 for antminer

I setup BitcoinD on a Windows 7 PC. I configured for defaults except user/pw and rpcallowip=192.168.1.0/255.255.255.0. have also tried 192.168.1.* with no luck. I ultimately want to use an Antminer ...
0
votes
2answers
109 views

How do I configure a port in my .conf file?

This is what my conf file looks like: prune=600 maxconnections=12 maxuploadtarget=20 rpcuser=user rpcpassword=password keypool=10000 server=1 [main] rpcport=5040 Whenever I run this from the ...
0
votes
0answers
15 views

why is getdescriptorinfo returning a “function needed” error with a sortedmulti descriptor?

When trying: bitcoin-cli getdescriptorinfo "wsh(sortedmulti(2,tpubDFck48zH8ZzteKKZCR9WMVBJwHZayhQmtCDyDRzHsU7VMTwEXohD23h1CBiizKtFtWck2fVegNDRM193nGx3VLs1RTSGNc1iePKpc1JvsS6/*,...
0
votes
1answer
35 views

`bitcoind` RPC: ask if syncing headers or blocks

Is there a way to know from bitcoind RPC if it's syncing headers or blocks? And is there a way to know the header sync progress? Even if not directly available, is it possible to derive header sync ...
0
votes
0answers
28 views

btc qt walletdump

I'd like to dump my entire btc qt wallet, while syncing, into an electrum wallet. I don't want to do it receiving address by receiving address. I already emptied out all my receiving addresses but ...
6
votes
2answers
1k views

How to check if node is on TestNet or MainNet via `bitcoin-cli`?

Is there a way, by using bitcoin-cli using RPC querying, if the node I'm querying is running on MainNet or TestNet? Thanks
0
votes
0answers
47 views

Cannot open dump wallet file (code-8)

Is anybody familiar with this problem using btc qt debug console? Would like to dump wallet and sweep into electrum.
0
votes
1answer
71 views

How to split the funds and send X% to fee wallet and the remaining funds to another wallet?

Anybody have any idea about how to do it? User send the bitcoins X% goes to fee wallet remaining funds goes to service wallet I'm trying to use the "sendfrom" but it's not working because he only ...
0
votes
1answer
960 views

How to get a complete list of transactions?

listtransactions - 9 provides the latest transactions and actually all =) How to get all transactions?
2
votes
1answer
297 views

How to edit the label of an existing address exactly like in bitcoin-qt but instead using RPC calls?

I am trying to edit the label of a bitcoin address in my wallet outside of bitcoin-qt. Currently I only know of 'setaccount' but it results in two addresses after editing one, it assigns a new address ...
0
votes
2answers
124 views

how to split transactions based on send and receive Json rpc bitcoin

I am creating new wallet for bitcoin and want to know how we can get the separate list of send and receive transactions using JSON rpc. I cant see any method for json rpc that give list of send and ...
0
votes
1answer
35 views

In the basic Wallet based in QT, How can i get by RPC the stored addresses and labels?

this question is for you to ask about the QT wallet, in the section to send coins, there is an address window, and it has the list of the stored addresses we save along the time. So using RPC, do you ...
0
votes
1answer
127 views

Web wallet making direct RPC calls to bitcoin node

Is it good idea to make direct RPC call's to node computer to generate web wallet addresses here is what i am trying to implement i want to create new web wallet based on bitcoin and want to allow ...
1
vote
1answer
453 views

RPC Command to send from multiple accounts to one account (default - “”) in same wallet

I have small amounts in multiple accounts in the same wallet. I want to send all of them to default account (usually named as ""). Is their any RPC command available for this scenario? Thanks in ...
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....
2
votes
1answer
597 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 ...
0
votes
1answer
159 views

Can't connect to Bitcoin RPC on DigitalOcean server

I am running bitcoind on a DigitalOcean droplet with public IP address e.g. 1.1.1.1. I would like to connect to it via RPC from another DigitalOcean droplet with public IP address e.g. 2.2.2.2. Both ...
0
votes
1answer
372 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'] ...
0
votes
1answer
122 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 ...
0
votes
1answer
59 views

Stratum protocol - problem with mining.submit method

code was written according to documentation. I have following lines for submit method submit() { // ["<worker.name>", "<jobID>", "<ExtraNonce2>", "<ntime>", "<nonce>...
0
votes
2answers
151 views

How to use “lockunspent” in bitcoin core wallet console?

Try to use the Lockunspend RPC in bitcoin core wallet console. But always get wrong, and google it can't find answer. My input is: lockunspent false "[{"txid":"...
1
vote
1answer
226 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
1answer
327 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
3answers
53 views

What are some good solutions for analyzing Bitcoin script patterns?

I'm interested in analyzing the Bitcoin blockchain for occurrences of particular scripts and spending patterns. What are some good solutions for this? An ideal solution would let me filter ...
0
votes
1answer
226 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 ...
1
vote
1answer
33 views

blockstream API response

How do I determine if the current transaction is an outgoing or an incoming transaction from looking at the following API response? https://blockstream.info/api/address/...
2
votes
1answer
37 views

How to prevent specific method calls to bitcoin node

I have setup a bitcoin node and can access RPC methods via curl or bitcoin-cli. Now I don't want to share the node with multiple parties and in such case, I want to restict some functions from being ...
4
votes
1answer
333 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 ...
0
votes
2answers
368 views

jsonRPCClient Error with php variables

I am trying to run the following code $betamount=$_POST['bet']; $litecoin->move($myusername,Admin,$betamount); but it will not work. it does however work when i replace $betamount with an ...
0
votes
1answer
32 views

How can I get whole info about tranasaction whose outputs are spent?

I use RPC method getrawtransaction to get whole info about transaction. But if I rigth understood It works only for transaction whose contains at least one unspent output. How can I get whole info ...
1
vote
1answer
92 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.
1
vote
1answer
5k views

json_rpc_call failed

I have a little problem with the launch of the software: https://bitcointalk.org/index.php?topic=55038.0 My blockchain is fully loaded and JSON-RPC also works, since I use it in a PHP script whose ...
2
votes
1answer
1k views

bitcoin-cli very slow to respond to RPC calls (Raspberry Pi)

Running Bitcoin 0.11 on Raspberry Pi 2 (Quad core 900MHz 1GB RAM, 128GB Flash Drive for blockchain, 8GB SD Card for OS and software). Blockchain is fully synced, 13 connections. In htop, I see I'm ...
1
vote
2answers
232 views

trying to get text of a field in json rpc 2.0 response into ar PHP variable

I use json_decode to vardump a return which yields array(3) { ["jsonrpc"]=> string(3) "2.0" ["result"]=> array(13) { ["status"]=> string(7) "Pending" ["amount (BTC)"]=> string(10) "0.05130899" ["...
1
vote
1answer
43 views

Why can't a user import keys to the keypool for a blank wallet?

I am creating a blank wallet with the intention of adding keys to the keypool but get an error keys can only be imported to the keypool when private keys are disabled Why? It would be beneficial for ...
1
vote
0answers
17 views

RPCConvertValues() call error

I'd like to call RPC programmatically, instead of using bitcoin-cli. when I call the function RPCConvertValues(), it always raise error RPCConvertValues() is defined here : https://github.com/...
0
votes
1answer
445 views

Please help - Bitcoin Conf file in the wrong directory

I am running a full node using Bitcoin Core GUI on Windows 10. The conf file is in my bitcoin data directory, instead of being in the appdata/roaming folder. But Bitcoin-qt points to it by default and ...
1
vote
1answer
36 views

How to implement getrawmempool?

I’m trying to get all transaction ids in the memory pool as json array. I just finish downloading bitcoin core and do now know where to begin. Any help would be appreciated!!
2
votes
1answer
16 views

Non indexing bitcoin and output lookup

Using bitcoin's RPC and txindex=0 is it possible to tell the difference between an existing output being already spent and a non existing transaction output (or transaction id)? Looking at gettxout it'...
3
votes
3answers
3k views

jsonRPCClient.php states its served a 401 error response

When I execute my php file from the command line I get this: <pre> PHP Warning: fopen(http://...@127.0.0.1:8332/): failed to open stream: HTTP request failed! HTTP/1.0 401 Authorization ...
1
vote
1answer
34 views

Knowing if a public address is spendable by an HD seed?

I want to know if an address is spendable by an HD seed and for that purpose I am using the following command: > bitcoin-cli getaddressinfo 3LFc64RRd96ejjYvm14KaogBF9fmeNmePW | jq '.solvable' ...
1
vote
0answers
40 views

Manipulation of Bitcoin RPC with programmatically

I'd like to use Bitcoin source code(only RPC part) to manipulate with programmatically. I have bitcoind and bitcoin-cli installed in my local computer but I don't know how to write code for my ...
0
votes
2answers
36 views

Unexpected behaviour Bitcoin RPC getbalance

I am seeing a smaller amount of BTC when I run ./bitcoin-cli getbalance compared to ./bitcoin-cli getbalance "" Here is the documentation on GetBalance from the BTC wiki, which highlights why I am ...
0
votes
2answers
24 views

bitcoind jsonrpc bumpfee not returning hash of newly created transaction

I'm trying to implement replace by fee functionality with bictoind (v18) and bumpfee rpc call described here It works by mean that new transaction is created with higher fee, but result should be: { ...
1
vote
2answers
737 views

How to use electrum RPC to get address balance on windows

$ ./electrum-3.2.3.exe --testnet setconfig rpcport 7777 true $ ./electrum-3.2.3.exe --testnet setconfig rpcuser blah true $ ./electrum-3.2.3.exe --testnet setconfig rpcpassword blah true $ ./electrum-...
1
vote
1answer
45 views

How to connect LND to bitcoind RPC with authentication cookie stored in a custom folder?

I configured bitcoind RPC to authenticate clients with an authentication cookie. However I cant figure out if it's possible to use this method with lnd while connecting to bitcoind RPC. I would like ...
0
votes
0answers
23 views

UnhandledPromiseRejectionWarning: RpcError: Requested wallet does not exist or is not loaded

I run bitcoind default wallet path.but ı request getballance from nodejs api return; UnhandledPromiseRejectionWarning: RpcError: Requested wallet does not exist or is not loaded I use ...
1
vote
1answer
18 views

getbalance says 0 for incoming TX even though 0-conf is allowed

> $bitcoin_rpc.getnewaddress("myaddress", "bech32") => "bc1q9kvfyjxtk9tvkzgpkf4x8zs42sddwlyanz3z6z" > $bitcoin_rpc.getbalance => 0.0 > $bitcoin_rpc.getbalance("*", 0) => 0.0 &...