Questions tagged [bitcoin-cli]

should be used for questions related to the Bitcoin Core RPC client

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

Bitcoin V0.1 Not Connected

My Bitcoin V 0.1 says, "not connected" when I try to generate coins. I have ensured the port is connected through the firewall. Also, I have read that V 0.1.3 corrected this problem. However,...
0
votes
0answers
19 views

How to manually compute a descriptors checksum?

In the docs it says: The checksum for a descriptor without one can be computed using the getdescriptorinfo RPC. I would like to build a recovery tool where many descriptors are imported, calling ...
1
vote
1answer
40 views

How do I start -testnet in -deprecatedrpc to test a script?

I hope all is well during our COVID-19 pandemic. My question: How do I start "bitcoind -testnet" in "-deprecatedrpc=signtransaction" mode? Do I simply start it the same way without ...
1
vote
1answer
29 views

bitcoin-cli how to verify balance

I've read that addresses alone are a "confusing" way to think about "where" bitcoins "are". Nonetheless I was formerly (2018) able to correlate what I got from bitcoin-...
2
votes
1answer
21 views

What are best practices around toggling between multiple wallets in bitcoind?

I've created a couple wallets on Core to experiment with and want to dedicate one wallet as a live one. What is the best way to move between those wallets inside the command line? When I toggle to a ...
1
vote
1answer
44 views

Unable to make custom Bitcoin command

I'm writing a thesis on Bitcoin system and as a part of my assignment i have to explore Bitcoin-core source code. I 've downloaded the code, compiled it and manage to run it. However, I wanted to ...
0
votes
0answers
15 views

Problems Setting a Transaction Fee on a Per Transaction Basis Bitcoind

I've spent hours and hours trying to find a solution to this problem, with no success. Using Bitcoin Core on a Linux machine, so using bitcoin-cli to process commands back to the daemon. Here's what ...
2
votes
1answer
36 views

Is there any method to extract transactions for an bitcoin address which is not in my wallet using bitcoin core?

I have setup Bitcoin core and trying build an API to fetch all transactions under an address ( not in my wallet ). Bitcoin core RPC documention says that an address which is not in my wallet needs to ...
1
vote
1answer
21 views

listunspent rpc/cli command doesn't seem to list unspent unconfirmed transactions for watch-only addresses

I am unable to list unspent unconfirmed transactions for watch-only addresses. Once the transaction gets at least 1 confirmation it gets included in the returned result. This is the command I am ...
1
vote
1answer
48 views

Bitcoin core 0.19.1 RPC, 'sendtoaddress' not working!

Suppose this scenario: There are 2 wallets called wallet1 and wallet1 on the same node in testnet blockchain. wallet1 balance: 0.001 BTC wallet2 balance: 0 BTC I am trying to send 0.001 BTCs from ...
1
vote
1answer
42 views

Bitcoin Core 0.19.1 RPC “Move” command

I want to move some coins from a wallet to an other, so I found move command which is supported in Bitcoin Core 0.17.0 RPC but not in 0.19.1. Is any other command has been added instead of move?
0
votes
1answer
36 views

Send bitcoin with bitcoin core without syncing to network

I want to use bitcoin-core just for sending bitcoin from my address to another destination address. i don't need the huge history information of blockchain. In fact, I want to run a light-weight ...
0
votes
0answers
20 views

Parsing JSON in bitcoin-cli

I am learning the Bitcoin-cli, and when I run a command like getbalances, I get a JSON with "mine" and "watchonly". Is there a way i can only return the watchonly portion? My broader question is can I ...
0
votes
1answer
28 views

Will bitcoind import private keys for multi-sig descriptor with watch-only flag set to true?

