Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bitcoin-cli]

The tag has no usage guidance.

0
votes
2answers
25 views

bitcoin-cli JSON-serialized error output

Is there a way to make bitcoin-cli output JSON-serialized errors? For example if I do bitcoin-cli getblock foo the output is error code: -5 error message: Block not found I want the output to be ...
2
votes
1answer
38 views

Error parsing JSON in bitcoin-cli signrawtransactionwithkey

I have issues trying to sign a 2/3 multisig tx with the first private key. What am I doing something wrong or am I missing something for the arg? Command format: /usr/bin/bitcoin-cli -testnet ...
0
votes
2answers
39 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 ...
1
vote
1answer
23 views

Specified data directory does not exist - but it does…

anyone ever had a similar issue where the directory exists but bitcoin-cli isn't recognizing it? Perhaps this is related to me setting the folder up as a symlink to my external HDD? Thank you! ...
0
votes
1answer
27 views

Cant start bitcoind - “Block files have previously been pruned”

I installed bitcoin, following this instructions. I mostly used it with bitcoin-qt -testnet options, even made a few transactions in testnet. I am using the pruned mode. Now I want to run the ...
0
votes
1answer
18 views

Bitcoin-cli how to createrawtransaction without spending entire input?

Is there any possible way to create a raw transaction using Bitcoin-cli createrawtransaction API that doesn't require spending the entire input? What I'm doing now is consuming that entire input ...
1
vote
1answer
54 views

Bitcoin-cli createrawtransaction with 3 outputs example

Is this possible to do? I am trying to create a transaction with 1 input that will have 3 outputs. I tried: bitcoin-cli createrawtransaction "[{\"txid\":\"...
0
votes
1answer
35 views

Bitcoin-cli getbalance returning negative value

I am running: bitcoin-cli getbalance username 1 It is returning -37.01 How is it possible for an account to be negative? Is this a bug or do I need to add stricter security when performing a send to ...
1
vote
2answers
84 views

Bitcoin sendfrom and sendtoaddress

I am using bitcoin daemon in my system to get and pass btc to users. So now I want to pass some btc to another users but I can not understand what is the difference between sendfrom and sendtoaddress. ...
1
vote
0answers
17 views

Label Sent Bitcoin Transaction [duplicate]

Is it possible to add a label to a sent bitcoin transaction using the bitcoin-cli?
1
vote
1answer
33 views

Get real fee per transaction

I am trying to get real fee per trasnaction. So I have an account whit balance 0.06940000 and have a second account with balance 0.00000000. To get current fee I have run the command bitcoin-cli ...
1
vote
1answer
52 views

Estimate smart fee returns an error

I am trying to get current fee for per transaction. So running command bitcoin-cli estimatesmartfee 6 i am getting response lookl ike this { "errors": [ "Insufficient data or no feerate found"...
1
vote
1answer
32 views

Can not indentify accounts

I am trying to get balance of accounts and when running bitcoin-cli listaccounts I am getting the data look like this { "":0.81234545 } I wanted to know what is the "" and 0.81234545 and where my ...
1
vote
0answers
16 views

Paying to one address using inputs from multiple addresses under same seed

I am using bitcoin core and I was wondering. If I make a bitcoin payment using bitcoin-cli which has about 50 addresses registered to it. If the payment is for 1 BTC and I pay from the address A1 (let'...
1
vote
1answer
65 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 ...
1
vote
0answers
21 views

Is there a “print to file” parameter or its equivalent for bitcoin-cli; so that results from the daemon are recorded

Is there any way to "print to file" the queried results of the bitcoin-cli. This would be most helpful in my basic cross platform integration of a program I am making with QB64.
0
votes
1answer
88 views

Manage multiple users wallets for web wallet service

This already summaries the issue I'm currently trying to figure out to calculate the transaction fee to prevent negative balance. (testnet) I tried using createrawtransaction answered. When I tried ...
0
votes
1answer
56 views

Confirm transaction in regtest mode

I'm testing some wallet features on regtest. Here's the sequence so far: cash-cli -regtest generate 101 cash-cli -regtest getbalance 500.00000000 cash-cli -regtest getnewaddress newAddress1 ...
1
vote
2answers
122 views

running live and test node simultaneously

it took me 4 days to fully synchronize my node, but its finally running and i can create wallets etc.. I wanted to experiment with some transactions on testnet, so need to either change my config or ...
0
votes
1answer
127 views

how to enable wallet in a confirmed node

I installed/compiled my Bitcoin Core RPC client version v0.16.2.0 and i used --disable-wallet flag. I think this is the reason I am seeing "Method not found" errors when trying to GetNewAddress how ...
0
votes
1answer
77 views

bitcoin-cli not stopping bitcoind

I tried stopping bitcoind using bitcoin-cli stop and got the following error. bitcoin-cli stop error: Could not locate RPC credentials. No authentication cookie could be found, and RPC password is ...
1
vote
1answer
89 views

“mandatory-script-verify-flag-failed (signature must be zero for failed check(multi)sig operation)”

I forked the openwallet-android so that I could add my coin - (placeholders) placeh.io. The openwallet-android connects to electrumx server. I am able to get my chain to load correctly in electrumx ...
0
votes
1answer
22 views

Can I see which bitcoin node sent cli command

If I am running a bitcoin node, and for example I run a sendtoaddress cli command, is it easy for anybody to see what IP that command came from initially
1
vote
1answer
84 views

Can't connect to rpc.blockchain.info with bitcoin-cli

I'm trying to, given a bitcoin address, retrieve the last X transactions to this address. After researches, I found this to be an interesting solution, as I don't want to download and validate the ...
0
votes
0answers
12 views

i want know how can i get all address info without import account like explorer

many explorer's api support function 'getreceivedbyaddress', 'getbalance'. but it is need bitcoin account in bitcoin node, in my case. i don't think that who support this api have all accounts in ...
0
votes
1answer
111 views

How to broadcast transaction through Bitcoin-cli on public node

I have my Bitcoin WIF on a mobile application, and I want to use a Bitcoin-cli node running externally on a server to broadcast my transaction request from my mobile device. I cannot use SendToAddress ...
2
votes
1answer
312 views

Bitcoin-cli how to get balance of a wallet on different node?

I am making a bitcoin mobile application, and I an trying to get the balance of a wallet that is on the mobile phone, from a daemon that is running on a separate node. The mobile wallet is connected ...
4
votes
1answer
38 views

How to have my bitcoin-cli connect to an outside fullnode

I don't want to run a full node in my laptop. I rather want to install bitcoin-cli only and configure it to connect to an external full node. Is that possible? If so, two questions: where can I get ...
0
votes
0answers
61 views

getblockchaininfo timeout using API only

Thanks in advance. If I call getblockchaininfo through bitcoin-cli it just works. It might take a while but it works all the time. If I call it from within a Python Script from bitcoin.rpc import ...
0
votes
1answer
23 views

Easy way to compare bitcoin node block to total block, check sync status

I am familiar with bitcoin-cli getblockcount, but is there an easy way to compare this to the total block count to check my sync status?
0
votes
1answer
27 views

which indicates the correct total received bitcoins, blockchan.info or bitcoind [closed]

I'm trying to see how much bitcoins I've received via bitcoind's one method, getreceivedbyaddress specifying a certain address, and after knowing the amount of bitcoins, I soon realized that such as ...
1
vote
0answers
36 views

How can a miner know how many blocks mined by him?

I am working on an altcoin based on bitcoin-core, version 0.12.1 (this version including setgenerate). Is their an option for a miner to know (using bitcoin-cli) how many blocks mined by him (after ...
0
votes
1answer
70 views

How to get Coinbase Text for newly found block

Websites like blockchain.info and btc.com give Relayed By information to find who found the block. I can see coinbase text in the website https://coin.dance/blocks. Is it possible to get that ...
2
votes
1answer
63 views

Dump results from bitcoin-qt debug console to file

I would like to issue some commands in the Bitcoin-qt console and save their output to a text file (ideally, filter it before saving). Is there a way to do that, similar to how I would use grep and &...
1
vote
1answer
62 views

Serialized Block doesn't have all the fields of a Block

bitcoin-cli getblock 000000000003b9c88b8a4bf0bac7059913381bba300cdfddffc54a3d8c6e8105 false This command will give block related data in the form of Hex. This Serialized data doesn't contain certain ...
1
vote
2answers
196 views
1
vote
2answers
90 views

Is there a way to disable a blockchain validation?

I installed Bitcoin Full Node on Raspberry pi 3b+. Blockchain sync is dead slow because of less CPU. I Guess blockchain validation is time/CPU consuming thing. Is there a way to disable the validation ...
1
vote
1answer
83 views

Check number of active peers a node has

I saw here that you can run bitcoin-cli getinfo to see the total number of connections that a node you're running is connected to. Is there a way to get this information remotely? For example, say I ...
1
vote
1answer
213 views

What is the difference between bitcoin core vs bitcoinj vs bitcoind vs bitcoinqt?

What is the difference between bitcoin-core vs bitcoinj vs bitcoind vs bitcoin-tx vs bitcoin-cli vs bitcoinqt? There are many github repo with different names around bitcoin. Can someone really help ...
1
vote
2answers
201 views

How to stop another bitcoind service?

I created two bitcoind service in my server. First using default configuration, and second use new configuration. I am able to stop first bitcoind using bitcoin-cli stop, but the second bitcoind still ...
0
votes
1answer
136 views

bitcoin-cli not working

Whenever I try running some command like: bitcoin-cli getinfo The prompt just hangs and does not return anything, similar to SQL interface if you do not enter semicolon. Running only "bitcoin-cli" ...
3
votes
1answer
189 views

Bitcoind with -txindex=1 still no mempool transactions

I'm reading through Mastering Bitcoin and trying to follow along the examples. When I first initialized bitcoind, I set txindex=1 in my bitcoin.conf file. In a later example I was unable to ...
0
votes
1answer
197 views

bad-txns-nonstandard-inputs error after sendrawtransaction

I smashed my head over the table trying to send raw transaction and every time get the same error bad-txns-nonstandard-inputs. So, here is what I do: Get unspent transactions bitcoin-cli ...
0
votes
2answers
1k 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/...
0
votes
0answers
89 views

i can sync only “headers block”?

My question about the "bitcoin core", i need "header blocks" only, i can sync only "headers block"? in other words i do not need "transaction data" because its size is very large. Is there any ...
1
vote
0answers
84 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
3answers
706 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....
0
votes
0answers
91 views

Verify user public key by signing raw transaction with private key

I have to verify that user who enters public key of his address verify his address by signing a neutral raw transaction which won't be broadcasted. Don't know which transaction to use to create a new ...
0
votes
3answers
190 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
48 views

Transaction net gain/loss

I have a TXid in my wallet that contains multiple transactions (multiple sends and receives). From what I read these are transactions the network creates facilitate splitting/combining multiple inputs/...