I am importing a "warm" multi-sig quorum into bitcoind using importmulti like so: {"jsonrpc":"1.0","id":"curltest","method":"importmulti","params":[[{ "desc": "sh(multi(2,[eb2d2f9e/44'/1'/0']...
0
votes
1answer
35 views

bitcoin-cli decodescript wrong output

If I try to get info in genesis block, there is 1 tx: "scriptPubKey": { "asm": "...
0
votes
2answers
22 views

Regtest createmultisig Error: Invalid public Key?

As shown below, I generated 3 new addresses (Legacy I believe) in RegTest. I then try to create a multsig address from exactly these 3 addresses. What am I doing wrong, or is this unavailable in ...
0
votes
1answer
55 views

How can I get the bitcoin amount of an bitcoin address which doesn't belong to my wallet?

I am trying to make a query about a bitcoin address's btc amount. As I've read, getreceivedbyaddress rpc command can only be used for the addresses of a wallet that one owns and that command is ...
1
vote
1answer
64 views

How to reduce number of inputs in bitcoin transaction?

We have a bitcoin node running on a server which we use to generate addresses to receive small payments from the users. We receive tons of small payments daily right now and then we are using the same ...
1
vote
1answer
116 views

Why keys generated in Bitcoin Core mismatch that from online generators despite using the same seed?

I have the following problem in Bitcoin Core. With this command: echo carpet begin bacon master draft fortune food cherry cage axis vault clown | \ bx mnemonic-to-seed | \ bx hd-new -v 70615956 | \ ...
2
votes
1answer
37 views

How to add a second user with SSH access to my Ubuntu PC running Bitcoin Core?

I have a friend who is interested in learning Bitcoin CLI, and I told him I would look into giving him access to my node - in a non-destructive way - perhaps testnet only ? Totally trust this person, ...
2
votes
1answer
55 views

How To Get Master Fingerprint

say I have master private key from dumpwallet command: extended private masterkey: tprv8ZgxMBicQKsPdcg8UJAGEEQM6zQgyxgXXXXXXXX from there, I derived child key using bx hd-private command $ xprv=...
0
votes
1answer
35 views

How is someone not able to steal my bitcoin with Dumpprivkey command?

In an online course the instructor told us that anyone can find the private key of a wallet by using dumpprivkey(address), address being the address that is created from the key (which is public in a ...
3
votes
1answer
105 views

Is there a way to allow use of unconfirmed RBF outputs in transaction building?

Bitcoin Core seems to not consider unconfirmed outputs that are marked replaceable in input selection. Is there a way to override this protection and allow use anyway? The transaction is created using ...
1
vote
0answers
18 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/...
1
vote
1answer
86 views

The result of bitcoin-cli getpeerinfo command

When I type bitcoin-cli getpeerinfo in shell, conspicuous property of the result are addr and addrlocal addrbind. 14.xx is my address and others are peer's address. I know that Bitcoin client can do ...
0
votes
0answers
52 views

Getting blockhash using bitcoin-cli command in shell

Currently, my node is syncing blocks and tip(height) is 230000. At this point, if I use command bitcoin-cli getblockhash 230000, the return information will be successful but, if I use bitcoin-cli ...
1
vote
1answer
31 views

Does getblockcount return the correct block count when running in prune mode?

I am currently running a bitcoin node with prune=550. The getBlockCount from $ bitcoin-cli getblockcount does not match https://blockexplorer.com/api/status?q=getBlockCount. As I understand it, the ...
2
votes
1answer
85 views

How do you run one daemon for multiple users?

I have installed Bitcoin v0.18.1 as user1. Everything is fine, but now I need to let user2 access the same run so he can use bitcoin-cli as well. However, once I log into the VM instance as user2 I ...
2
votes
1answer
198 views

-fallbackfee option in sendtoaddress

I'm trying to send some bitcoins using bitcoin-cli API, but bitcoin core tells me that Fallbackfee is disabled. How can I set a value for fallbackfee? I've tried to specify it like bitcoin-cli ...
0
votes
0answers
40 views

Sent some testnet Bitcoin to Bitcoin Core wallet but balance is still zero

I got the testnet Bitcoin address with this command: bitcoin-cli -testnet getnewaddress And here is the Bitcoin address: 2NDtNjDbEiNiKDuAnwyKBmRPQ49NNpesdhE As you can see in blockchain there was a ...
2
votes
1answer
356 views

My first full node - no bitcoin.conf

So I am in the process of downloading the blocks after installing bitcoin on my ubuntu server. I have followed the guide on https://bitcoin.org/en/full-node. Everything is working correctly. Blocks ...
0
votes
0answers
25 views

Why is bitcoin-cli getunconfirmedbalance hanging?

Sometimes when I call bitcoin-cli getunconfirmedbalance, it is instance. Other times it takes 5-10 seconds. Other times it hangs for minutes and I just end up closing it. This is on Google Cloud using ...
1
vote
0answers
125 views

How to add money to my Bitcoin Wallet and send my first Raw Transaction with OP_RETURN using bitcoin-cli

Background So after reading these two articles (Learning Bitcoin from the Command Line and Mastering Bitcoin), I am trying to piece together how I can get my first transaction with OP_RETURN data ...
1
vote
1answer
112 views

Error Signing P2SH-P2WSH MultiSig - “Unable to sign input, invalid stack size (possibly missing key)”

I am trying to create and spend a P2SH-P2WSH transaction using bitcoin-cli but am getting "Unable to sign input, invalid stack size (possibly missing key)" when I try to sign the Multi-Sig transaction ...
1
vote
1answer
57 views

Why is getdescriptorinfo returning an error “Invalid descriptor (code -5)”

I am using Bitcoin Core bitcoin-cli with getdescriptorinfo like so: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdescriptorinfo", "params":["sh(multi(2,[3c60330a/1]...
1
vote
1answer
74 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 ...
0
votes
0answers
28 views

bitcoin-cli getbalance does not match balance with bitcoin-cli listtransactions

version of bitcoin-cli 0.17.1 when I try bitcoin-cli getbalance I get balance 0.00010471 BTC when I try bitcoin-cli listtransactions "*" 1000000 >aaa.txt and then calculate SUM(receive) -...
1
vote
0answers
17 views

How to fill in the subtractFeeFromOuputs field in fundrawtransaction

I am attempting to use fundrawtransaction, but I am a bit confused on how to populate the subtractFeeFromOutputs field... "subtractFeeFromOutputs": [(json array, optional, default=empty array) A ...
1
vote
1answer
97 views

Calculate Miners Fee before Signing Raw Transaction?

I am attempting to automate the process of sending coins from multiple transactions to a single output and single change address using createrawtransaction I am a bit lost though, because how can I ...
0
votes
1answer
54 views

Use Bitcoin RPC to send from many addresses to single address

I am looking into being able to send coins from specific addresses to a single output address using bitcoin-cli Is this possible? What RPC command would I use? Any chance of an example?
1
vote
2answers
429 views

Bitcoin-cli -regtest getaccount, listaccounts, setaccount, method not found

I just setup bitcoind (0.18.1) and put it in regtest mode, I am trying to work with accounts, but the account commands are not found... setaccount jlroberts@mixerregtest:~$ bitcoin-cli -regtest ...
3
votes
0answers
47 views

How to segregate wallet from bitcoin core | Run multiple wallets in different servers on one centralized bitcoin node

I am running bitcoin full node in a centralized server. I have many web applications running in various places. I want to connect this web applications with centralized full bitcoin node. How to ...
1
vote
0answers
73 views

Why am I getting error: “Signature must be zero for failed CHECK(MULTI)SIG operation” when using signrawtransactionwithkey

I am using descriptor based importmulti like so to import a 2 of 3 HD multisig cold storage wallet into my node: curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "importmulti", "...
0
votes
0answers
57 views

How do I determine the descriptor of a given Extended Public Key?

I am trying to run the bitcoin-cli getdescriptorinfo on a ypub... extended public key. Every time I do this I receive the message: error code: -5 error message: Invalid descriptor How can I ...
0
votes
2answers
75 views

how to track sendtoaddress / sendmany in case of network failure

Suppose you call sendmany or sendtoaddress on bitcoind RPC. Suppose the transaction is created and send to the network, but RPC time out and sender process unable to read the txid. Suppose there are ...
1
vote
2answers
54 views

Why does bitcoin-cli not know about working directory of bitcoind?

I have a /ect/systemd/system/bitcoin.service with the following content and I am wondering, why bitcoin-cli getinfo tells me about a configuration file elsewhere: error: Could not locate RPC ...
0
votes
2answers
592 views

bitcoin-cli getnewaddress

can i customize my address start through getnewaddress? for example instead the address start with 1asdjIOAWJRA i write getnewaddress 1xxxx then it continues as it wish also what's the difference ...
0
votes
1answer
173 views

Compiled version of bitcoind 0.18.1. “Could not connect to the server 127.0.0.1:8332”

When I use the official installed bitcoind 0.18.1 everything works fine. I can use the bitcoin-cli with any comands and don't get any errors. After that when I compiled 0.18.1 myself I can't use any ...
0
votes
1answer
53 views

bitcoincore additional questions

Following up from my previous question, I still have some questions left. Does it really work if I turn off the internet before doing getnewaddress? Will it really give me something real and can get ...
1
vote
1answer
564 views

bitcoind and bitcoin-cli and bitcoin-qt

following the hackernoon for full node btc, https://hackernoon.com/a-complete-beginners-guide-to-installing-a-bitcoin-full-node-on-linux-2018-edition-cb8e384479ea i have some small questions, is there'...

1
2 3 4 5